diff options
Diffstat (limited to 'mayor-orig/mayor-base/www/skin/api')
-rw-r--r-- | mayor-orig/mayor-base/www/skin/api/base/html/alert.phtml | 13 | ||||
-rw-r--r-- | mayor-orig/mayor-base/www/skin/api/base/html/base.phtml | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/mayor-orig/mayor-base/www/skin/api/base/html/alert.phtml b/mayor-orig/mayor-base/www/skin/api/base/html/alert.phtml new file mode 100644 index 00000000..fe4c54e4 --- /dev/null +++ b/mayor-orig/mayor-base/www/skin/api/base/html/alert.phtml @@ -0,0 +1,13 @@ +<?php + + function html_alert() { + // global $ALERT_MSG; // jelenleg nem használjuk + if (isset($_SESSION['alert'])===true && is_array($_SESSION['alert'] === true && count($_SESSION['alert'])>0)) { + var_dump($_SESSION['alert']); + return false; // ne jelenjen meg az oldal + } else { + return true; // nincs hiba + } + } + +?> diff --git a/mayor-orig/mayor-base/www/skin/api/base/html/base.phtml b/mayor-orig/mayor-base/www/skin/api/base/html/base.phtml new file mode 100644 index 00000000..34ca652f --- /dev/null +++ b/mayor-orig/mayor-base/www/skin/api/base/html/base.phtml @@ -0,0 +1,11 @@ +<?php + + function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) { + global $_JSON; + @header("Content-Type: application/json; charset=utf-8"); + define('_UNIQUE', uniqid()); //--TODO GLOBAL + page($page,$sub,$f,$lang,$skin,$policy); + echo json_encode($_JSON); + } + +?> |