Merge in from the pre_0.1 branch
git-svn-id: file:///svn-source/pmgr/branches/sandbox_0.1@794 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
/**
|
||||
* The name of CakePHP's session cookie.
|
||||
*/
|
||||
Configure::write('Session.cookie', 'CAKEPHP');
|
||||
Configure::write('Session.cookie', 'PMGR');
|
||||
/**
|
||||
* Session time out time (in seconds).
|
||||
* Actual value depends on 'Security.level' setting.
|
||||
|
||||
@@ -10,5 +10,10 @@ class DATABASE_CONFIG {
|
||||
'database' => 'pmgr_sand',
|
||||
'prefix' => 'pmgr_',
|
||||
);
|
||||
|
||||
function __construct() {
|
||||
if (preg_match("%^/[^/]*sand/%", $_SERVER['REQUEST_URI']))
|
||||
$this->default['database'] = 'pmgr_sand';
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user