* add the define of config class and getWebRoot() function.
This commit is contained in:
@@ -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{}
|
||||
|
||||
@@ -15,7 +15,3 @@ if(!$requestVar)
|
||||
{
|
||||
echo "Check DataBase successfully!\n";
|
||||
}
|
||||
|
||||
/* avoid init error. */
|
||||
function getWebRoot(){}
|
||||
class config{}
|
||||
|
||||
@@ -54,7 +54,3 @@ class computeburn
|
||||
|
||||
$computeburn = new computeburn($config);
|
||||
$computeburn->run();
|
||||
|
||||
/* avoid init error. */
|
||||
function getWebRoot(){}
|
||||
class config{}
|
||||
|
||||
@@ -9,7 +9,3 @@ elseif($config->requestType == 'GET')
|
||||
{
|
||||
system('php ztcli "http://localhost/?m=admin&f=win2Unix"');
|
||||
}
|
||||
|
||||
/* avoid init error. */
|
||||
function getWebRoot(){}
|
||||
class config{}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user