* @copyright Copyright © 2003-2009 Netidea.pl Wszystkie prawa zastrzeżone. * Ten program jest chroniony licencją. Szczegóły w katalogu o nazwie /licencja/licencja_cms.pdf * Więcej informacji: http://netidea.pl * Zabrania się zmiany plików */ if(substr($_SERVER['HTTP_HOST'], 0, 3)=='www') { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://".substr( $_SERVER['HTTP_HOST'], 4 ).$_SERVER['REQUEST_URI']); header("Connection: close"); exit; } session_start(); unset ($_SESSION['ilosc_zapytan']); $_SESSION['blad_logowania'] = 0; include_once 'init.php'; include_once "conn.php"; foreach (wersje_jezykowe () as $TXT_zmienna => $TXT_tresc) { define ($TXT_zmienna, $TXT_tresc); } include_once "config.php"; include 'Zend/Cache.php'; //$frontendOptions = array('caching'=>true, 'automatic_serialization'=>false, 'lifetime' => 5, 'cache_by_default' => true, 'cached_functions' => array('aaa') ); $frontendOptions = array('caching' => false, 'lifetime' => 0, 'automatic_serialization' => true ); //$backendOptions = array('cache_dir' => './foto_dane/cache'); $backendOptions = array('cache_db_complete_path' => './foto_dane/cache/sqlite'); $cache = Zend_Cache::factory('Function', 'Sqlite', $frontendOptions, $backendOptions); if(empty($_SESSION['logowanie']['user_id'])) $_SESSION['logowanie']['user_id'] = -1; if($_GET['k'] > 0 ) $_GET['k'] = $_GET['k']/1; require 'inc/smarty/Smarty.class.php'; $smarty = new Smarty; //$smarty->compile_check = true; $smarty->template_dir = 'szablony/'; $smarty->compile_dir = 'foto_dane/templates_c/'; //$smarty->caching = true; //$smarty->cache_dir = 'foto_dane/cache/'; //$smarty->cache_lifetime = 200; $smarty->register_function('a', 'smarty_print_link'); function smarty_print_link($params, &$smarty) { return link_param($params); } //wersje_jezykowe(); include_once "inc/f_share.php"; include_once 'ctrl.php'; include_once "inc/func.php"; include_once "admin/miniPoll.class.php"; // logowanie //if(($_GET['zaloguj'] == 't') && (strlen($_POST['log']['name']) > 0) && (strlen($_POST['log']['pass']) > 0)) if(($_GET['zaloguj'] == 't')) logowanie_user(); if($_GET['d'] == 'wyloguj') wyloguj(); online_update(); $kat_array = $cache->call('kategorie_wszystkie_full', array()); $kat_array_flat = $kat_array['flat']; unset($kat_array['flat']); $teksty_tematy_array = $cache->call('teksty_tematy_wszystkie', array()); $wszystkie_grafiki = $cache->call('grafika_wszystkie', array()); $tekst_tresc_specjalne_all = $cache->call('tekst_tresc_specjalne_all', array()); $teksty_tematy_array_flat = $teksty_tematy_array['flat']; $teksty_tematy_array_redirect = $teksty_tematy_array['przekieruj']; $teksty_tematy_array = $teksty_tematy_array['tree']; //sd($teksty_tematy_array); $kat_array_path = $cache->call('kategorie_path_array', array("", $_GET['k'])); $dane['kat_array_path'] = $kat_array_path; if(count($_SESSION['ilosci_kat']) == 0 ) $_SESSION['ilosci_kat'] = towar_ilosci_w_kat(); //sd($kat_array); ctrl($_GET['a'], $_GET['k'], $_GET['p']); //echo $_SESSION['ilosc_zapytan']; ?>