missed logger for new log location

This commit is contained in:
fbsanchez 2020-07-02 18:32:32 +02:00
parent af7981ed05
commit d1d47c721d
1 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,15 @@ require_once 'include/functions.php';
require_once 'include/functions_db.php';
require_once 'include/auth/mysql.php';
if (isset($config['console_log_enabled']) && $config['console_log_enabled'] == 1) {
ini_set('log_errors', 1);
ini_set('error_log', $config['homedir'].'/log/console.log');
} else {
ini_set('log_errors', 0);
ini_set('error_log', 0);
}
// Hash login process
if (isset($_GET['loginhash'])) {
$loginhash_data = get_parameter('loginhash_data', '');