1 | <?php
|
---|
2 | $modname= $xoops_config->module_name;
|
---|
3 | $modurl = $xoops_config->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', $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', $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', $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', $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', $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', $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', '', 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', '', 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 | ?> |
---|