Merge in single site support for both the sandbox and a development box as well.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@839 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-09-06 04:32:55 +00:00
8 changed files with 71 additions and 16 deletions

View File

@@ -32,16 +32,16 @@ class UtilController extends AppController {
/**************************************************************************
**************************************************************************
**************************************************************************
* function: rebuild_sandbox
* function: rebuild_box
*/
function rebuild_sandbox() {
function rebuild_box($type) {
$this->layout = null;
$this->autoLayout = false;
$this->autoRender = false;
Configure::write('debug', '0');
$script = preg_replace('%/webroot/index.php$%',
'/build_sandbox.cmd',
'/build_'.$type.'box.cmd',
$_SERVER['SCRIPT_FILENAME']);
// REVISIT <AP>: 20090828
@@ -59,4 +59,7 @@ class UtilController extends AppController {
$this->redirect($url);
}
function rebuild_sandbox() { $this->rebuild_box('sand'); }
function rebuild_devbox() { $this->rebuild_box('dev'); }
}