|
|
|
@ -17,10 +17,10 @@ Class Common {
@@ -17,10 +17,10 @@ Class Common {
|
|
|
|
|
$logTime = date('Y-m-d H:i:s'); |
|
|
|
|
$logDir = __DIR__ . '/../runtime/friendscode/'; |
|
|
|
|
$logFilename = substr($cellphone, -6) . '.log'; |
|
|
|
|
$logOk = @error_log("{$logTime} created\n", 3, "{$logDir}{$logFilename}"); |
|
|
|
|
$logOk = @error_log("{$logTime} created by {$cellphone}\n", 3, "{$logDir}{$logFilename}"); |
|
|
|
|
if (!$logOk) { //try to mkdir |
|
|
|
|
@mkdir($logDir, 0700, true); |
|
|
|
|
@error_log("{$logTime} created\n", 3, "{$logDir}{$logFilename}"); |
|
|
|
|
@error_log("{$logTime} created by {$cellphone}\n", 3, "{$logDir}{$logFilename}"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|