Browse Source

a little bit of phpdoc

pull/531/head
Fabrixxm 9 years ago
parent
commit
cafb4d62f4
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      boot.php

+ 14
- 0
boot.php View File

@ -989,6 +989,13 @@ if(! function_exists('remote_user')) {
// 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();
@ -997,6 +1004,13 @@ if(! function_exists('notice')) {
}
}
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();


Loading…
Cancel
Save