public function historyNext() { load_class('history'); session_start(); //re start $session = $_SESSION['history']; if (is_array($session)) { $hi = new history($session); $path = $hi->gonext(); $_SESSION['history'] = $hi->getHistory(); $folderlist = $this->path(_DIR($path)); $_SESSION['this_path'] = $path; show_json(array('history_status' => array('back' => $hi->isback(), 'next' => $hi->isnext()), 'thispath' => $path, 'list' => $folderlist)); } }