Files
EasySoft-ZenTaoPMS/bin/php/checkdb.php
2013-01-11 03:08:19 +00:00

19 lines
429 B
PHP
Executable File

<?php
error_reporting(E_ERROR);
include 'info.php';
include dirname(dirname(dirname(__FILE__))) . "/config/my.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";
}