layout = null; $this->autoLayout = false; $this->autoRender = false; Configure::write('debug', '0'); $usrpass = '--user=perki2_pmgruser --password=pmgrauth'; $boxdb = 'perki2_pmgr_' . $type; $handle = popen("mysqldump $usrpass --opt perki2_pmgr" . " | mysql $usrpass --database=$boxdb", 'r'); while (($read = fread($handle, 2096))) { // Do nothing } pclose($handle); $url = $_SERVER['HTTP_REFERER']; if (empty($url) || $url == 'undefined') $url = "/$type"; $this->redirect($url); } function rebuild_sandbox() { $this->rebuild_box('sand'); } function rebuild_devbox() { $this->rebuild_box('dev'); } /************************************************************************** ************************************************************************** ************************************************************************** * function: logmsg * - action to allow posting log message data */ function logmsg() { } }