芝麻web文件管理V1.00
编辑当前文件:/home/asmplong/www/ancien-site-2019/site/administrator/components/com_akeeba/views/log/tmpl/raw.php
'.JText::_('LOG_ERROR_LOGFILENOTEXISTS').''; return; } else { // Allright, let's load and render it $fp = fopen( $logName, "rt" ); if ($fp === FALSE) { // Oops! The log isn't readable?! echo '
'.JText::_('LOG_ERROR_UNREADABLE').'
'; return; } while( !feof($fp) ) { $line = fgets( $fp ); if(!$line) return; $exploded = explode( "|", $line, 3 ); unset( $line ); switch( trim($exploded[0]) ) { case "ERROR": $fmtString = "
["; break; case "WARNING": $fmtString = "
["; break; case "INFO": $fmtString = "
["; break; case "DEBUG": $fmtString = "
["; break; default: $fmtString = "
["; break; } $fmtString .= $exploded[1] . "] " . htmlspecialchars($exploded[2]) . "
\n"; unset( $exploded ); echo $fmtString; unset( $fmtString ); } } @ob_start();