This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

19
pack/.htaccess Normal file
View File

@@ -0,0 +1,19 @@
RewriteEngine on
RewriteCond %{REQUEST_URI} !phpmyadmin
RewriteCond %{REQUEST_URI} !szablon
RewriteCond %{REQUEST_URI} !crossdomain.xml
RewriteCond %{REQUEST_URI} !Admin
RewriteCond %{REQUEST_URI} !error.html
RewriteCond %{REQUEST_URI} !rekbufor.html
RewriteRule !\.(js|ico|gif|jpg|png|ICO|GIF|JPG|PNG|css|svg|swf|flv|pdf|PDF|php|eot|woff|ttf|otf)$ index.php
php_value upload_max_filesize 30M
php_value post_max_size 30M
php_value short_open_tag 1
#
#AuthType Basic
#AuthName "Password Protected Area"
#AuthUserFile Static/.htpasswd
#Require valid-user

1
pack/.htpasswd Normal file
View File

@@ -0,0 +1 @@
aem:{SHA}93e0o5sRWcUP0JqCdi2NtPWqT5o=

BIN
pack/captcha.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

4
pack/error.html Normal file
View File

@@ -0,0 +1,4 @@
<h1>
Internal server error
</h1>
We'll be back soon.

71
pack/index.php Normal file
View File

@@ -0,0 +1,71 @@
<?
ini_set('default_charset', 'UTF8');
// Rozpoczynamy pomiar czasu wykonywania skryptu
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
// -->
include('../core/core.php');
include('../core/Class/MFLog.class.php');
//include(LOG4PHP_DIR.'LoggerManager.class.php');
spl_autoload_register(function ($className) {
//echo $className;
Core::LoadClass($className);
});
Core::Init(PageType::Package);
/**
* Autoloader klas
*
* @param unknown_type $className
*/
Core::LoadSmarty();
//$logger = LoggerManager::getLogger(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : __FILE__);
// Sciezki zapisujemy w ponizszym pliku
include("routes.php");
Router::$parseLang = true;
Router::$dirRouterCache = '/Package';
Router::$typeRouterCache = '2';
//Router::$curLang = 'pl';
Router::$forceExactRoute = true;
Router::$reverseRoute = true;
Router::$pathParsed = true;
$scripts = array();
$null = array();
Registry::Set('javascript', $null);
$null = array();
Registry::Set('footerJavascript', $null);
$front = new FrontController();
$front->SetTitleDelimiter(' - ');
$front->FlipTitle();
$front->Dispatch();
// Konczymy pomiar czasu wykonywania skryptu
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
// Wyswietlamy wynik poza szablonem
//$logger->info($totaltime);
//if ($totaltime>1.99) {
// $logger->warn($totaltime);
//}
Core::Garbage();
?>

71
pack/index.php.bak Normal file
View File

@@ -0,0 +1,71 @@
<?
ini_set('default_charset', 'UTF8');
// Rozpoczynamy pomiar czasu wykonywania skryptu
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
// -->
include('./core/core.php');
include('./core/Class/MFLog.class.php');
//include(LOG4PHP_DIR.'LoggerManager.class.php');
spl_autoload_register(function ($className) {
//echo $className;
Core::LoadClass($className);
});
Core::Init(PageType::STRONA);
/**
* Autoloader klas
*
* @param unknown_type $className
*/
Core::LoadSmarty();
//$logger = LoggerManager::getLogger(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : __FILE__);
// Sciezki zapisujemy w ponizszym pliku
include("routes.php");
Router::$parseLang = true;
Router::$parseLocation = true;
//Router::$curLang = 'pl';
Router::$forceExactRoute = true;
Router::$reverseRoute = true;
Router::$pathParsed = true;
$scripts = array();
$null = array();
Registry::Set('javascript', $null);
$null = array();
Registry::Set('footerJavascript', $null);
$front = new FrontController();
$front->SetTitleDelimiter(' - ');
$front->FlipTitle();
$front->Dispatch();
// Konczymy pomiar czasu wykonywania skryptu
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
// Wyswietlamy wynik poza szablonem
//$logger->info($totaltime);
//if ($totaltime>1.99) {
// $logger->warn($totaltime);
//}
Core::Garbage();
?>

4
pack/info.php Normal file
View File

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

14
pack/makl.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
$ob=imagecreatetruecolor(200,100);
if ($ob == FALSE ) {
echo "Obraz nie zostal poprawnie wygenerowany";
} else {
header('content-type: image/png');
if (imagepng($ob) == FALSE ) {
file_put_contents('log.txt','Funkcja imagepng nie zadzialal poprawnie');
} else {
file_put_contents('log.txt','Funkcja imagepng zadzialal poprawnie');
}
}
?>

2
pack/readme.txt Normal file
View File

@@ -0,0 +1,2 @@
蓤鏚豉 aplikacji
Ala ma 廝鏚這

18
pack/routes.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
Router::AddRoute('formContactSent','formContactSent', array('controller'=>'SimpleArticle_IndexController', 'method'=>'FormSent'));
Router::AddRoute('newsletter','newsletter', array('controller'=>'IndexController', 'method'=>'Newsletter'));
Router::AddRoute('forum','forum', array('controller'=>'IndexController', 'method'=>'Forum'));
Router::AddRoute('captcha','captcha', array('controller'=>'IndexController', 'method'=>'Captcha'));
Router::AddRoute('goToRegistryCaptchaCheck','check/captcha.html', array('controller'=>'IndexController', 'method'=>'AjaxRegisterCaptchaCheck'));
Router::AddRoute('mainUrl','index', array('controller'=>'IndexController', 'method'=>'Index', 'paged' => true));
Router::AddRoute('mainUrlPage','index/:p', array('controller'=>'IndexController', 'method'=>'Index'));
Router::AddRoute('translateJs', 'translate/js', array('controller' => 'TranslateController', 'method' => 'Js'));
Router::AddRoute('pageMaps', 'mapa_serwisu', array('controller' => 'IndexController', 'method' => 'Maps'));
Router::AddRoute('pageMapsEn', 'site_map', array('controller' => 'IndexController', 'method' => 'Maps'));
Router::AddRoute('searchpl', 'wyszukaj', array('controller' => 'SearchController', 'method' => 'Index'));
Router::AddRoute('searchen', 'search', array('controller' => 'SearchController', 'method' => 'Index'));
Router::AddRoute('ajaxForm', 'ajaxForm', array('controller' => 'IndexController', 'method' => 'AjaxForm'));
?>

16
pack/tar.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
try {
$phar = new PharData('archive.tgz');
$phar->extractTo('/aem/'); // extract all files
} catch (Exception $e) {
// handle errors
}

34
pack/zip.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$images_dir = '../aem';
//this folder must be writeable by the server
$backup = '/';
$zip_file = $backup.'/backup.zip';
echo $images_dir;
if ($handle = opendir($images_dir))
{
$zip = new ZipArchive();
if ($zip->open($zip_file, ZIPARCHIVE::CREATE)!==TRUE)
{
exit("cannot open <$zip_file>\n");
}
while (false !== ($file = readdir($handle)))
{
$zip->addFile($images_dir.'/'.$file);
echo "$file\n";
}
closedir($handle);
echo "numfiles: " . $zip->numFiles . "\n";
echo "status:" . $zip->status . "\n";
$zip->close();
echo 'Zip File:'.$zip_file . "\n";
}