EOL fix
This commit is contained in:
parent
bd806432db
commit
2e8d46edca
6
chat.php
6
chat.php
@ -35,11 +35,11 @@ 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><br>', $d->format('H:i'), $m);
|
||||
} 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><br>', $d->format('H:i'), $m);
|
||||
} else {
|
||||
echo sprintf('%s [%s]: %s', $d->format('H:i'), $message['from'], $m) . PHP_EOL;
|
||||
echo sprintf('%s [%s]: %s<br>', $d->format('H:i'), $message['from'], $m);
|
||||
}
|
||||
}
|
||||
} catch (\Krugozor\Database\Mysql\Exception $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user