ACC SHELL
<?php
// session_cache_limiter( 'private, must-revalidate' );
session_cache_limiter( 'private' );
session_cache_expire( 60 );
session_start();
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// regular expressions
include( 'init-regex.php' );
require_once( 'functions.php' );
require_once( 'class.paginator.php' );
// db
include( 'init-db-info.php' );
include( 'init-db.php' );
include( 'init-path.php' );
// ETS
require_once('ets.php');
// url parameters
$action = '';
$cmd = '';
$id = '';
$url_id = '';
$url_menu = '';
$url_submenu = '';
$url_page = 1;
$url_step = 1;
$url_search = '';
$url_category = '';
$url_gallery_id = '';
$url_day = '';
$url_month = '';
$url_year = '';
if ( isset( $_GET['action'] ) ) $action = $_GET['action'];
if ( isset( $_GET['cmd'] ) ) $cmd = $_GET['cmd'];
if ( isset( $_GET['id'] ) ) $id = $_GET['id'];
if ( isset( $_GET['id'] ) ) $url_id = $_GET['id'];
if ( isset( $_GET['menu'] ) ) $url_menu = $_GET['menu'];
if ( isset( $_GET['submenu'] ) ) $url_submenu = $_GET['submenu'];
if ( isset( $_GET['q'] ) ) $url_search = htmlspecialchars( $_GET['q'] );
if ( isset( $_GET['category'] ) ) $url_category = $_GET['category'];
if ( isset( $_GET['galleryID'] ) ) $url_gallery_id = $_GET['galleryID'];
if ( isset( $_GET['step'] ) ) $url_step = $_GET['step'];
if ( isset( $_GET['krok'] ) ) $url_step = $_GET['krok'];
if ( isset( $_GET['day'] ) ) $url_day = $_GET['day'];
if ( isset( $_GET['month'] ) ) $url_month = $_GET['month'];
if ( isset( $_GET['year'] ) ) $url_year = $_GET['year'];
if ( isset( $_GET['p'] ) ) $url_page = $_GET['p'];
$url_page -= 1;
$_lang = '';
if ( isset( $_GET['lang'] ) ) $_lang = $_GET['lang'];
if ( ($_lang != 'cz') && ($_lang != 'en') )
$_lang = 'cz';
$contentType = $url_menu;//'homepage';
//
$currentDate = date('Y-m-d');
// removeOutdatedItems: php -> sql
$removeOutdatedItems_sql = "
`visibilityStartDate`<='" . $currentDate . "' AND
( `visibilityEndDate` = '0000-00-00' OR `visibilityEndDate`>='" . $currentDate . "' )
";
$orderBy_sql = " ORDER BY `createdDateTimeOrder` DESC ";
$limit_sql = "";
if ( $url_page == 0 )
$limit_sql = " LIMIT 20 ";
$articlesPerLine = 2;
$articlesPerPage = 3;
$searchResultsPerPage = 10;
$facebookHTMLheader = '';
$searchURL = 'vyhledavani';
$productListURL = 'produkty';
$eshopURL = $_SERVER['HTTP_HOST'];
// setting
$settings = $db->getItem( 'settings', 1 );
if ( $settings['isEshop'] )
{
// shopping cart
include( 'init-cart.php' );
// postovne
/*if ( $sCartTotalPrice >= $settings['shippingPriceFree'] )
{
$settings['shippingPrice'] = 0;
}*/
$shippingPriceFree = $settings['shippingPriceFree'];
//$shippingPrice = $settings['shippingPrice'];
}
?>
ACC SHELL 2018