1
0
Fork 0

a little bit of phpdoc

This commit is contained in:
Fabrixxm 2012-11-09 02:43:22 -05:00
parent 1e1ea43e74
commit cafb4d62f4

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();