aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/skin/rpc/base
diff options
context:
space:
mode:
Diffstat (limited to 'mayor-orig/www/skin/rpc/base')
-rw-r--r--mayor-orig/www/skin/rpc/base/html/alert.phtml56
-rw-r--r--mayor-orig/www/skin/rpc/base/html/base.phtml23
2 files changed, 79 insertions, 0 deletions
diff --git a/mayor-orig/www/skin/rpc/base/html/alert.phtml b/mayor-orig/www/skin/rpc/base/html/alert.phtml
new file mode 100644
index 00000000..adda7354
--- /dev/null
+++ b/mayor-orig/www/skin/rpc/base/html/alert.phtml
@@ -0,0 +1,56 @@
+<?php
+
+ function html_alert() {
+
+ /* TODO hibakezelés info */
+
+ global $ALERT_MSG;
+
+ if (!isset($_SESSION['alert']) || (is_array($_SESSION['alert']) && count($_SESSION['alert'])==0)) {
+ return true;
+ exit;
+ }
+/*
+ $showPage = true;
+ for ($j = 0; $j < count($_SESSION['alert']); $j++) {
+
+ // Nincs mindig paraméter - ezért a $param nem kap értéket! - így az explode Notice üzenetet váltana ki...
+ $param = array();
+ $tmp = explode(':', $_SESSION['alert'][$j]);
+ $aType = readVariable($tmp[0], 'enum', 'message', array('message','info','page')); $aCode = $tmp[1];
+ for ($p = 2; $p < count($tmp); $p++) $param[] = htmlspecialchars($tmp[$p]);
+ $pstr = '';
+ // preparing $msg
+ if (!isset($ALERT_MSG[$aCode]) || $ALERT_MSG[$aCode] == '')
+ $msg = $ALERT_MSG['default'].' (<span class="alertParam">'.$aType.':'.$aCode.')</span>';
+ else $msg = $ALERT_MSG[$aCode];
+
+ // paraméter behelyettesítés
+ for($i = 0; $i < count($param); $i++) {
+ $_msg = $msg;
+ $msg = @str_replace("%$i%",'<span class="alertParam">'.($param[$i]).'</span>',$msg);
+ if ($param[$i] != '' and $_msg == $msg) $pstr .= '<span class="alertParam">'.($param[$i]).'</span>,';
+ }
+ if ($pstr != '') $msg .= ' (' . substr($pstr,0,-1) . ')';
+ if (($aType == 'message') or ($aType == 'page')) {
+ $title = _ERROR;
+ $class = 'errorMsg';
+ if ($aType == 'page') $showPage = false;
+ } else {
+ $title = _INFORMATION;
+ $class = 'infoMsg';
+ }
+ $msg = '<span>'.$title.':</span> ' . $msg;
+ if (isset($_GET['showAlert'])) echo '<div class="'.$class.'">'.$msg.'</div>'."\n";
+ }
+
+ return $showPage;
+*/
+
+ echo 'ERROR';
+ var_dump($_SESSION['alert']);
+ return false;
+
+ }
+
+?>
diff --git a/mayor-orig/www/skin/rpc/base/html/base.phtml b/mayor-orig/www/skin/rpc/base/html/base.phtml
new file mode 100644
index 00000000..49a2ce14
--- /dev/null
+++ b/mayor-orig/www/skin/rpc/base/html/base.phtml
@@ -0,0 +1,23 @@
+<?php
+
+ // http_base
+ function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) {
+ @header("Content-Type: text/html; charset=utf-8");
+ @header("Last-Modified: Mon, 20 Oct 2003 01:01:01 GMT");
+ @header("Cache-Control: no-store, no-cache, must-revalidate");
+ @header("Cache-Control: post-check=0, pre-check=0", false);
+ @header("Pragma: no-cache");
+ define('_UNIQUE', uniqid());
+ // page($page,$sub,$f,$lang,$skin,$policy);
+ global $RPC;
+ if (isset($RPC))
+ $RPC->sendResponse();
+ }
+
+ //function putResponse($DATA) {
+ // echo json_encode($DATA);
+ //}
+ // function formBegin($SET=array('method'=>'post','action'=>''),$SET2=array('print'=>true)) { }
+ // function formEnd($SET2=array('print'=>true)) { }
+
+?>