mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
parent
6eed2e8a76
commit
6abd9babc9
53 changed files with 197 additions and 197 deletions
|
@ -213,7 +213,7 @@ function utime()
|
|||
function bb_log($msg, $file_name)
|
||||
{
|
||||
if (is_array($msg)) {
|
||||
$msg = join(LOG_LF, $msg);
|
||||
$msg = implode(LOG_LF, $msg);
|
||||
}
|
||||
$file_name .= (LOG_EXT) ? '.' . LOG_EXT : '';
|
||||
return file_write($msg, LOG_DIR . '/' . $file_name);
|
||||
|
@ -411,7 +411,7 @@ function sys($param)
|
|||
{
|
||||
switch ($param) {
|
||||
case 'la':
|
||||
return function_exists('sys_getloadavg') ? join(' ', sys_getloadavg()) : 0;
|
||||
return function_exists('sys_getloadavg') ? implode(' ', sys_getloadavg()) : 0;
|
||||
break;
|
||||
case 'mem':
|
||||
return function_exists('memory_get_usage') ? memory_get_usage() : 0;
|
||||
|
@ -473,7 +473,7 @@ function log_request($file = '', $prepend_str = false, $add_post = true)
|
|||
if (!empty($_POST) && $add_post) {
|
||||
$str[] = "post: " . str_compact(urldecode(http_build_query($_POST)));
|
||||
}
|
||||
$str = join("\t", $str) . "\n";
|
||||
$str = implode("\t", $str) . "\n";
|
||||
bb_log($str, $file);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue