* add the define of config class and getWebRoot() function.

This commit is contained in:
wangchunsheng
2013-01-23 08:22:43 +00:00
parent 0c5150921f
commit dfb35fbde2
5 changed files with 4 additions and 16 deletions
-4
View File
@@ -63,7 +63,3 @@ $attachFile = $destDir . "/" . "file." . date('Ymd', time()) . ".zip";
$archive = new pclzip($attachFile);
if($archive->create("data/upload", PCLZIP_OPT_REMOVE_PATH, "data")) die(" successfully saved to $attachFile\n");
die("Error : ".$archive->errorInfo(true));
/* avoid init error. */
function getWebRoot(){}
class config{}
-4
View File
@@ -15,7 +15,3 @@ if(!$requestVar)
{
echo "Check DataBase successfully!\n";
}
/* avoid init error. */
function getWebRoot(){}
class config{}
-4
View File
@@ -54,7 +54,3 @@ class computeburn
$computeburn = new computeburn($config);
$computeburn->run();
/* avoid init error. */
function getWebRoot(){}
class config{}
-4
View File
@@ -9,7 +9,3 @@ elseif($config->requestType == 'GET')
{
system('php ztcli "http://localhost/?m=admin&f=win2Unix"');
}
/* avoid init error. */
function getWebRoot(){}
class config{}
+4
View File
@@ -11,6 +11,10 @@
* @version $Id$
* @link http://www.zentao.net
*/
/* Judge class config and function getWebRoot exists or not, make sure php shells can work. */
if(!class_exists('config')){class config{}}
if(!function_exists('getWebRoot')){function getWebRoot(){}}
/* Basic settings. */
$config = new config();
$config->version = '4.0.beta2'; // The version of zentaopms. Don't change it.