game/err.php

23 lines
597 B
PHP
Raw Normal View History

<?php
$str = '';
foreach (file(1) as $line) {
$class = strstr($line, 'Insallah')? 'i' : '';
$class .= strstr($line, 'Notice')? 'n' : '';
if (!strstr($line, 'Insallah') && isset($_GET['my'])) continue;
$str .= "<li><span class='$class'>$line</span></li>";
}
?>
<!DOCTYPE html>
<html lang=ru>
<meta charset=UTF-8/>
<style>
li {font-family: "Fira Code Light", Consolas, monospace; margin: 5px 0;}
li:hover {background-color: lavender;}
.i {font-style: italic; background-color: lightgoldenrodyellow}
.n {color: silver;}
</style>
<title></title>
<ol><?= $str ?></ol>