Fixed the http/https problem
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@816 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -199,13 +199,15 @@ class AppController extends Controller {
|
|||||||
|
|
||||||
if (sandbox())
|
if (sandbox())
|
||||||
$this->addSideMenuLink('Leave Sandbox',
|
$this->addSideMenuLink('Leave Sandbox',
|
||||||
('http://' . $_SERVER['SERVER_NAME'] .
|
((empty($_SERVER['HTTPS']) ? 'http://' : 'https://') .
|
||||||
|
$_SERVER['SERVER_NAME'] .
|
||||||
preg_replace("%^/([^/]+)\.sand%", "/$1", $_SERVER['REQUEST_URI'])),
|
preg_replace("%^/([^/]+)\.sand%", "/$1", $_SERVER['REQUEST_URI'])),
|
||||||
null,
|
null,
|
||||||
'SITE');
|
'SITE');
|
||||||
else
|
else
|
||||||
$this->addSideMenuLink('Sandbox',
|
$this->addSideMenuLink('Sandbox',
|
||||||
('http://' . $_SERVER['SERVER_NAME'] .
|
((empty($_SERVER['HTTPS']) ? 'http://' : 'https://') .
|
||||||
|
$_SERVER['SERVER_NAME'] .
|
||||||
preg_replace("%^/([^/]+)%", "/$1.sand", $_SERVER['REQUEST_URI'])),
|
preg_replace("%^/([^/]+)%", "/$1.sand", $_SERVER['REQUEST_URI'])),
|
||||||
null,
|
null,
|
||||||
'SITE');
|
'SITE');
|
||||||
|
|||||||
Reference in New Issue
Block a user