finish the task #689.

This commit is contained in:
shiyangyangwork@yahoo.cn
2012-02-09 06:56:35 +00:00
parent c86a3fcc3e
commit b30c103ecc
370 changed files with 46270 additions and 46270 deletions
+58 -58
View File
@@ -1,58 +1,58 @@
<?php
/**
* The control file of misc of ZenTaoPMS.
*
* @copyright Copyright 2009-2011 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @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, 10) == 5) $this->loadModel('setting')->setSN();
die("<html><head><meta http-equiv='refresh' content='300' /></head><body></body></html>");
}
/**
* 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();
}
}
<?php
/**
* The control file of misc of ZenTaoPMS.
*
* @copyright Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @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, 10) == 5) $this->loadModel('setting')->setSN();
die("<html><head><meta http-equiv='refresh' content='300' /></head><body></body></html>");
}
/**
* 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();
}
}