layout = null; $this->autoLayout = false; $this->autoRender = false; Configure::write('debug', '0'); $script = $_SERVER['DOCUMENT_ROOT'] . '/pmgr/build.cmd'; echo "

" . date('r') . "\n"; //echo "

Script: $script" . "\n"; $handle = popen($script . ' 2>&1', 'r'); //echo "

Handle: $handle; " . gettype($handle) . "\n"; echo "

\n";
    while (($read = fread($handle, 2096))) {
      echo $read;
    }
    echo "
\n"; pclose($handle); } /************************************************************************** ************************************************************************** ************************************************************************** * function: rebuild_sandbox */ function rebuild_sandbox() { $this->layout = null; $this->autoLayout = false; $this->autoRender = false; Configure::write('debug', '2'); $script = preg_replace('%/webroot/index.php%', '/build_sandbox.cmd', $_SERVER['SCRIPT_FILENAME']); echo "

" . date('r') . "\n"; echo "

Script: $script" . "\n"; $handle = popen($script . ' 2>&1', 'r'); //echo "

Handle: $handle; " . gettype($handle) . "\n"; echo "

\n";
    while (($read = fread($handle, 2096))) {
      echo $read;
    }
    echo "
\n"; pclose($handle); } }