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/cron/base/html/alert.phtml | 6 --- mayor-orig/www/skin/cron/base/html/base.phtml | 56 -------------------------- 2 files changed, 62 deletions(-) delete mode 100644 mayor-orig/www/skin/cron/base/html/alert.phtml delete mode 100644 mayor-orig/www/skin/cron/base/html/base.phtml (limited to 'mayor-orig/www/skin/cron') diff --git a/mayor-orig/www/skin/cron/base/html/alert.phtml b/mayor-orig/www/skin/cron/base/html/alert.phtml deleted file mode 100644 index bf97d3c5..00000000 --- a/mayor-orig/www/skin/cron/base/html/alert.phtml +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/mayor-orig/www/skin/cron/base/html/base.phtml b/mayor-orig/www/skin/cron/base/html/base.phtml deleted file mode 100644 index e12cefb3..00000000 --- a/mayor-orig/www/skin/cron/base/html/base.phtml +++ /dev/null @@ -1,56 +0,0 @@ -0) { - _html_base_alert($_SESSION['alert']); - } - $_SESSION['alert'] = array(); - -} - -function _html_base_alert($alert) { - if (is_array($alert)) - foreach($alert as $a) { - $param = array(); - $tmp = explode(':', $a); - $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'].' ('.$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 .= ''. $msg .''."\n"; - } - - return $showPage; - -} - -?> -- cgit v1.2.3