/trunk/ajax_cmd.php |
---|
19,10 → 19,14 |
if (!isset($_REQUEST['cmd'])) _err('cmd is missing'); |
$hostname = trim(file_get_contents('/etc/hostname')); |
if (file_exists(__DIR__."/config_$hostname.inc.php")) { |
require_once __DIR__."/config_$hostname.inc.php"; |
} else { |
require_once __DIR__.'/config.inc.php'; |
} |
$hostname = trim(file_get_contents('/etc/hostname')); |
if (file_exists(__DIR__."/db_$hostname.inc.php")) { |
require_once __DIR__."/db_$hostname.inc.php"; |
} else { |