removing unneeded file install_configs.php;
making $cronscriptDebug a setting in the database (no messing around in the files for debugging); removed unnecessary unset() in cron_init.php; setting of correct file-ownership of logfiles in apache and lighttpd crons;
This commit is contained in:
@@ -23,7 +23,6 @@ if(@php_sapi_name() != 'cli'
|
||||
die('This script will only work in the shell.');
|
||||
}
|
||||
|
||||
$cronscriptDebug = false;
|
||||
$lockdir = '/var/run/';
|
||||
$lockFilename = 'froxlor_' . basename($_SERVER['PHP_SELF'], '.php') . '.lock-';
|
||||
$lockfName = $lockFilename . getmypid();
|
||||
@@ -158,8 +157,6 @@ if(isset($needrootdb)
|
||||
fwrite($debugHandler, 'Database-rootconnection established' . "\n");
|
||||
}*/
|
||||
|
||||
unset($sql['root_user'], $sql['root_password']);
|
||||
|
||||
if($db->link_id == 0)
|
||||
{
|
||||
/**
|
||||
@@ -199,6 +196,8 @@ if(!isset($settings['panel']['version'])
|
||||
|
||||
fwrite($debugHandler, 'Froxlor Version and Database Version are correct' . "\n");
|
||||
|
||||
$cronscriptDebug = ($settings['system']['debug_cron'] == '1') ? true : false;
|
||||
|
||||
$cronbasedir = makeCorrectDir($pathtophpfiles . '/scripts/');
|
||||
$crondir = new DirectoryIterator($cronbasedir);
|
||||
$cronfilename = basename($_SERVER['PHP_SELF'], '.php');
|
||||
|
||||
@@ -65,7 +65,7 @@ define('PACKAGE_ENABLED', 2);
|
||||
|
||||
// VERSION INFO
|
||||
|
||||
$version = '0.9-r2';
|
||||
$version = '0.9-r3';
|
||||
$dbversion = '2';
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user