Exemplo n.º 1
0
 static function GetInstance()
 {
     if (!IRCLog::$instance) {
         IRCLog::$instance = new IRCLog();
     }
     return IRCLog::$instance;
 }
Exemplo n.º 2
0
                <td class="dark-{$stripe}">{$matches['2']}</td>   
                <td class="light-{$stripe}">{$matches['3']}</td>   
            </tr>
EOD;
            $reply .= $entry;
        }
        $footer = <<<EOD
            </tbody>
        </table>
EOD;
        $reply .= $footer;
        return $reply;
    }
}
$log_file = "#iitm-linux.log";
$log = new IRCLog($log_file);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<html>
    <head>
        <title>Rob0tnik - Logs</title>
        <link rel="stylesheet" href="style.css" />
    </head>
    <body>
        <h1>Rob0tnik - Logs</h1>

        <?php 
echo $log->render();
?>