release 1.2.12

This commit is contained in:
Newcomer1989
2019-02-24 02:49:55 +01:00
parent ce3c88d833
commit 357a38dbf8
57 changed files with 2054 additions and 1134 deletions

View File

@@ -4,8 +4,8 @@ error_reporting(0);
require_once(__DIR__.'/other/config.php');
require_once(__DIR__.'/other/phpcommand.php');
$GLOBALS['exec'] = FALSE;
if($logpath == NULL) { $logpath = "./logs/"; }
$GLOBALS['logfile'] = $logpath.'ranksystem.log';
if($cfg['logs_path'] == NULL) { $cfg['logs_path'] = "./logs/"; }
$GLOBALS['logfile'] = $cfg['logs_path'].'ranksystem.log';
if (substr(php_uname(), 0, 7) == "Windows") {
$GLOBALS['pidfile'] = __DIR__.'\logs\pid';
@@ -69,8 +69,8 @@ function start() {
sleep(10);
}
global $logpath;
if(substr(sprintf('%o', fileperms($logpath)), -3, 1)!='7') {
global $cfg;
if(substr(sprintf('%o', fileperms($cfg['logs_path'])), -3, 1)!='7') {
echo "\n !!!! Logs folder is not writable !!!!\n\n";
echo " Cancel start request...\n\n";
exit;