[27] | 1 | <?php
|
---|
[92] | 2 | $modname= $xoops_config->module_name;
|
---|
| 3 | $modurl = $xoops_config->module_url;
|
---|
[27] | 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') )
|
---|
[488] | 10 | define('USER_COOKIE', 'wordpress_' . $modname . '_user_' . $hash);
|
---|
[27] | 11 |
|
---|
| 12 | /**
|
---|
| 13 | * It is possible to define this in wp-config.php
|
---|
| 14 | * @since 2.0.0
|
---|
| 15 | */
|
---|
| 16 | if ( !defined('PASS_COOKIE') )
|
---|
[488] | 17 | define('PASS_COOKIE', 'wordpress_' . $modname . '_pass_' . $hash);
|
---|
[27] | 18 |
|
---|
| 19 | /**
|
---|
| 20 | * It is possible to define this in wp-config.php
|
---|
| 21 | * @since 2.5.0
|
---|
| 22 | */
|
---|
| 23 | if ( !defined('AUTH_COOKIE') )
|
---|
[488] | 24 | define('AUTH_COOKIE', 'wordpress_' . $modname . '_auth_' . $hash);
|
---|
[27] | 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') )
|
---|
[488] | 31 | define('SECURE_AUTH_COOKIE', 'wordpress_' . $modname . '_sec_' . $hash);
|
---|
[27] | 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') )
|
---|
[488] | 38 | define('LOGGED_IN_COOKIE', 'wordpress_' . $modname . '_logged_in_' . $hash);
|
---|
[27] | 39 |
|
---|
| 40 | /**
|
---|
| 41 | * It is possible to define this in wp-config.php
|
---|
| 42 | * @since 2.3.0
|
---|
| 43 | */
|
---|
| 44 | if ( !defined('TEST_COOKIE') )
|
---|
[488] | 45 | define('TEST_COOKIE', 'wordpress_' . $modname . '_test_cookie');
|
---|
[27] | 46 |
|
---|
| 47 | /**
|
---|
| 48 | * It is possible to define this in wp-config.php
|
---|
| 49 | * @since 1.2.0
|
---|
| 50 | */
|
---|
| 51 | if ( !defined('COOKIEPATH') )
|
---|
[95] | 52 | define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', $xoops_config->xoops_url . '/' ) );
|
---|
[27] | 53 |
|
---|
| 54 | /**
|
---|
| 55 | * It is possible to define this in wp-config.php
|
---|
| 56 | * @since 1.5.0
|
---|
| 57 | */
|
---|
| 58 | if ( !defined('SITECOOKIEPATH') )
|
---|
[95] | 59 | define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', $xoops_config->xoops_url . '/' ) );
|
---|
[27] | 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 |
|
---|
[211] | 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 |
|
---|
[27] | 76 | ?> |
---|