17 lines
360 B
PHP
Executable File
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";
|
|
}
|