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:
abijah
2009-08-28 21:44:39 +00:00
parent 328d0f8f51
commit 5f6a9ed53f

View File

@@ -199,13 +199,15 @@ class AppController extends Controller {
if (sandbox())
$this->addSideMenuLink('Leave Sandbox',
('http://' . $_SERVER['SERVER_NAME'] .
((empty($_SERVER['HTTPS']) ? 'http://' : 'https://') .
$_SERVER['SERVER_NAME'] .
preg_replace("%^/([^/]+)\.sand%", "/$1", $_SERVER['REQUEST_URI'])),
null,
'SITE');
else
$this->addSideMenuLink('Sandbox',
('http://' . $_SERVER['SERVER_NAME'] .
((empty($_SERVER['HTTPS']) ? 'http://' : 'https://') .
$_SERVER['SERVER_NAME'] .
preg_replace("%^/([^/]+)%", "/$1.sand", $_SERVER['REQUEST_URI'])),
null,
'SITE');