PATH:
root
/
wulkantemplates
<?php mb_internal_encoding("UTF-8"); include_once 'lib/includes.php'; /* Utils::imageResizeDir("userfiles", "images/thumbs/userfiles", [ // "overwrite" => true, "width" => 522, // "fileRename" => ["/([^.]*)\.(.*?)$/i", "$1_320.$2", true], "pattern" => "/(?:categories?)..*\.(?:jpe?g|gif|png|bmp|webp)$/i" ]); Utils::imageResizeDir("userfiles", "images/thumbs/userfiles", [ // "overwrite" => true, "width" => 320, // "fileRename" => ["/([^.]*)\.(.*?)$/i", "$1_320.$2", true], "pattern" => "/(?:products?)..*\.(?:jpe?g|gif|png|bmp|webp)$/i" ]); */ $lang_link = ($lang != "" ? "lang=" . $lang : ""); $month = ""; $year = ""; if( isset($_GET['month']) && isset($_GET['year']) ) { $month = $_GET['month']; $year = $_GET['year']; } $tytuly = []; $teksty = []; $inne = []; Utils::getTexts($db, "tytul", $tytuly, "tresc", $teksty, $inne, "teksty", $lang, [], []); // last arguments (array) is an array of IDs to be stripped from tags - titles and texts $menu = Utils::getMenus($db, "menu", $lang); foreach ($menu as &$item) { if ($item['tekst'] != 0 && $item['flink'] == "") $item['link'] = "content.php?ContentId={$item['tekst']}"; } $allMenu = $menu; $id_menu = isset($_GET['m']) ? $_GET['m'] : ""; $currentPageInfo = ["id" => false, "nazwa" => "", "title" => "", "description" => COMPANY, "keywords" => COMPANY, "rodzic" => 0]; if ($id_menu != "") { foreach ($menu as $mKey => $mVal) { if ($mVal['id'] == $id_menu) { $currentPageInfo = $mVal; break; } } } if ($currentPageInfo['rodzic'] == 0) $currentPageParentInfo = $currentPageInfo; else { $currentPageParentInfo = $menu; if (isset($currentPageInfo['id']) && $currentPageInfo['id'] !== false) { foreach ($currentPageParentInfo as $mK => $mV) { if ($mV['id'] == $currentPageInfo['rodzic']) { if ($mV['rodzic'] == 0) { $currentPageParentInfo = $mV; break; } else { $currentPageParentInfo = $mV; reset($currentPageParentInfo); } } } } } $_SESSION["active"] = $currentPageInfo['nazwa'] != "" ? $currentPageInfo['nazwa'] : "home"; $isMobile = stristr($_SERVER['HTTP_USER_AGENT'], "Mobile"); header('Cache-Control: max-age=86400'); ?> <!DOCTYPE html> <html lang="<?php echo $lang == "" ? "pl" : $lang; ?>"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <base href="<?= HOME_URLSTATIC ?>"> <?php if (!isset($add)) $add = ""; if ($currentPageInfo) { $title = $currentPageInfo['title']; if ($title == "") $title = $currentPageInfo['nazwa']; $title = $title != "" ? "{$title} - " . COMPANY : COMPANY; $description = $currentPageInfo['description']; $keywords = $currentPageInfo['keywords']; if ($description != "") $description = "<meta name=\"description\" content=\"{$description}\" />"; if ($keywords != "") $keywords = "<meta name=\"keywords\" content=\"{$keywords}\" />"; } if ($id_menu == 1) { if (isset($_GET['a'])) $add = $db->select("aktualnosci$lang", "tytul", NULL, "WHERE `id` = {$_GET['a']}")[0]['tytul']; if (isset($_GET['p'])) $add = PAGE . " {$_GET['p']} - {$add}"; } ?> <?php echo $description; ?> <?php echo $keywords; ?> <title><?php echo (defined("ENV_TITLE") ? ENV_TITLE : "") . $title; ?></title> <?php if ($isMobile) echo "<script type=\"text/javascript\">var isMobile = true;</script>" . PHP_EOL; include_once 'header.php'; ?> </head> <body class="menu-id-<?php echo $id_menu; ?>"> <?php include_once "top.php"; /* if (isset($_POST["formchecker"]) && $_POST["formchecker"] == "ischecked") { include_once "form-send.php"; } else { if (isset($_SESSION["formsends"])) { echo "<input id=\"formSendBarCtrl\" type=\"checkbox\" /><label id=\"formSendBar\" for=\"formSendBarCtrl\"><div class=\"formSendBar\">" . "Wysłano" . "</div></label>"; unset($_SESSION["formsends"]); } } */ if (preg_match('/news', $_GET['sel'])){ include_once "news.php"; }elseif (!isset($_GET['m']) || $_GET['m'] < 1) { include_once "home.php"; include_once "footer.php"; ?> </body> </html><?php }
[-] gallery.php
[edit]
[-] form-send2.php
[edit]
[-] paginator.php
[edit]
[+]
..
[-] form.php
[edit]
[-] page-multi.php
[edit]
[-] header.php
[edit]
[-] produkty.php
[edit]
[-] top.php
[edit]
[-] form-send.php
[edit]
[-] category.php
[edit]
[-] home.php
[edit]
[-] footer.php
[edit]
[-] page-m.php
[edit]
[-] page.php
[edit]
[-] jakosc.php
[edit]
[-] news.php
[edit]
[-] page-m2.php
[edit]
[-] page-work.php
[edit]
[-] ajax_more.php
[edit]
[-] begin.php
[edit]
[-] realizations.php
[edit]