Files
EasySoft-ZenTaoPMS/bin/php/checkdb.php
2013-01-11 07:49:35 +00:00

22 lines
477 B
PHP
Executable File

<?php
error_reporting(E_ERROR);
include dirname(dirname(dirname(__FILE__))) . "/config/config.php";
if($config->requestType == 'PATH_INFO')
{
system('php ../php/ztcli "http://localhost/admin-checkdb"', $requestVar);
}
elseif($config->requestType == 'GET')
{
system('php ../php/ztcli "http://localhost/?m=admin&f=checkdb"', $requestVar);
}
if(!$requestVar)
{
echo "Check DataBase successfully!\n";
}
/* avoid init error. */
function getWebRoot(){}
class config{}