// a page is loaded. Usually used for errors or alerts.
if(! function_exists('notice')) {
+ /**
+ * Show an error message to user.
+ *
+ * This function save text in session, to be shown to the user at next page load
+ *
+ * @param string $s - Text of notice
+ */
function notice($s) {
$a = get_app();
if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array();
}
}
if(! function_exists('info')) {
+ /**
+ * Show an info message to user.
+ *
+ * This function save text in session, to be shown to the user at next page load
+ *
+ * @param string $s - Text of notice
+ */
function info($s) {
$a = get_app();
if(! x($_SESSION,'sysmsg_info')) $_SESSION['sysmsg_info'] = array();