aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/api
diff options
context:
space:
mode:
authorM.Gergo2018-12-16 16:35:17 +0100
committerM.Gergo2018-12-16 16:35:17 +0100
commite6988247360fa98b85915a38803d018dd353df00 (patch)
tree24f42628f6cdaedacc06ce033378173a0e561be9 /mayor-orig/www/skin/api
parent2a219b9ea312fb88703a33ea2450e32af40be64a (diff)
downloadmayor-e6988247360fa98b85915a38803d018dd353df00.tar.gz
mayor-e6988247360fa98b85915a38803d018dd353df00.zip
Rev: 4412
Diffstat (limited to 'mayor-orig/www/skin/api')
-rw-r--r--mayor-orig/www/skin/api/base/html/alert.phtml13
-rw-r--r--mayor-orig/www/skin/api/base/html/base.phtml11
2 files changed, 24 insertions, 0 deletions
diff --git a/mayor-orig/www/skin/api/base/html/alert.phtml b/mayor-orig/www/skin/api/base/html/alert.phtml
new file mode 100644
index 00000000..fe4c54e4
--- /dev/null
+++ b/mayor-orig/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/www/skin/api/base/html/base.phtml b/mayor-orig/www/skin/api/base/html/base.phtml
new file mode 100644
index 00000000..34ca652f
--- /dev/null
+++ b/mayor-orig/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);
+ }
+
+?>