first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

25
web/errors/error500.php Normal file
View File

@@ -0,0 +1,25 @@
<?php $path = sfConfig::get('sf_relative_url_root', preg_replace('#/[^/]+\.php5?$#', '', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : (isset($_SERVER['ORIG_SCRIPT_NAME']) ? $_SERVER['ORIG_SCRIPT_NAME'] : ''))) ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="title" content="Błąd 500" />
<title>Błąd 500</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/backend/error.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet">
</head>
<body>
<div id="error_500" class="flex">
<div class="image">
<img src="images/backend/error/page_error.svg" alt="Błąd 500" width="293" height="292" />
</div>
<div class="description">
<div class="title">500</div>
<p class="text">
Wystąpił błąd serwera i nie udało się <br />wyświetlić strony.
</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,2 @@
<?php
require_once __DIR__ . '/unavailable/bootstrap.php';

View File

@@ -0,0 +1,45 @@
<?php
if (SF_ENVIRONMENT == 'dev')
{
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
}
require_once SF_ROOT_DIR . '/lib/stSimpleThemeHelper.class.php';
require_once SF_ROOT_DIR . '/lib/stSimpleLanguageHelper.class.php';
$cache = stSimpleShopDataCache::getInstance();
$themeHelper = new stSimpleThemeHelper($cache);
$language = new stSimpleLanguageHelper($cache);
$phpVersion = floatval(phpversion());
$shopLockData = $cache->get('shop_lock_data', array());
$lockTranslation = null;
foreach (array($language->getLanguage(), $language->getBaseLanguage()) as $currentLanguage)
{
if (isset($shopLockData[$currentLanguage]))
{
$lockTranslation = $shopLockData[$currentLanguage];
break;
}
}
if ($lockTranslation)
{
$title = $lockTranslation['title'];
$description = $lockTranslation['description'];
$image = $lockTranslation['image'] ? '/' . $lockTranslation['image'] : $themeHelper->getImage('error/page_error.png');
}
else
{
$title = $language->translate('Przepraszamy.');
$description = $language->translate('Strona chwilowo niedostępna.');
$image = $themeHelper->getImage('error/page_error.png');
}
http_response_code(503);
require_once __DIR__ . '/template.php';

View File

@@ -0,0 +1,41 @@
<?php
/**
* @var stSimpleThemeHelper $themeHelper
*/
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="title" content="Sklep chwilowo niedostępny">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $title ?></title>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $themeHelper->getCss('error.css') ?>">
</head>
<body>
<div id="box_error500">
<div id="box_error500_left">
<img src="<?php echo $image ?>" alt="">
</div>
<div id="box_error500_right">
<?php if (SF_APP == 'backend' && ($phpVersion < 5.6 || $phpVersion > 7.5)): ?>
<div class="txt_red">
Serwer nie spełnia wymagań technicznych.<br>
Wymagana wersja PHP to <b>5.6.x - 7.4.x</b> (aktualnie ustawiona wersja PHP na serwerze <b><?php echo phpversion() ?>)</b>
</div>
<?php elseif (SF_APP == 'backend' && $phpVersion >= 7.2 && !stLock::isPHP72Ready()): ?>
<div class="txt_red">
Przejście na wersje <b>PHP 7.2.x</b> lub wyższą wymaga w pierwszej kolejności uaktualnienia szyfrowania danych w sklepie.<br>
W przypadku skonfigurowanego <b>Harmonogramu zadań</b> operacja zostanie przeprowadzona automatycznie w innym wypadku możesz wykonać tą operację ręcznie wchodząc do <b>Konfiguracja -> Harmonogram zadań</b> i klikając przycisk <b>Uruchom ręcznie</b>.
</div>
<?php else: ?>
<div class="txt_red">
<?php echo $title ?>
</div>
<div class="txt">
<?php echo $description ?>
</div>
<?php endif ?>
</div>
</div>
</body>
</html>