EOL fix
This commit is contained in:
parent
447aeded96
commit
bd806432db
4
chat.php
4
chat.php
@ -35,9 +35,9 @@ function show_messages()
|
||||
$d = new DateTime($message['msgdate']);
|
||||
$m = htmlspecialchars($message['msg']);
|
||||
if ($message['type'] == 'sys') { /* Системка */
|
||||
echo sprintf("<span style='color:maroon;background:#faa;'>%s %s</span>", $d->format('H:i'), $m) . PHP_EOL;
|
||||
echo sprintf('<span style="color:maroon;background:#faa;">%s %s</span>', $d->format('H:i'), $m) . PHP_EOL;
|
||||
} elseif ($message['type'] == 'sms') { /* Телеграмма */
|
||||
echo sprintf("<span style='color:darkgreen;background:#afa;'>[Телеграмма]: %s %s</span>", $d->format('H:i'), $m) . PHP_EOL;
|
||||
echo sprintf('<span style="color:darkgreen;background:#afa;">[Телеграмма]: %s %s</span>', $d->format('H:i'), $m) . PHP_EOL;
|
||||
} else {
|
||||
echo sprintf('%s [%s]: %s', $d->format('H:i'), $message['from'], $m) . PHP_EOL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user