jilo-web/app/templates/block-message.php

25 lines
557 B
PHP
Raw Normal View History

2024-10-31 09:35:41 +00:00
<?php
2024-07-01 09:45:07 +00:00
2024-11-08 10:38:19 +00:00
// 'error' for errors
2024-10-31 09:35:41 +00:00
if (isset($_SESSION['error'])) {
echo "\t\t" . '<div class="error">' . $_SESSION['error'] . '</div>';
}
2024-11-08 10:38:19 +00:00
// 'notice' for all non-critical messages
if (isset($_SESSION['notice'])) {
echo "\t\t" . '<div class="notice">' . $_SESSION['notice'] . '</div>';
}
2024-10-31 09:35:41 +00:00
// 'error' for errors
2024-11-08 10:38:19 +00:00
if (isset($error)) {
echo "\t\t" . '<div class="error">' . $error . '</div>';
}
// 'notice' for all non-critical messages
2024-10-31 09:35:41 +00:00
if (isset($_SESSION['notice'])) {
echo "\t\t" . '<div class="notice">' . $_SESSION['notice'] . '</div>';
}
2024-11-08 10:38:19 +00:00
2024-10-31 09:35:41 +00:00
?>