This commit is contained in:
2026-05-15 20:23:25 +02:00
parent c980004309
commit bc5cae7e82
74 changed files with 563 additions and 130 deletions

View File

@@ -1,4 +1,4 @@
<?
<?php
class FileController extends MainController implements ControllerInterface
{
const AVATAR_DEST_DIR = '/upload/File';

View File

@@ -12,12 +12,14 @@ class IndexController extends MainController implements ControllerInterface {
*/
public function IndexAction($param) {
$kat = '../temp/compile';
$katalog = opendir($kat);
if (is_dir($kat) && ($katalog = opendir($kat))) {
while ($plik = readdir($katalog)) {
if ($plik != '.' AND $plik != '..') {
if ($plik != '.' AND $plik != '..' && is_file($kat . '/' . $plik)) {
unlink($kat . '/' . $plik);
}
}
closedir($katalog);
}
$this->AddRedirect(URL_MAIN . '/Structure/', 0);
//$this->AddRedirect(URL_MAIN . '/Calc/', 0);
}

View File

@@ -1,4 +1,4 @@
<?
<?php
class MapsController extends MainController implements ControllerInterface
{

View File

@@ -1,4 +1,4 @@
<?
<?php
class UtilsController extends MainController implements ControllerInterface
{

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: Admin.mod.php 703 2008-06-26 11:15:09Z pawy $

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: AuthDAL.mod.php 708 2008-06-26 13:48:43Z pawy $

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id$

View File

@@ -0,0 +1,64 @@
<?php
/* Smarty version 3.1.30, created on 2026-05-15 18:52:00
from "C:\visual studio code\projekty\zurawik.pl\Admin\template\partial\Index\Index.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_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) {
?>
<div class="panelRightTop"></div>
<div class="panelRightBody">
<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">Witamy w panelu administracyjnym</a></h2></div>
<div class="panelContentBody">
<center>
</center>
</div>
<div class="panelContentBottom"></div>
</div>
</div>
<div class="panelRightBottom">
<div class="panelButtons">
</div>
</div>
<!-- Klika ustale<6C> ...<br />
Je<EFBFBD>li chodzi o formatowanie panelu ... starajcie sie robic wszystko w oparciu o klase admintable, w takich ustawieniach: <br />
&lt;table class="adminTable" cellpadding="2" cellspacing="2"&gt;<br />
<br />
Ostatnia kolumna, tam gdzie zazwyczaj jest dodaj ... robimy tak:<br />
&lt;th class="light"&gt;&lt;a href="#"&gt;Dodaj&lt;/a&gt;&lt;/th&gt;<br />
<br />
Nag<EFBFBD><EFBFBD>wki robimy tak:<br />
&lt;div class="header"&gt;Witamy w panelu administracyjnym&lt;/div&gt;<br />
<br />
<br />
nie wiem czy tak w<>a<EFBFBD>nie to b<>dzie wygl<67>da<64> finalnie, ale p<>niej b<>dzie <20>atwiej formatowa<77> jak ca<63>o<EFBFBD><6F>. Mo<4D>e narazie jako wz<77>r podpatrzcie do mojego szablonu: ModelAdmin.tpl oraz ModelAdminEdit.tpl.
--><?php }
}

View File

@@ -1,4 +1,4 @@
<?
<?php
class ServerController extends Controller {

View File

@@ -1,4 +1,4 @@
<?
<?php
#echo $_SERVER["argv"][1];
//ini_set('default_charset','UTF-8');
@@ -40,9 +40,9 @@ echo 'aaaa';
*
* @param unknown_type $className
*/
function __autoload($className) {
spl_autoload_register(function ($className) {
Core::LoadClass($className);
}
});
include_once(Config::Get('PATH_MAIN') . 'controller' . DIRECTORY_SEPARATOR . $controller . '.php');

View File

@@ -1,4 +1,4 @@
<?
<?php
//$zip = new ZipArchive;
//$res = $zip->open('makl_backup.zip');

View File

@@ -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);

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
*

View File

@@ -11,10 +11,15 @@
*/
function AppErrorHandler($errno, $errstr, $errfile, $errline) {
if(!(error_reporting() & $errno)) {
return true;
}
switch ($errno) {
case E_STRICT:
case E_DEPRECATED:
case E_USER_DEPRECATED:
break;

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: Controller.mod.php 394 2008-05-28 19:28:03Z dakl $
* Klasa kontrolera v 1.2.0

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
*
@@ -79,9 +79,9 @@ class DBMysql implements DBConnection {
protected function DbConnect() {
//echo"konekt";
Profiler::log('mysqlStart', '', microtime());
$this->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 {

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
@@ -78,13 +78,13 @@ class MysqlException extends FileException {
*/
public function __construct($message=false, $code=false) {
if(!$message) {
$this->message = mysql_error();
$this->message = '';
}
else
$this->message = $message;
if(!$code) {
$this->code = mysqli_errno(1);
$this->code = 0;
}
else
$this->code = $code;

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* Klasa FrontControllera
*
@@ -168,7 +168,8 @@ class FrontController {
if((!method_exists($this->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';
}

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Klasa buttonow html
*/

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* Interfejs do obs<62>ugi dost<73>pu do danych dla wybranego obiektu
*

View File

@@ -79,7 +79,7 @@ class MFLog {
* Logowanie an konsole
*/
private static function ConsoleLog($data, $type) {
if(self::$consolePrivateIp==null || (self::$consolePrivateIp!=null && $_SERVER['REMOTE_ADDR'] == self::$consolePrivateIp)) {
if(self::$consolePrivateIp==null || (self::$consolePrivateIp!=null && isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == self::$consolePrivateIp)) {
if($type<4) {
Core::LoadPlugin('fb');

View File

@@ -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'];
}

View File

@@ -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);
}

View File

@@ -133,7 +133,7 @@ class Profiler {
?>
<table style='background-color: white; position:fixed; bottom:0; left:0; border: 1px solid #000000;' onclick="if(document.getElementById('profilerDialog').style.display=='none'){document.getElementById('profilerDialog').style.display='block';}else{document.getElementById('profilerDialog').style.display='none';}">
<tr><td>
<?
<?php
foreach(self::getLog('page') as $item) {
echo $item['message'].':'.$item['value'].', ';
}
@@ -141,13 +141,13 @@ class Profiler {
</td></tr>
</table>
<div id="profilerDialog" style="display: none; background-color: white; position:fixed; bottom:0; left:0; width: 300px; height: 60px; border: 1px solid #000000;">
lista sql: <input type="checkbox" <?if(isset($_COOKIE['sql'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileSql=true'}else{document.location.href='?profileSql=false';}" />
lista sql: <input type="checkbox" <?php if(isset($_COOKIE['sql'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileSql=true'}else{document.location.href='?profileSql=false';}" />
<br />
phpinfo: <input type="checkbox" <?if(isset($_COOKIE['php'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profilePhp=true'}else{document.location.href='?profilePhp=false';}" />
phpinfo: <input type="checkbox" <?php if(isset($_COOKIE['php'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profilePhp=true'}else{document.location.href='?profilePhp=false';}" />
<br />
errorreporting-all: <input type="checkbox" <?if(isset($_COOKIE['error'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileError=true'}else{document.location.href='?profileError=false';}" />
errorreporting-all: <input type="checkbox" <?php if(isset($_COOKIE['error'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileError=true'}else{document.location.href='?profileError=false';}" />
</div>
<?
<?php
}
private static function sqlDisplay() {
@@ -159,7 +159,7 @@ class Profiler {
foreach($queries as $query) {
?>
<tr><td><?= $query['message']; ?></td><td><?= $query['value']; ?></td></tr>
<?
<?php
$totalTime = ($totalTime+$query['value']);
}
@@ -185,7 +185,7 @@ echo"<tr><td><br /></td><td><br /></td></tr>";
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;

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
*

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: Request.class.php 395 2008-05-28 19:41:06Z dakl $
@@ -18,7 +18,7 @@ class Request {
if (isset($_REQUEST[$value])) {
if ($xssremover == true) {
$func = create_function('$a', 'return Utils::RemoveXss($a);'); //FIXME: Gdy wejdzie php5.3 mo<6D>na to troche przerobi<62> bo wprowadzaj? now? wersj<73> funkcji lambda
$func = array('Utils', 'RemoveXss'); //FIXME: Gdy wejdzie php5.3 mo<6D>na to troche przerobi<62> bo wprowadzaj? now? wersj<73> funkcji lambda
return array_map($func, $_REQUEST[$value]);
} else {

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
*

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: SessionProxy.class.php 693 2008-06-25 12:13:38Z pawy $
*

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Klasa posredniczaca w dostepie do smarty, obsluguje kontrole cacheowania

View File

@@ -23,7 +23,7 @@ abstract class UserValidator {
$sql = "SELECT count(login) FROM wp_preserve WHERE login=:01";
$stmt = $db->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();

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
*
* Klasa statyczna z funkcjami pomocniczymi
@@ -42,7 +42,7 @@ class Utils {
print("<table border=1 cellspacing=1 style=\"font-family: Verdana; font-size: 10 pt;\" width=\"100%\">\n");
print("<tr><th colspan=2 bgcolor=\"#DDDDDD\">".$array_name."</TR>\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)

View File

@@ -1,4 +1,4 @@
<?
<?php

View File

@@ -440,7 +440,7 @@ class Validator extends UserValidator {
$pattern = "^[a-zA-Z0-9_<39><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E6A1A6><EFBFBD>Ư<EFBFBD><C6AF> \+\-]$len$";
//!@\$%\*\(\)\^\-
if(strlen($value)>=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;
}

View File

@@ -11,6 +11,3 @@ define('prodPass', 'G]@0NeuvRokQ');
/** Nazwa hosta serwera MySQL */
define('prodHost', 'localhost');
?>

View File

@@ -20,7 +20,3 @@ $panelMenu['admin'] =array(
define('ARRAY_PANEL_MENU', $panelMenu);
?>

View File

@@ -41,5 +41,3 @@ define('COMMENT_INDENT', 10);
define('STRONA_APPLICATION_FILE_TYPE', '');
define('STRONA_URL_DELIMITER', '/');
//------------------------
?>

View File

@@ -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');
?>

View File

@@ -52,4 +52,3 @@ define('HEAD_TITLE', 'ParioPack');
define('HEAD_KEYWORDS', '');
define('HEAD_DESCRIPTION', '');
define('STATISTIC', '');
?>

View File

@@ -32,5 +32,3 @@ define ('LOG4PHP_DIR', PATH_CORE . 'lib' . DS . 'log4php' . DS . 'src' . DS . 'p
define ('LOG4PHP_CONFIGURATION', PATH_CORE . 'config' . DS . 'Log4PHPConfig.xml');
require_once(LOG4PHP_DIR . 'Logger.php');
?>

View File

@@ -92,6 +92,3 @@ define('WP_API_PASSWORD', '872GtwyJ29U');
define('WP_API_URL', 'http://wpapi.wp.pl/api');
define('WP_API_URL_GET', 'http://get-2.wpapi.wp.pl/?');
/** end WP API **/
?>

View File

@@ -31,5 +31,3 @@ define ('LOG4PHP_DIR', PATH_CORE . DS . 'lib' . DS . 'log4php' . DS . 'src' . 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);
?>

View File

@@ -11,6 +11,3 @@ define('prodPass', 'Df61Xz21');
/** Nazwa hosta serwera MySQL */
define('prodHost', 'mysql8');
?>

View File

@@ -52,4 +52,3 @@ define('HEAD_TITLE', 'HEAD_TITLE');
define('HEAD_KEYWORDS', '');
define('HEAD_DESCRIPTION', '');
define('STATISTIC', '');
?>

View File

@@ -32,5 +32,3 @@ define ('LOG4PHP_DIR', PATH_CORE . 'lib' . DS . 'log4php' . DS . 'src' . DS . 'p
define ('LOG4PHP_CONFIGURATION', PATH_CORE . 'config' . DS . 'Log4PHPConfig.xml');
require_once(LOG4PHP_DIR . 'Logger.php');
?>

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: class.config.php 395 2008-05-28 19:41:06Z dakl $
* Tu zbieramy definicje wszystkich klas mozliwych do zaladowania z katalogu class jadra
@@ -10,5 +10,3 @@ class CoreClassCollection {
const REQUEST='Request';
}
?>

View File

@@ -1,4 +1,4 @@
<?
<?php
include_once('class/Exception.class.php');
include_once('class/Config.class.php');
@@ -59,10 +59,8 @@ class Core {
public static function SetAppSafeMode() {
MFLog::Error('Switching into the SafeMod.');
if (Config::Get('ERROR_REDIRECT') == true) {
self::$appSafeMode = true;
}
}
public static function GetAppSafeMode() {
return self::$appSafeMode;

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -1,4 +1,4 @@
<?
<?php
class Mailing {

View File

@@ -1,4 +1,4 @@
<?
<?php
class MailingDAL {

View File

@@ -1,4 +1,4 @@
<?
<?php
function put_char($char,$rgb,$posx,$posy) {
}

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
/*
* Smarty plugin
* -------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
<?
<?php
ini_set('default_charset', 'UTF8');

View File

@@ -1,4 +1,4 @@
<?
<?php
if( ini_get('safe_mode') ){

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* Klasa autoryzacji usera

View File

@@ -1,4 +1,4 @@
<?
<?php
/**
* $Id: CacheParam.mod.php 394 2008-05-28 19:28:03Z dakl $

View File

@@ -1,4 +1,4 @@
<?
<?php
//$tarfile = dirname(__FILE__)."/makl_backup.tar";
//$pd = new \PharData($tarfile);

View File

@@ -1,4 +1,4 @@
<?
<?php
ini_set('default_charset', 'UTF8');

View File

@@ -1,4 +1,4 @@
<?
<?php
ini_set('default_charset', 'UTF8');

View File

@@ -1,4 +1,4 @@
<?
<?php
phpinfo();
?>

View File

@@ -0,0 +1,52 @@
<?php
/* Smarty version 3.1.30, created on 2026-05-15 18:51:59
from "C:\visual studio code\projekty\zurawik.pl\template\partial\Shared\MenuLangBox.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_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) {
?>
<div class="navLang">
<?php if ($_smarty_tpl->tpl_vars['lang']->value == 'pl') {?>
<a href="<?php echo $_smarty_tpl->tpl_vars['urlMain']->value;?>
/en">en</a>
<?php } else { ?>
<a href="<?php echo $_smarty_tpl->tpl_vars['urlMain']->value;?>
/pl">pl</a>
<?php }?>
</div>
<?php echo '<script'; ?>
>
$(document).ready(function(){
$('.navLang').click(function(){
$('.navLang').toggleClass('navLangLong');
});
$(".navLang").mouseover(function(){
$(".navLang").addClass('navLangLong');
});
$(".navLang").mouseout(function(){
$(".navLang").removeClass('navLangLong');
});
});
<?php echo '</script'; ?>
>
<?php }
}

View File

@@ -0,0 +1,192 @@
<?php
/* Smarty version 3.1.30, created on 2026-05-15 18:51:59
from "C:\visual studio code\projekty\zurawik.pl\template\partial\Index\Index.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_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';
?>
<!--
<section id="intro" class="main style3 primary">
<div class="container">
<div class="rowIntro scrollHiddenOn" >
<?php echo '<script'; ?>
>
$(function () {
$('.containerSecurity').mouseenter(function () {
$('.front.security').transition({rotateY: '180deg', easing: 'ease', duration: 800});
$('.back.security').transition({rotateY: '0deg', easing: 'ease', duration: 800});
});
$('.containerSecurity').mouseleave(function () {
$('.back.security').transition({rotateY: '180deg', easing: 'ease', duration: 800});
$('.front.security').transition({rotateY: '0deg', easing: 'ease', duration: 800});
});
$('.containerEnergy').mouseenter(function () {
$('.front.energy').transition({rotateY: '180deg', easing: 'ease', duration: 800});
$('.back.energy').transition({rotateY: '0deg', easing: 'ease', duration: 800});
});
$('.containerEnergy').mouseleave(function () {
$('.back.energy').transition({rotateY: '180deg', easing: 'ease', duration: 800});
$('.front.energy').transition({rotateY: '0deg', easing: 'ease', duration: 800});
});
$('.containerProperty').mouseenter(function () {
$('.front.property').transition({rotateY: '180deg', easing: 'ease', duration: 800});
$('.back.property').transition({rotateY: '0deg', easing: 'ease', duration: 800});
});
$('.containerProperty').mouseleave(function () {
$('.back.property').transition({rotateY: '180deg', easing: 'ease', duration: 800});
$('.front.property').transition({rotateY: '0deg', easing: 'ease', duration: 800});
});
});
<?php echo '</script'; ?>
>
<div class="col-4 col-s-12 posRel containerSecurity">
<section class="introBox security flipBox front">
<div class="securityIcon"></div>
<div class="lineTop lineTopSecurity"></div>
<header>
<div class="introBoxText">
<?php echo $_smarty_tpl->tpl_vars['objBox1']->value->GetDescription();?>
</div>
</header>
<div class="lineBottom lineBottomSecurity "></div>
</section>
<section class="introBox security flipBox back" <?php if ($_smarty_tpl->tpl_vars['objBox1']->value->GetSourceUrl()) {?>onclick="window.location.href = 'http://<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['objBox1']->value->GetSourceUrl(),"http://",'');?>
';" style="cursor: pointer;" <?php }?> >
<div class="securityIcon_back"></div>
</section>
</div>
<div class="col-4 col-s-12 posRel containerEnergy">
<section class="introBox energy flipBox front">
<div class="energyIcon"></div>
<div class="lineTop lineTopEnergy"></div>
<header>
<div class="introBoxText">
<?php echo $_smarty_tpl->tpl_vars['objBox2']->value->GetDescription();?>
</div>
</header>
<div class="lineBottom lineBottomEnergy"></div>
</section>
<section class="introBox energy flipBox back" <?php if ($_smarty_tpl->tpl_vars['objBox2']->value->GetSourceUrl()) {?>onclick="window.location.href = 'http://<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['objBox2']->value->GetSourceUrl(),"http://",'');?>
';" style="cursor: pointer;" <?php }?> >
<div class="energyIcon_back"></div>
</section>
</div>
<div class="col-4 col-s-12 posRel containerProperty">
<section class="introBox property flipBox front">
<div class="propertyIcon"></div>
<div class="lineTop lineTopProperty"></div>
<header>
<div class="introBoxText">
<?php echo $_smarty_tpl->tpl_vars['objBox3']->value->GetDescription();?>
</div>
</header>
<div class="lineBottom lineBottomProperty"></div>
</section>
<section class="introBox property flipBox back" <?php if ($_smarty_tpl->tpl_vars['objBox3']->value->GetSourceUrl()) {?>onclick="window.location.href = 'http://<?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['objBox3']->value->GetSourceUrl(),"http://",'');?>
';" style="cursor: pointer;" <?php }?> >
<div class="propertyIcon_back"></div>
</section>
</div>
<div class="cb"></div>
</div>
</div>
<div class="cb"></div>
</section> !-->
<?php
$_from = $_smarty_tpl->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) {
?>
<?php echo '<script'; ?>
>
$(function () {
$( window ).scroll(function() {
if ($('.containerBoxNr<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
').visible(true)) {
$('.boxSG<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
').addClass('scrollHiddenOff');
$('.boxSG<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
').removeClass('scrollHiddenOn');
} else {
$('.boxSG<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
').addClass('scrollHiddenOn');
$('.boxSG<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
').removeClass('scrollHiddenOff');
}
});
});
<?php echo '</script'; ?>
>
<section id="contentMain" class="main style3 primary containerBoxNr<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
">
<div class="container trescSG boxSG<?php echo $_smarty_tpl->tpl_vars['keyHome']->value;?>
" >
<?php if ($_smarty_tpl->tpl_vars['objArticleSG']->value->GetName()) {?>
<header>
<h2><?php echo $_smarty_tpl->tpl_vars['objArticleSG']->value->GetName();?>
</h2>
</header>
<?php }?>
<div class="trescSGText">
<?php echo $_smarty_tpl->tpl_vars['objArticleSG']->value->GetDescription();?>
</div>
</div>
</section>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
<div class="cb"></div>
<?php }
}

View File

@@ -0,0 +1,73 @@
<?php
/* Smarty version 3.1.30, created on 2026-05-15 18:51:59
from "C:\visual studio code\projekty\zurawik.pl\template\partial\Shared\BanerBox.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_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';
?>
<section id="slider" class="slider">
<div class="flexslider sliderCont">
<ul class="slides">
<?php
$_from = $_smarty_tpl->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) {
?>
<?php if ($_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoUrl()) {?>
<li>
<div class="clearfix">
<?php if (isset($_smarty_tpl->tpl_vars['indexSG']->value)) {?>
<img src="<?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoUrl();?>
" alt="" style="object-fit: cover; max-height: 940px;" />
<?php } else { ?>
<?php $_smarty_tpl->_assignInScope('imageSlider', $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetPhotoPath());
?>
<?php echo smarty_function_thumb(array('file'=>$_smarty_tpl->tpl_vars['imageSlider']->value,'longside'=>false,'shortside'=>false,'width'=>"1200",'height'=>"350",'link'=>'false','crop'=>true),$_smarty_tpl);?>
<?php }?>
<div class="wrap">
<div class="desc-wrap">
<div class="desc" style="display: none;"><p style="opacity: 0; visibility: visible;"><?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetDescription();?>
</p>
</div>
<h1>&nbsp;</h1>
<h3 style="opacity: 0; visibility: visible;"><?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetName();?>
</h3>
<h2 style="opacity: 0; visibility: visible;"><?php echo $_smarty_tpl->tpl_vars['objHomeElementBaner']->value->GetDescription();?>
</h2>
</div>
</div>
</div>
</li>
<?php }?>
<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>
</ul>
</div>
</section>
<?php }
}

View File

@@ -0,0 +1,25 @@
<?php
/* Smarty version 3.1.30, created on 2026-05-15 18:51:59
from "C:\visual studio code\projekty\zurawik.pl\template\partial\Shared\MenuBox.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_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) {
}
}

View File

@@ -0,0 +1,25 @@
<?php
/* Smarty version 3.1.30, created on 2026-05-15 18:51:59
from "C:\visual studio code\projekty\zurawik.pl\template\partial\Shared\GetUrlLang.tpl" */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_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) {
}
}