* move ztcli to bin directory.

This commit is contained in:
wangchunsheng
2013-01-08 05:26:04 +00:00
parent a2ae7a0d93
commit 53ae669b53

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php
/**
* 禅道系统命令行访问入口。使用方法http://www.zentao.net/help-read-78899.html
* The cli router file of zentaopms.
*
* @copyright Copyright 2009-2012 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
@@ -10,7 +11,7 @@
* @version $Id$
* @link http://www.ZenTaoPMS.com
*/
error_reporting(E_ERROR);
error_reporting(E_ALL ^ E_NOTICE);
define('IN_SHELL', true);
/* Judge the args. */
@@ -22,11 +23,11 @@ $_SERVER['HTTP_HOST'] = $request['host'];
/* Load the framework. */
chdir(dirname(dirname(__FILE__)));
include '../framework/router.class.php';
include '../framework/control.class.php';
include '../framework/model.class.php';
include '../framework/helper.class.php';
include '../config/config.php';
include './framework/router.class.php';
include './framework/control.class.php';
include './framework/model.class.php';
include './framework/helper.class.php';
include './config/config.php';
if($config->requestType == 'PATH_INFO')
{
@@ -40,7 +41,7 @@ else
}
/* Instance the app and run it. */
$app = router::createApp('pms', dirname(dirname(dirname(__FILE__))));
$app = router::createApp('pms', dirname(dirname(__FILE__)));
$common = $app->loadCommon();
$app->parseRequest();
$app->loadModule();