Added more sandbox functionality, including a script to generate the sandbox on the fly from the absolute latest data.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@813 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-28 21:06:20 +00:00
parent fde8923814
commit 63e22ec9bf
3 changed files with 15 additions and 2 deletions

View File

@@ -196,6 +196,14 @@ class AppController extends Controller {
$this->addSideMenuLink('Deposits',
array('controller' => 'transactions', 'action' => 'deposit'), null,
'SITE');
if (sandbox())
$this->addSideMenuLink('Leave Sandbox',
preg_replace("%^/([^/]+)\.sand%", "/$1", $_SERVER['REQUEST_URI']), null,
'SITE');
else
$this->addSideMenuLink('Sandbox',
preg_replace("%^/([^/]+)%", "/$1.sand", $_SERVER['REQUEST_URI']), null,
'SITE');
$this->addSideMenuLink('Accounts',