mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
This commit is contained in:
parent
8b27d66add
commit
a31560aec4
199 changed files with 30445 additions and 33070 deletions
|
@ -33,7 +33,7 @@ function log_event($username='Unknown',$event_name,$event_description,$log_name=
|
|||
/* must have some name */
|
||||
if (!strlen($log_name)) { $log_name = 'ampache'; }
|
||||
|
||||
$log_filename = conf('log_path') . "/$log_name." . date("Ymd",$log_time) . ".log";
|
||||
$log_filename = Config::get('log_path') . "/$log_name." . date("Ymd",$log_time) . ".log";
|
||||
$log_line = date("Y-m-d H:i:s",$log_time) . " { $username } ( $event_name ) - $event_description \n";
|
||||
|
||||
$log_write = error_log($log_line, 3, $log_filename);
|
||||
|
@ -109,7 +109,7 @@ function ampache_error_handler($errno, $errstr, $errfile, $errline) {
|
|||
*/
|
||||
function debug_event($type,$message,$level,$file='',$username='') {
|
||||
|
||||
if (!conf('debug') || $level > conf('debug_level')) {
|
||||
if (!Config::get('debug') || $level > Config::get('debug_level')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue