XPressME Integration Kit

Trac

source: trunk/include/set_cash_cookie_path.php @ 27

Last change on this file since 27 was 27, checked in by toemon, 15 years ago

クッキーパスのmodules changerおよびモジュール複製対応 #41

File size: 1.7 KB
Line 
1<?php
2$modname=basename(dirname(dirname(__FILE__)));
3$modurl = XOOPS_URL . '/modules/' . $modname;
4$hash = md5($modurl);
5/**
6 * It is possible to define this in wp-config.php
7 * @since 2.0.0
8 */
9if ( !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 */
16if ( !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 */
23if ( !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 */
30if ( !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 */
37if ( !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 */
44if ( !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 */
51if ( !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 */
58if ( !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 */
65if ( !defined('ADMIN_COOKIE_PATH') )
66        define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH);
67
68?>
Note: See TracBrowser for help on using the repository browser.