1 | <?php
|
---|
2 | $modname= $modInfo->get_module_dirname();
|
---|
3 | $modurl = $modInfo->get_module_url();
|
---|
4 | $hash = md5($modurl);
|
---|
5 | /**
|
---|
6 | * It is possible to define this in wp-config.php
|
---|
7 | * @since 2.0.0
|
---|
8 | */
|
---|
9 | if ( !defined('USER_COOKIE') )
|
---|
10 | define('USER_COOKIE', 'wordpress_' . $modname . '_user_' . $hash);
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * It is possible to define this in wp-config.php
|
---|
14 | * @since 2.0.0
|
---|
15 | */
|
---|
16 | if ( !defined('PASS_COOKIE') )
|
---|
17 | define('PASS_COOKIE', 'wordpress_' . $modname . '_pass_' . $hash);
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * It is possible to define this in wp-config.php
|
---|
21 | * @since 2.5.0
|
---|
22 | */
|
---|
23 | if ( !defined('AUTH_COOKIE') )
|
---|
24 | define('AUTH_COOKIE', 'wordpress_' . $modname . '_auth_' . $hash);
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * It is possible to define this in wp-config.php
|
---|
28 | * @since 2.6.0
|
---|
29 | */
|
---|
30 | if ( !defined('SECURE_AUTH_COOKIE') )
|
---|
31 | define('SECURE_AUTH_COOKIE', 'wordpress_' . $modname . '_sec_' . $hash);
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * It is possible to define this in wp-config.php
|
---|
35 | * @since 2.6.0
|
---|
36 | */
|
---|
37 | if ( !defined('LOGGED_IN_COOKIE') )
|
---|
38 | define('LOGGED_IN_COOKIE', 'wordpress_' . $modname . '_logged_in_' . $hash);
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * It is possible to define this in wp-config.php
|
---|
42 | * @since 2.3.0
|
---|
43 | */
|
---|
44 | if ( !defined('TEST_COOKIE') )
|
---|
45 | define('TEST_COOKIE', 'wordpress_' . $modname . '_test_cookie');
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * It is possible to define this in wp-config.php
|
---|
49 | * @since 1.2.0
|
---|
50 | */
|
---|
51 | if ( !defined('COOKIEPATH') )
|
---|
52 | define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', $modInfo->get_xoops_url() . '/' ) );
|
---|
53 |
|
---|
54 | /**
|
---|
55 | * It is possible to define this in wp-config.php
|
---|
56 | * @since 1.5.0
|
---|
57 | */
|
---|
58 | if ( !defined('SITECOOKIEPATH') )
|
---|
59 | define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', $modInfo->get_xoops_url() . '/' ) );
|
---|
60 |
|
---|
61 | /**
|
---|
62 | * It is possible to define this in wp-config.php
|
---|
63 | * @since 2.6.0
|
---|
64 | */
|
---|
65 | if ( !defined('ADMIN_COOKIE_PATH') )
|
---|
66 | define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH);
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * It is possible to define this in wp-config.php
|
---|
70 | * @since 2.0.0
|
---|
71 | */
|
---|
72 | if ( !defined('COOKIE_DOMAIN') )
|
---|
73 | define('COOKIE_DOMAIN', false);
|
---|
74 |
|
---|
75 |
|
---|
76 | ?> |
---|