Lines Matching refs:logFile

521         $logFile = $this->getSyncLogPath();
522 $logWritable = is_writable($logFile) || is_writable(dirname($logFile));
540 …"background:#f0f0f0; padding:2px 4px; border-radius:2px;">chmod 666 ' . $logFile . '</code></span>…
563 …r:#888; font-size:10px; margin:3px 0;"><em>Note: The script logs to ' . $logFile . ' automatically…
667 …ize:0.8em; margin:0 0 8px;">Location: <code style="font-size:10px;">' . $logFile . '</code> • Upda…
5310 $logFile = $this->getSyncLogPath();
5311 $logDir = dirname($logFile);
5322 if (!file_exists($logFile)) {
5323 if (!@touch($logFile)) {
5324 … echo json_encode(['success' => false, 'message' => 'Cannot create log file: ' . $logFile]);
5327 @chmod($logFile, 0666);
5331 if (!is_writable($logFile)) {
5332 …ss' => false, 'message' => 'Log file not writable: ' . $logFile . ' - Run: chmod 666 ' . $logFile]…
5358 …@file_put_contents($logFile, "[$timestamp] [ADMIN] Manual sync triggered via admin panel\n", FILE_…
5359 @file_put_contents($logFile, "[$timestamp] [ADMIN] Command: $command\n", FILE_APPEND);
5368 …@file_put_contents($logFile, "[$timestamp] [ADMIN] Error output:\n" . implode("\n", $output) . "\n…
5982 $logFile = $this->getSyncLogPath();
5985 if (file_exists($logFile)) {
5987 $lines = file($logFile);
6191 $logFile = $this->getSyncLogPath();
6194 if (!file_exists($logFile)) {
6196 if (@touch($logFile)) {
6199 …e(['success' => false, 'message' => 'Log file does not exist and cannot be created: ' . $logFile]);
6205 if (!is_writable($logFile)) {
6206 …ncode(['success' => false, 'message' => 'Log file not writable. Run: sudo chmod 666 ' . $logFile]);
6211 $result = file_put_contents($logFile, '');
6215 … echo json_encode(['success' => false, 'message' => 'file_put_contents failed on: ' . $logFile]);
6222 $logFile = $this->getSyncLogPath();
6224 if (file_exists($logFile)) {
6227 readfile($logFile);