* rewrite the comments of misc module.

This commit is contained in:
wangchunsheng
2010-11-19 03:53:41 +00:00
parent 5871b90da4
commit fefbffebba
2 changed files with 25 additions and 6 deletions
+25 -5
View File
@@ -11,26 +11,46 @@
*/
class misc extends control
{
/* 通过隐藏的iframe定时刷新此页面,保证session不过期。*/
/**
* Ping the server every 5 minutes to keep the session.
*
* @access public
* @return void
*/
public function ping()
{
if(mt_rand(0, 10) == 5) $this->loadModel('setting')->setSN();
die("<html><head><meta http-equiv='refresh' content='300' /></head><body></body></html>");
}
/* 显示phpinfo信息。*/
/**
* Show php info.
*
* @access public
* @return void
*/
public function phpinfo()
{
die(phpinfo());
}
/* 关于禅道。*/
/**
* Show about info of zentao.
*
* @access public
* @return void
*/
public function about()
{
$this->display();
exit;
die($this->display());
}
/**
* Update nl.
*
* @access public
* @return void
*/
public function updateNL()
{
$this->loadModel('upgrade')->updateNL();
-1
View File
@@ -14,4 +14,3 @@
class miscModel extends model
{
}
?>