From bc5cae7e82c4302398170021a71ed27e256c22e7 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Fri, 15 May 2026 20:23:25 +0200 Subject: [PATCH] update --- Admin/controller/FileController.php | 2 +- Admin/controller/IndexController.php | 12 +- Admin/controller/MapsController.php | 2 +- Admin/controller/UtilsController.php | 2 +- Admin/module/Admin.mod.php | 2 +- Admin/module/AuthDAL.mod.php | 2 +- Admin/module/CacheParam.mod.php | 2 +- ...a2a50e226170e7019d61d_0.file.Index.tpl.php | 64 ++++++ Server/controller/ServerController.php | 2 +- Server/index.php | 8 +- _unpack.php | 2 +- controller/IndexController.php | 6 + controller/SharedController.php | 2 +- core/ErrorHandler.php | 7 +- core/class/Controller.class.php | 2 +- core/class/DB.class.php | 14 +- core/class/Dictionary.class.php | 5 +- core/class/Exception.class.php | 8 +- core/class/FrontController.class.php | 7 +- core/class/HtmlButton.class.php | 2 +- core/class/IDefaultDAL.class.php | 2 +- core/class/MFLog.class.php | 4 +- core/class/MainController.class.php | 7 +- core/class/MfCurl.class.php | 2 +- core/class/Profiler.class.php | 16 +- core/class/Registry.class.php | 2 +- core/class/Request.class.php | 4 +- core/class/Router.class.php.bak | 2 +- core/class/SessionProxy.class.php | 2 +- core/class/TemplateMaster.class.php | 2 +- core/class/UserValidator.class.php | 8 +- core/class/Utils.class.php | 8 +- core/class/UtilsUtf.class.php | 2 +- core/class/Validator.class.php | 2 +- core/config/Admin/db.config.php | 5 +- core/config/Admin/panel.config.php | 6 +- core/config/Admin/param.config.php | 4 +- core/config/Admin/path.config.php | 5 +- core/config/Package/param.config.php | 3 +- core/config/Package/path.config.php | 4 +- core/config/Server/param.config.php | 5 +- core/config/Server/path.config.php | 4 +- core/config/Strona/db.config.php | 5 +- core/config/Strona/param.config.php | 3 +- core/config/Strona/path.config.php | 4 +- core/config/class.config.php | 6 +- core/core.php | 8 +- core/lib/Smarty/Smarty_Compiler.class.php | 3 +- core/lib/Smarty/Smarty_Compiler.class_1.php | 3 +- core/lib/_Smarty/Smarty_Compiler.class.php | 3 +- core/lib/_Smarty/Smarty_Compiler.class_1.php | 3 +- core/model/Mailing.class.php | 2 +- core/model/MailingDAL.class.php | 2 +- core/plugins/Captcha.php | 2 +- core/plugins/Smarty/function.imgformat.php | 2 +- core/plugins/Smarty/function.source.php | 2 +- core/plugins/Smarty/function.translate.php | 2 +- .../Smarty/function.translate_to_title.php | 2 +- core/plugins/Smarty/function.url.php | 2 +- core/plugins/Smarty/function.url2.php | 2 +- core/plugins/Smarty/function.urlO.php | 2 +- index.php | 2 +- info.php | 2 +- module/AuthDAL.mod.php | 2 +- module/CacheParam.mod.php | 2 +- pack.php | 2 +- pack/index.php | 2 +- pack/index.php.bak | 2 +- pack/info.php | 2 +- ...35b245267f82345_0.file.MenuLangBox.tpl.php | 52 +++++ ...ab2370f5b35cb23532d83_0.file.Index.tpl.php | 192 ++++++++++++++++++ ...ce9d20a785b926afbd_0.file.BanerBox.tpl.php | 73 +++++++ ...4052917c1ebb0117987_0.file.MenuBox.tpl.php | 25 +++ ...d8bf4873e78ed9f6_0.file.GetUrlLang.tpl.php | 25 +++ 74 files changed, 563 insertions(+), 130 deletions(-) create mode 100644 Admin/temp/compile/de22142dedda53f88dda2a50e226170e7019d61d_0.file.Index.tpl.php create mode 100644 temp/compile/592539974dafb5071a560bf91c59f42e^455b4963dc23e0055ed3fdf4535b245267f82345_0.file.MenuLangBox.tpl.php create mode 100644 temp/compile/8768d31bf749e2f6a78ab2370f5b35cb23532d83_0.file.Index.tpl.php create mode 100644 temp/compile/b72e7b69a31cbac848c0362c4f886254^d9fe2d1e16928501c222f1ce9d20a785b926afbd_0.file.BanerBox.tpl.php create mode 100644 temp/compile/d3b41e09c8acfaa97c318f01455a96f5^3f43c59ca81256b7b11d24052917c1ebb0117987_0.file.MenuBox.tpl.php create mode 100644 temp/compile/dd22a31b1e7d5645e1e4a2fa1c440a81^d25ce6d5105e689f27f4b5c6d8bf4873e78ed9f6_0.file.GetUrlLang.tpl.php diff --git a/Admin/controller/FileController.php b/Admin/controller/FileController.php index 8b508aa..43a3b21 100644 --- a/Admin/controller/FileController.php +++ b/Admin/controller/FileController.php @@ -1,4 +1,4 @@ -AddRedirect(URL_MAIN . '/Structure/', 0); //$this->AddRedirect(URL_MAIN . '/Calc/', 0); @@ -80,4 +82,4 @@ class IndexController extends MainController implements ControllerInterface { } -?> \ No newline at end of file +?> diff --git a/Admin/controller/MapsController.php b/Admin/controller/MapsController.php index 4ade5b7..f978792 100644 --- a/Admin/controller/MapsController.php +++ b/Admin/controller/MapsController.php @@ -1,4 +1,4 @@ -_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.30', + 'unifunc' => 'content_6a074f3087e5c1_28132119', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'de22142dedda53f88dda2a50e226170e7019d61d' => + array ( + 0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\Admin\\template\\partial\\Index\\Index.tpl', + 1 => 1778862571, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6a074f3087e5c1_28132119 (Smarty_Internal_Template $_smarty_tpl) { +?> +
+
+
+ +
+ + + +
+ + +
+
+
+
+
+
+
+ +
+ +
+GenerateModelAction(array()); Core::Garbage(); //echo "CronScript"; -?> \ No newline at end of file +?> diff --git a/_unpack.php b/_unpack.php index 05911f6..5545e9d 100644 --- a/_unpack.php +++ b/_unpack.php @@ -1,4 +1,4 @@ -open('makl_backup.zip'); diff --git a/controller/IndexController.php b/controller/IndexController.php index 8457861..f81a98c 100644 --- a/controller/IndexController.php +++ b/controller/IndexController.php @@ -277,6 +277,12 @@ class IndexController extends MainController implements ControllerInterface { public function PreDispatch($param) { //$this->AddScript('swfobject.js'); + if(!is_array($param)) { + $param = array(); + } + if(!isset($param['lang'])) { + $param['lang'] = 'pl'; + } $this->smarty->assign('lang', $param['lang']); $this->smarty->assign('indexSG', true); $this->Run($param); diff --git a/controller/SharedController.php b/controller/SharedController.php index ac304f9..8fcca8a 100644 --- a/controller/SharedController.php +++ b/controller/SharedController.php @@ -1,4 +1,4 @@ -'); //ini_set('error_append_string','">'); } -?> \ No newline at end of file +?> diff --git a/core/class/Controller.class.php b/core/class/Controller.class.php index cc2eb9a..9b6a972 100644 --- a/core/class/Controller.class.php +++ b/core/class/Controller.class.php @@ -1,4 +1,4 @@ -dbh = new mysqli($this->dbHost, $this->user, $this->pass, $this->dbName); + $this->dbh = @new mysqli($this->dbHost, $this->user, $this->pass, $this->dbName); if ($this->dbh->connect_errno) { - echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; + throw new MysqlException("Failed to connect to MySQL: (" . $this->dbh->connect_errno . ") " . $this->dbh->connect_error, $this->dbh->connect_errno); } } @@ -346,6 +346,9 @@ class DBMysqlStatement implements DBStatement { $this->Execute(); //var_dump($this->result); //Utils::ArrayDisplay($this); + if (!($this->result instanceof mysqli_result)) { + return false; + } $result = \mysqli_fetch_assoc($this->result); } @@ -353,6 +356,9 @@ class DBMysqlStatement implements DBStatement { //$this->dbMysql->Connect(__METHOD__); $this->Execute(); + if (!($this->result instanceof mysqli_result)) { + return false; + } $result = mysqli_fetch_assoc($this->result); $this->CacheWrite($result); } else { @@ -701,4 +707,4 @@ class DBProd extends DBMysql { } -?> \ No newline at end of file +?> diff --git a/core/class/Dictionary.class.php b/core/class/Dictionary.class.php index 266a2cc..187e5d8 100644 --- a/core/class/Dictionary.class.php +++ b/core/class/Dictionary.class.php @@ -22,7 +22,7 @@ class Dictionary { $langs = Router::$arrayLang; //$langs = array_filter($langs, create_function('$x', 'return $x != "' . $lang . '";')); - $langs = array_filter($langs, function($x) {return $x != "' ".self::$lang.'"';}); + $langs = array_filter($langs, function($x) {return $x != self::$lang;}); foreach ($langs as $lang) { self::$allLangs[$lang] = MfDictionaryDAL::GetAllVariables($lang, 0, $location); } @@ -44,6 +44,9 @@ class Dictionary { } public static function CheckAndAdd($keyword, $location) { + if (Core::GetAppSafeMode()) { + return; + } // $lang = 'pl'; $lang = Router::$curLang; diff --git a/core/class/Exception.class.php b/core/class/Exception.class.php index 8fccb8c..671dbf5 100644 --- a/core/class/Exception.class.php +++ b/core/class/Exception.class.php @@ -1,4 +1,4 @@ -message = mysql_error(); + $this->message = ''; } else $this->message = $message; if(!$code) { - $this->code = mysqli_errno(1); + $this->code = 0; } else $this->code = $code; @@ -159,4 +159,4 @@ class SecurityException extends ApiException { } -?> \ No newline at end of file +?> diff --git a/core/class/FrontController.class.php b/core/class/FrontController.class.php index 3cf3649..e313c9c 100644 --- a/core/class/FrontController.class.php +++ b/core/class/FrontController.class.php @@ -1,4 +1,4 @@ -controllerObj, $method) && !method_exists($this->controllerObj, $method.'Action'))) { $this->method = 'Index'; } - if($this->loadError && ($this->method=='Index' && $this->route['param']['urlParam']!='')) { + $urlParam = isset($this->route['param']['urlParam']) ? $this->route['param']['urlParam'] : ''; + if($this->loadError && ($this->method=='Index' && $urlParam!='')) { //Utils::ArrayDisplay($this->route, __FILE__.' Line: '.__LINE__); $this->method = 'Error404'; } @@ -651,4 +652,4 @@ class FrontController { } } -?> \ No newline at end of file +?> diff --git a/core/class/HtmlButton.class.php b/core/class/HtmlButton.class.php index 504ddcf..c8a3683 100644 --- a/core/class/HtmlButton.class.php +++ b/core/class/HtmlButton.class.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?> diff --git a/core/class/MainController.class.php b/core/class/MainController.class.php index 5a00032..db868d6 100644 --- a/core/class/MainController.class.php +++ b/core/class/MainController.class.php @@ -18,6 +18,9 @@ abstract class MainController extends Controller { * */ protected function Run($param = array()) { + if(!is_array($param)) { + $param = array(); + } //$this->SetAjaxRender(); $urlMain = URL_MAIN; $this->smarty->assign('urlMain', $urlMain); @@ -34,7 +37,7 @@ abstract class MainController extends Controller { case 'Strona': session_start(); - if ($param['lang'] == '') { + if (!isset($param['lang']) || $param['lang'] == '') { $param['lang'] = 'pl'; Router::$curLang = $param['lang']; } @@ -527,4 +530,4 @@ abstract class MainController extends Controller { } -?> \ No newline at end of file +?> diff --git a/core/class/MfCurl.class.php b/core/class/MfCurl.class.php index 21604e3..3509d25 100644 --- a/core/class/MfCurl.class.php +++ b/core/class/MfCurl.class.php @@ -158,7 +158,7 @@ class MfCurl { $this->lastRequest = $url; $this->lastRequestMethod = $method; - if (ereg("^(https)", $url)) { + if (preg_match('/^(https)/', $url)) { $this->SetOption(CURLOPT_SSL_VERIFYPEER, false); } diff --git a/core/class/Profiler.class.php b/core/class/Profiler.class.php index 752fea0..b40dd6b 100644 --- a/core/class/Profiler.class.php +++ b/core/class/Profiler.class.php @@ -133,7 +133,7 @@ class Profiler { ?>
-
- -

"; if(self::$profiling) { $return = true; } - if(in_array($_SERVER['REMOTE_ADDR'], self::$clientIp) && self::$profiling) { + if(isset($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'], self::$clientIp) && self::$profiling) { $return = true; } else { $return = false; @@ -196,4 +196,4 @@ echo"

"; } -?> \ No newline at end of file +?> diff --git a/core/class/Registry.class.php b/core/class/Registry.class.php index b03db57..4517e97 100644 --- a/core/class/Registry.class.php +++ b/core/class/Registry.class.php @@ -1,4 +1,4 @@ -prepare($sql) - ->bindParam("01", mysql_escape_string(strip_tags($login)) ) + ->bindParam("01", strip_tags($login) ) ->execute(); $amout=$stmt->FetchRow(); @@ -45,7 +45,7 @@ abstract class UserValidator { $sql = "SELECT count(email) FROM wp_preserve WHERE email=:01"; $stmt = $db->prepare($sql) - ->bindParam("01", mysql_escape_string(strip_tags($email)) ) + ->bindParam("01", strip_tags($email) ) ->execute(); $amout=$stmt->FetchRow(); @@ -60,8 +60,8 @@ abstract class UserValidator { $sql="SELECT count(login) FROM wp_preserve WHERE hash=:01 AND passwd=:02"; $stmt = $db->prepare($sql) - ->bindParam("01",mysql_escape_string(strip_tags($hash)) ) - ->bindParam("02",mysql_escape_string(strip_tags($password)) ) + ->bindParam("01",strip_tags($hash) ) + ->bindParam("02",strip_tags($password) ) ->execute(); $amout=$stmt->FetchRow(); diff --git a/core/class/Utils.class.php b/core/class/Utils.class.php index 61d8a7d..a068b78 100644 --- a/core/class/Utils.class.php +++ b/core/class/Utils.class.php @@ -1,4 +1,4 @@ -\n"); print("".$array_name."\n"); // for (reset($array_name); (strcmp(($key=key($array_name)) ,"")); next($array_name)){ - while (list($key, $value) = each($array_name)) { + foreach ($array_name as $key => $value) { if (strcmp($key,"GLOBALS") == 0) $user_defined = 0; if ($user_defined == 1) continue; if ((is_array($value) || is_object($value)) && (strcmp($key,"GLOBALS") != 0)) { @@ -739,7 +739,7 @@ class Utils { } public static function DisplayBackTrace($backtrace) { - $backtrace = array_map(create_function('$a', 'return array($a["line"], $a["file"], $a["function"]);'), $backtrace); + $backtrace = array_map(function ($a) { return array($a["line"], $a["file"], $a["function"]); }, $backtrace); var_dump($backtrace); } @@ -1466,7 +1466,7 @@ class Utils { $pageNum = $param[ROUTER_PAGE_LABEL]; $page = explode('-', $pageNum); - array_filter($page, create_function('$x', 'if ((int)$x <= 0) { throw new UserException("Strona poza zakresem"); }')); + array_filter($page, function ($x) { if ((int)$x <= 0) { throw new UserException("Strona poza zakresem"); } }); if ($smarty != null) diff --git a/core/class/UtilsUtf.class.php b/core/class/UtilsUtf.class.php index c2b095b..65e0f5d 100644 --- a/core/class/UtilsUtf.class.php +++ b/core/class/UtilsUtf.class.php @@ -1,4 +1,4 @@ -=3 && strlen($value)<=15 && ereg($pattern,$value,$matches)) { + if(strlen($value)>=3 && strlen($value)<=15 && preg_match('/' . str_replace('/', '\\/', $pattern) . '/', $value, $matches)) { //var_dump($matches); return true; } diff --git a/core/config/Admin/db.config.php b/core/config/Admin/db.config.php index 03d805a..7cefc73 100644 --- a/core/config/Admin/db.config.php +++ b/core/config/Admin/db.config.php @@ -10,7 +10,4 @@ define('prodUser', 'zurawikn_aem'); define('prodPass', 'G]@0NeuvRokQ'); /** Nazwa hosta serwera MySQL */ -define('prodHost', 'localhost'); - -?> - +define('prodHost', 'localhost'); \ No newline at end of file diff --git a/core/config/Admin/panel.config.php b/core/config/Admin/panel.config.php index 361b19a..1da04fd 100644 --- a/core/config/Admin/panel.config.php +++ b/core/config/Admin/panel.config.php @@ -19,8 +19,4 @@ $panelMenu['admin'] =array( -define('ARRAY_PANEL_MENU', $panelMenu); - - - -?> \ No newline at end of file +define('ARRAY_PANEL_MENU', $panelMenu); \ No newline at end of file diff --git a/core/config/Admin/param.config.php b/core/config/Admin/param.config.php index 51ce4ea..33eaa3c 100644 --- a/core/config/Admin/param.config.php +++ b/core/config/Admin/param.config.php @@ -40,6 +40,4 @@ define('COMMENT_INDENT', 10); //==Param=URL=STRONA====== define('STRONA_APPLICATION_FILE_TYPE', ''); define('STRONA_URL_DELIMITER', '/'); -//------------------------ - -?> \ No newline at end of file +//------------------------ \ No newline at end of file diff --git a/core/config/Admin/path.config.php b/core/config/Admin/path.config.php index 9b849c3..105f05d 100644 --- a/core/config/Admin/path.config.php +++ b/core/config/Admin/path.config.php @@ -22,9 +22,8 @@ define ('DBCACHE_PATH', PATH_MAIN_APP . 'temp' . DS . 'dbcache' . DS); define ('URL_MAIN', 'https://' . APP_URL); define ('URL_STATIC_CONTENT', 'https://' . APP_STATIC_URL); define ('URL_SITE_MAIN', 'https://' . APP_SITE_URL); +define ('FATAL_ERROR_URL', URL_MAIN); define ('LOG4PHP_DIR', PATH_CORE . 'lib' . DS . 'log4php' . DS . 'src' . DS . 'php' . DS); define ('LOG4PHP_CONFIGURATION', PATH_CORE . 'config' . DS . 'Log4PHPConfig.xml'); -require_once(LOG4PHP_DIR . 'Logger.php'); - -?> \ No newline at end of file +require_once(LOG4PHP_DIR . 'Logger.php'); \ No newline at end of file diff --git a/core/config/Package/param.config.php b/core/config/Package/param.config.php index 8a43ef7..16b0514 100644 --- a/core/config/Package/param.config.php +++ b/core/config/Package/param.config.php @@ -51,5 +51,4 @@ define('ADMIN_PANEL',false); define('HEAD_TITLE', 'ParioPack'); define('HEAD_KEYWORDS', ''); define('HEAD_DESCRIPTION', ''); -define('STATISTIC', ''); -?> \ No newline at end of file +define('STATISTIC', ''); \ No newline at end of file diff --git a/core/config/Package/path.config.php b/core/config/Package/path.config.php index bf37444..a3fa27f 100644 --- a/core/config/Package/path.config.php +++ b/core/config/Package/path.config.php @@ -31,6 +31,4 @@ define ('URL_STATIC_CONTENT', 'http://' . APP_STATIC_URL); define ('LOG4PHP_DIR', PATH_CORE . 'lib' . DS . 'log4php' . DS . 'src' . DS . 'php' . DS); define ('LOG4PHP_CONFIGURATION', PATH_CORE . 'config' . DS . 'Log4PHPConfig.xml'); -require_once(LOG4PHP_DIR . 'Logger.php'); - -?> \ No newline at end of file +require_once(LOG4PHP_DIR . 'Logger.php'); \ No newline at end of file diff --git a/core/config/Server/param.config.php b/core/config/Server/param.config.php index 7d96e64..109a360 100644 --- a/core/config/Server/param.config.php +++ b/core/config/Server/param.config.php @@ -91,7 +91,4 @@ define('WP_API_PASSWORD', '872GtwyJ29U'); //define('WP_API_PASSWORD', 'aIVsj3kYh32j'); define('WP_API_URL', 'http://wpapi.wp.pl/api'); define('WP_API_URL_GET', 'http://get-2.wpapi.wp.pl/?'); -/** end WP API **/ - - -?> \ No newline at end of file +/** end WP API **/ \ No newline at end of file diff --git a/core/config/Server/path.config.php b/core/config/Server/path.config.php index 0b89177..2a011f3 100644 --- a/core/config/Server/path.config.php +++ b/core/config/Server/path.config.php @@ -30,6 +30,4 @@ define ('URL_STATIC_CONTENT', 'http://' . APP_STATIC_URL); define ('LOG4PHP_DIR', PATH_CORE . DS . 'lib' . DS . 'log4php' . DS . 'src' . DS . 'log4php' . DS); define ('LOG4PHP_CONFIGURATION', PATH_CORE . DS . 'config' . DS . 'Log4PHPConfig.xml'); require_once(LOG4PHP_DIR . 'LoggerManager.php'); -define('FEED_CACHE_DIR', PATH_CONFIG . '..' . DS . '..' . DS . '..' . DS . 'FeedCache' . DS); - -?> +define('FEED_CACHE_DIR', PATH_CONFIG . '..' . DS . '..' . DS . '..' . DS . 'FeedCache' . DS); \ No newline at end of file diff --git a/core/config/Strona/db.config.php b/core/config/Strona/db.config.php index ed10477..14286da 100644 --- a/core/config/Strona/db.config.php +++ b/core/config/Strona/db.config.php @@ -10,7 +10,4 @@ define('prodUser', '01244953_zurawik'); define('prodPass', 'Df61Xz21'); /** Nazwa hosta serwera MySQL */ -define('prodHost', 'mysql8'); - -?> - +define('prodHost', 'mysql8'); \ No newline at end of file diff --git a/core/config/Strona/param.config.php b/core/config/Strona/param.config.php index a509c24..d720968 100644 --- a/core/config/Strona/param.config.php +++ b/core/config/Strona/param.config.php @@ -51,5 +51,4 @@ define('ADMIN_PANEL',false); define('HEAD_TITLE', 'HEAD_TITLE'); define('HEAD_KEYWORDS', ''); define('HEAD_DESCRIPTION', ''); -define('STATISTIC', ''); -?> \ No newline at end of file +define('STATISTIC', ''); \ No newline at end of file diff --git a/core/config/Strona/path.config.php b/core/config/Strona/path.config.php index d61f38e..e5ac907 100644 --- a/core/config/Strona/path.config.php +++ b/core/config/Strona/path.config.php @@ -31,6 +31,4 @@ define ('URL_STATIC_CONTENT', 'https://' . APP_STATIC_URL); define ('LOG4PHP_DIR', PATH_CORE . 'lib' . DS . 'log4php' . DS . 'src' . DS . 'php' . DS); define ('LOG4PHP_CONFIGURATION', PATH_CORE . 'config' . DS . 'Log4PHPConfig.xml'); -require_once(LOG4PHP_DIR . 'Logger.php'); - -?> \ No newline at end of file +require_once(LOG4PHP_DIR . 'Logger.php'); \ No newline at end of file diff --git a/core/config/class.config.php b/core/config/class.config.php index 9abfa92..6718eed 100644 --- a/core/config/class.config.php +++ b/core/config/class.config.php @@ -1,4 +1,4 @@ - \ No newline at end of file +} \ No newline at end of file diff --git a/core/core.php b/core/core.php index d372b50..0ae6323 100644 --- a/core/core.php +++ b/core/core.php @@ -1,4 +1,4 @@ - \ No newline at end of file +?> diff --git a/core/lib/Smarty/Smarty_Compiler.class.php b/core/lib/Smarty/Smarty_Compiler.class.php index ecfb98d..1836d92 100644 --- a/core/lib/Smarty/Smarty_Compiler.class.php +++ b/core/lib/Smarty/Smarty_Compiler.class.php @@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty { case 'php': /* handle folded tags replaced by {php} */ - list(, $block) = each($this->_folded_blocks); + $block = current($this->_folded_blocks); + next($this->_folded_blocks); $this->_current_line_no += substr_count($block[0], "\n"); /* the number of matched elements in the regexp in _compile_file() determins the type of folded tag that was found */ diff --git a/core/lib/Smarty/Smarty_Compiler.class_1.php b/core/lib/Smarty/Smarty_Compiler.class_1.php index f09f8de..1fb09b8 100644 --- a/core/lib/Smarty/Smarty_Compiler.class_1.php +++ b/core/lib/Smarty/Smarty_Compiler.class_1.php @@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty { case 'php': /* handle folded tags replaced by {php} */ - list(, $block) = each($this->_folded_blocks); + $block = current($this->_folded_blocks); + next($this->_folded_blocks); $this->_current_line_no += substr_count($block[0], "\n"); /* the number of matched elements in the regexp in _compile_file() determins the type of folded tag that was found */ diff --git a/core/lib/_Smarty/Smarty_Compiler.class.php b/core/lib/_Smarty/Smarty_Compiler.class.php index ecfb98d..1836d92 100644 --- a/core/lib/_Smarty/Smarty_Compiler.class.php +++ b/core/lib/_Smarty/Smarty_Compiler.class.php @@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty { case 'php': /* handle folded tags replaced by {php} */ - list(, $block) = each($this->_folded_blocks); + $block = current($this->_folded_blocks); + next($this->_folded_blocks); $this->_current_line_no += substr_count($block[0], "\n"); /* the number of matched elements in the regexp in _compile_file() determins the type of folded tag that was found */ diff --git a/core/lib/_Smarty/Smarty_Compiler.class_1.php b/core/lib/_Smarty/Smarty_Compiler.class_1.php index f09f8de..1fb09b8 100644 --- a/core/lib/_Smarty/Smarty_Compiler.class_1.php +++ b/core/lib/_Smarty/Smarty_Compiler.class_1.php @@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty { case 'php': /* handle folded tags replaced by {php} */ - list(, $block) = each($this->_folded_blocks); + $block = current($this->_folded_blocks); + next($this->_folded_blocks); $this->_current_line_no += substr_count($block[0], "\n"); /* the number of matched elements in the regexp in _compile_file() determins the type of folded tag that was found */ diff --git a/core/model/Mailing.class.php b/core/model/Mailing.class.php index 8adc1e4..4f7b274 100644 --- a/core/model/Mailing.class.php +++ b/core/model/Mailing.class.php @@ -1,4 +1,4 @@ - \ No newline at end of file diff --git a/temp/compile/592539974dafb5071a560bf91c59f42e^455b4963dc23e0055ed3fdf4535b245267f82345_0.file.MenuLangBox.tpl.php b/temp/compile/592539974dafb5071a560bf91c59f42e^455b4963dc23e0055ed3fdf4535b245267f82345_0.file.MenuLangBox.tpl.php new file mode 100644 index 0000000..6f8b5d6 --- /dev/null +++ b/temp/compile/592539974dafb5071a560bf91c59f42e^455b4963dc23e0055ed3fdf4535b245267f82345_0.file.MenuLangBox.tpl.php @@ -0,0 +1,52 @@ +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.30', + 'unifunc' => 'content_6a074f2f46c9a3_38684773', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '455b4963dc23e0055ed3fdf4535b245267f82345' => + array ( + 0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\template\\partial\\Shared\\MenuLangBox.tpl', + 1 => 1778862797, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6a074f2f46c9a3_38684773 (Smarty_Internal_Template $_smarty_tpl) { +?> + + + +> + $(document).ready(function(){ + $('.navLang').click(function(){ + $('.navLang').toggleClass('navLangLong'); + }); + $(".navLang").mouseover(function(){ + $(".navLang").addClass('navLangLong'); + }); + $(".navLang").mouseout(function(){ + $(".navLang").removeClass('navLangLong'); + }); + }); + +> + +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.30', + 'unifunc' => 'content_6a074f2f58d4d6_78141986', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '8768d31bf749e2f6a78ab2370f5b35cb23532d83' => + array ( + 0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\template\\partial\\Index\\Index.tpl', + 1 => 1778862796, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6a074f2f58d4d6_78141986 (Smarty_Internal_Template $_smarty_tpl) { +if (!is_callable('smarty_modifier_replace')) require_once 'C:\\visual studio code\\projekty\\zurawik.pl\\core\\lib\\Smarty3\\plugins\\modifier.replace.php'; +?> + + + + + + + + +smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayObjHomeArticle']->value, 'objArticleSG', false, 'keyHome'); +if ($_from !== null) { +foreach ($_from as $_smarty_tpl->tpl_vars['keyHome']->value => $_smarty_tpl->tpl_vars['objArticleSG']->value) { +?> + + + +> + $(function () { + $( window ).scroll(function() { + if ($('.containerBoxNrtpl_vars['keyHome']->value;?> +').visible(true)) { + $('.boxSGtpl_vars['keyHome']->value;?> +').addClass('scrollHiddenOff'); + $('.boxSGtpl_vars['keyHome']->value;?> +').removeClass('scrollHiddenOn'); + } else { + $('.boxSGtpl_vars['keyHome']->value;?> +').addClass('scrollHiddenOn'); + $('.boxSGtpl_vars['keyHome']->value;?> +').removeClass('scrollHiddenOff'); + } + }); + }); + + +> + + +
+
+ + tpl_vars['objArticleSG']->value->GetName()) {?> +
+

tpl_vars['objArticleSG']->value->GetName();?> +

+
+ +
+ tpl_vars['objArticleSG']->value->GetDescription();?> + +
+
+
+smarty->ext->_foreach->restore($_smarty_tpl); +?> + +
+ + +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.30', + 'unifunc' => 'content_6a074f2f33b794_36361663', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'd9fe2d1e16928501c222f1ce9d20a785b926afbd' => + array ( + 0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\template\\partial\\Shared\\BanerBox.tpl', + 1 => 1778862796, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6a074f2f33b794_36361663 (Smarty_Internal_Template $_smarty_tpl) { +if (!is_callable('smarty_function_thumb')) require_once 'C:\\visual studio code\\projekty\\zurawik.pl\\core\\plugins\\Smarty\\function.thumb.php'; +?> +
+
+
    + smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['arrayToEditBaner']->value, 'objHomeElementBaner', false, 'keyHome'); +if ($_from !== null) { +foreach ($_from as $_smarty_tpl->tpl_vars['keyHome']->value => $_smarty_tpl->tpl_vars['objHomeElementBaner']->value) { +?> + tpl_vars['objHomeElementBaner']->value->GetPhotoUrl()) {?> +
  • +
    + tpl_vars['indexSG']->value)) {?> + + + _assignInScope('imageSlider', $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoPath()); +?> + $_smarty_tpl->tpl_vars['imageSlider']->value,'longside'=>false,'shortside'=>false,'width'=>"1200",'height'=>"350",'link'=>'false','crop'=>true),$_smarty_tpl);?> + + +
    +
    + +

     

    +

    tpl_vars['objHomeElementBaner']->value->GetName();?> +

    +

    tpl_vars['objHomeElementBaner']->value->GetDescription();?> +

    +
    +
    +
    +
  • + + smarty->ext->_foreach->restore($_smarty_tpl); +?> + + +
+
+
+_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.30', + 'unifunc' => 'content_6a074f2f283d12_70176871', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + '3f43c59ca81256b7b11d24052917c1ebb0117987' => + array ( + 0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\template\\partial\\Shared\\MenuBox.tpl', + 1 => 1778862797, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6a074f2f283d12_70176871 (Smarty_Internal_Template $_smarty_tpl) { +} +} diff --git a/temp/compile/dd22a31b1e7d5645e1e4a2fa1c440a81^d25ce6d5105e689f27f4b5c6d8bf4873e78ed9f6_0.file.GetUrlLang.tpl.php b/temp/compile/dd22a31b1e7d5645e1e4a2fa1c440a81^d25ce6d5105e689f27f4b5c6d8bf4873e78ed9f6_0.file.GetUrlLang.tpl.php new file mode 100644 index 0000000..b9c6ee1 --- /dev/null +++ b/temp/compile/dd22a31b1e7d5645e1e4a2fa1c440a81^d25ce6d5105e689f27f4b5c6d8bf4873e78ed9f6_0.file.GetUrlLang.tpl.php @@ -0,0 +1,25 @@ +_decodeProperties($_smarty_tpl, array ( + 'version' => '3.1.30', + 'unifunc' => 'content_6a074f2f520319_52519897', + 'has_nocache_code' => false, + 'file_dependency' => + array ( + 'd25ce6d5105e689f27f4b5c6d8bf4873e78ed9f6' => + array ( + 0 => 'C:\\visual studio code\\projekty\\zurawik.pl\\template\\partial\\Shared\\GetUrlLang.tpl', + 1 => 1778862797, + 2 => 'file', + ), + ), + 'includes' => + array ( + ), +),false)) { +function content_6a074f2f520319_52519897 (Smarty_Internal_Template $_smarty_tpl) { +} +}