From f51c9ed2abe5c68211bb3736be5f70b1fe2c9ec0 Mon Sep 17 00:00:00 2001 From: M.Gergo Date: Fri, 8 Mar 2019 21:20:34 +0100 Subject: további rendrakás --- mayor-orig/www/skin/ajax/base/html/alert.phtml | 25 ------ mayor-orig/www/skin/ajax/base/html/base.phtml | 101 ------------------------- 2 files changed, 126 deletions(-) delete mode 100644 mayor-orig/www/skin/ajax/base/html/alert.phtml delete mode 100644 mayor-orig/www/skin/ajax/base/html/base.phtml (limited to 'mayor-orig/www/skin/ajax/base/html') diff --git a/mayor-orig/www/skin/ajax/base/html/alert.phtml b/mayor-orig/www/skin/ajax/base/html/alert.phtml deleted file mode 100644 index e81b75ed..00000000 --- a/mayor-orig/www/skin/ajax/base/html/alert.phtml +++ /dev/null @@ -1,25 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/skin/ajax/base/html/base.phtml b/mayor-orig/www/skin/ajax/base/html/base.phtml deleted file mode 100644 index cfa12036..00000000 --- a/mayor-orig/www/skin/ajax/base/html/base.phtml +++ /dev/null @@ -1,101 +0,0 @@ - base.php - putValidXHTML() -*/ - - - /* Egy JSON példa - echo '{ "action" : [ ' - .'{ "func" : "alert", "param" : [ "Helló", "World" ] }, ' - .'{ "func" : "update", "param" : [ { "id" : "updateForm", "content" : "Helló Update" } ]}, ' - .'{ "func" : "hide", "param" : [ "settings" ] },' - .'{ "func" : "show", "param" : [ "updateWindow" ] },' - .'{ "func" : "remove", "param" : [ "head" ] },' - .'{ "func" : "removeClass", "param" : [ { "id" : "jegy-1", "class" : "jegy1" } ] },' - .'{}],' - .' "name" : "Violet", "occupation" : "character" }'; - */ - - -// ------------------------------------------------------------------- -// html_base() : a html oldal szerkezete -// ------------------------------------------------------------------- - -function html_base($sessionID,$policy,$page,$sub,$f,$lang,$skin,$MENU) { - - global $_JSON; - - if ($_JSON['result'] === false) @header("HTTP/1.1 400 Bad Request"); - else @header("HTTP/1.1 200 OK"); - - @header('Content-type: application/json; charset=utf-8'); - @header("Etag: ".__SALTVALUE.'-'.__SALTNAME.'-'.$_SESSION['mayorToken']); // ajax request esetén innen tudható a _SALTVALUE - - _httpHeader(); - - if ( (!is_array($_JSON)?false:json_encode($_JSON)) === false) { - ob_start(); - define('_UNIQUE', uniqid()); - //echo '
'; - page($page,$sub,$f,$lang,$skin,$policy); - $_JSON['html'] = ob_get_contents(); - ob_end_clean(); - } - if (is_array($_SESSION['alert']) && count($_SESSION['alert'])>0) { - for($i=0; $i'.$aType.':'.$aCode.')'; - else $msg = $ALERT_MSG[$aCode]; - - // paraméter behelyettesítés - for($i = 0; $i < count($param); $i++) { - $_msg = $msg; - $msg = @str_replace("%$i%",''.($param[$i]).'',$msg); - if ($param[$i] != '' and $_msg == $msg) $pstr .= ''.($param[$i]).','; - } - 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 = ''.$title.': ' . $msg; - $showPage .= '
'.str_replace('***','
',$msg).'
'."\n"; - } - - return $showPage; - -} - -?> -- cgit v1.2.3