Lines Matching refs:logFile
495 $logFile = $this->getSyncLogPath();
496 $logWritable = is_writable($logFile) || is_writable(dirname($logFile));
514 …"background:#f0f0f0; padding:2px 4px; border-radius:2px;">chmod 666 ' . $logFile . '</code></span>…
537 …r:#888; font-size:10px; margin:3px 0;"><em>Note: The script logs to ' . $logFile . ' automatically…
641 …ize:0.8em; margin:0 0 8px;">Location: <code style="font-size:10px;">' . $logFile . '</code> • Upda…
5214 $logFile = $this->getSyncLogPath();
5215 $logDir = dirname($logFile);
5226 if (!file_exists($logFile)) {
5227 if (!@touch($logFile)) {
5228 … echo json_encode(['success' => false, 'message' => 'Cannot create log file: ' . $logFile]);
5231 @chmod($logFile, 0666);
5235 if (!is_writable($logFile)) {
5236 …ss' => false, 'message' => 'Log file not writable: ' . $logFile . ' - Run: chmod 666 ' . $logFile]…
5262 …@file_put_contents($logFile, "[$timestamp] [ADMIN] Manual sync triggered via admin panel\n", FILE_…
5263 @file_put_contents($logFile, "[$timestamp] [ADMIN] Command: $command\n", FILE_APPEND);
5272 …@file_put_contents($logFile, "[$timestamp] [ADMIN] Error output:\n" . implode("\n", $output) . "\n…
5886 $logFile = $this->getSyncLogPath();
5889 if (file_exists($logFile)) {
5891 $lines = file($logFile);
6095 $logFile = $this->getSyncLogPath();
6098 if (!file_exists($logFile)) {
6100 if (@touch($logFile)) {
6103 …e(['success' => false, 'message' => 'Log file does not exist and cannot be created: ' . $logFile]);
6109 if (!is_writable($logFile)) {
6110 …ncode(['success' => false, 'message' => 'Log file not writable. Run: sudo chmod 666 ' . $logFile]);
6115 $result = file_put_contents($logFile, '');
6119 … echo json_encode(['success' => false, 'message' => 'file_put_contents failed on: ' . $logFile]);
6126 $logFile = $this->getSyncLogPath();
6128 if (file_exists($logFile)) {
6131 readfile($logFile);