Files
EasySoft-ZenTaoPMS/bin/checkdb.php
chencongzhi520@gmail.com e4c2274541 * adjust the code.
2012-05-01 08:23:17 +00:00

17 lines
360 B
PHP
Executable File

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