diff options
author | M.Gergo | 2018-07-06 11:14:41 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:14:41 +0200 |
commit | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (patch) | |
tree | 54835de1dfcda504c02da261f0dc26885aed2e89 /mayor-orig/www/skin/rpc | |
parent | 50310b0e4513ee3fcce67351ae61e8fff851130e (diff) | |
download | mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.tar.gz mayor-43de9af71f7f4ca5731b94a06d688ae8412ba427.zip |
2018/Feb/28 -i állapot hozzáadva, mint a módosítások kiindulási állapota
Diffstat (limited to 'mayor-orig/www/skin/rpc')
-rw-r--r-- | mayor-orig/www/skin/rpc/base/html/alert.phtml | 56 | ||||
-rw-r--r-- | mayor-orig/www/skin/rpc/base/html/base.phtml | 23 | ||||
-rw-r--r-- | mayor-orig/www/skin/rpc/module-naplo/html/base.phtml | 6 |
3 files changed, 85 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)) { } + +?> diff --git a/mayor-orig/www/skin/rpc/module-naplo/html/base.phtml b/mayor-orig/www/skin/rpc/module-naplo/html/base.phtml new file mode 100644 index 00000000..e3208ad5 --- /dev/null +++ b/mayor-orig/www/skin/rpc/module-naplo/html/base.phtml @@ -0,0 +1,6 @@ +<?php + + // Placeholder + // nincs szükségünk a napló modul phtml-jére + +?> |