From 49b6f3ec86139a1ffe009c3bf2fb22337cce40d0 Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 5 May 2024 23:36:42 +0000 Subject: [PATCH] add cellphone to friends code log --- plugins/Common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Common.php b/plugins/Common.php index 0f7c30f..5d61445 100644 --- a/plugins/Common.php +++ b/plugins/Common.php @@ -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}"); } }