reset(); } public function reset() { $this->path = array(); $this->snapshot = array(); } public function set_snapshot($page = '') { global $sContent; if (is_array($page)) { $this->snapshot = array('content' => $page['content'], 'get' => $page['get']); } else { $get_all = ''; if (isset($_GET)) { $get_all = oos_get_all_get_parameters(); $get_all = oos_remove_trailing($get_all); } $this->snapshot = array('content' => $sContent, 'get' => $get_all); } } public function clear_snapshot() { $this->snapshot = array(); } public function set_path_as_snapshot($history = 0) { $pos = (count($this->path)-1-$history); $this->snapshot = array('content' => $this->path[$pos]['content'], 'get' => $this->path[$pos]['get']); } public function debug() { for ($i=0, $n=count($this->path); $i<$n; $i++) { echo $this->path[$i]['content'] . '&' . $this->path[$i]['get'] . '
'; echo '
'; } echo '

'; if (count($this->snapshot) > 0) { echo $this->snapshot['content'] . '&' . $this->snapshot['get'] . '
'; } } }