* @package misc * @version $Id$ * @link http://www.zentao.net */ class misc extends control { /** * Ping the server every 5 minutes to keep the session. * * @access public * @return void */ public function ping() { if(mt_rand(0, 1) == 1) $this->loadModel('setting')->setSN(); die("
"); } /** * Show php info. * * @access public * @return void */ public function phpinfo() { die(phpinfo()); } /** * Show about info of zentao. * * @access public * @return void */ public function about() { die($this->display()); } /** * Update nl. * * @access public * @return void */ public function updateNL() { $this->loadModel('upgrade')->updateNL(); } /** * Check current version is latest or not. * * @access public * @return void */ public function checkUpdate() { $note = isset($_GET['note']) ? $_GET['note'] : ''; $browser = isset($_GET['browser']) ? $_GET['browser'] : ''; $this->view->note = urldecode(helper::safe64Decode($note)); $this->view->browser = $browser; $this->display(); } }