+ add misc module.

This commit is contained in:
wangchunsheng
2010-03-17 06:39:06 +00:00
parent 3d1178907d
commit db5fea6e98
7 changed files with 93 additions and 8 deletions
+2 -1
View File
@@ -44,7 +44,6 @@ $lang->group->checkall = '全选';
/* 所有resource列表。*/
$lang->resource->index->index = 'index';
$lang->resource->index->ping = 'ping';
$lang->resource->my->index = 'index';
$lang->resource->my->todo = 'todo';
@@ -203,5 +202,7 @@ $lang->resource->search->buildQuery = 'buildQuery';
$lang->resource->file->download = 'download';
$lang->resource->misc->ping = 'ping';
$lang->resource->admin->index = 'index';
$lang->resource->admin->browseCompany = 'browseCompany';
-7
View File
@@ -54,11 +54,4 @@ class index extends control
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->display();
}
/* 通过隐藏的iframe定时刷新此页面,保证session不过期。*/
public function ping()
{
echo "<html><head><meta http-equiv='refresh' content='300' /></head><body></body></html>";
die();
}
}
+38
View File
@@ -0,0 +1,38 @@
<?php
/**
* The control file of misc of ZenTaoMS.
*
* ZenTaoMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ZenTaoMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright 2009-2010 Chunsheng Wang
* @author Chunsheng Wang <wwccss@263.net>
* @package misc
* @version $Id$
* @link http://www.zentao.cn
*/
class misc extends control
{
/* 通过隐藏的iframe定时刷新此页面,保证session不过期。*/
public function ping()
{
echo "<html><head><meta http-equiv='refresh' content='1' /></head><body></body></html>";
die();
}
/* 显示phpinfo信息。*/
public function phpinfo()
{
die(phpinfo());
}
}
+25
View File
@@ -0,0 +1,25 @@
<?php
/**
* The misc module zh-cn file of ZenTaoMS.
*
* ZenTaoMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ZenTaoMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright 2009-2010 Chunsheng Wang
* @author Chunsheng Wang <wwccss@263.net>
* @package misc
* @version $Id$
* @link http://www.zentao.cn
*/
$lang->misc->common = '杂项';
$lang->misc->ping = '防超时';
+28
View File
@@ -0,0 +1,28 @@
<?php
/**
* The model file of misc module of ZenTaoMS.
*
* ZenTaoMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ZenTaoMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright 2009-2010 Chunsheng Wang
* @author Chunsheng Wang <wwccss@263.net>
* @package misc
* @version $Id$
* @link http://www.zentao.cn
*/
?>
<?php
class miscModel extends model
{
}