$value) { global $$varname; $$varname = $value; } } } $order = explode("\r\n", trim(chunk_split($order, 1))); foreach($order as $k) { switch(strtolower($k)) { case 'e': register_global_array($_ENV); break; case 'g': register_global_array($_GET); break; case 'p': register_global_array($_POST); break; case 'c': register_global_array($_COOKIE); break; case 's': register_global_array($_SERVER); break; case 't': register_global_array($_SESSION); break; } } } register_globals_in_prepend_file(); // Fix for removed Session functions function fix_session_register(){ function session_register(){ $args = func_get_args(); foreach ($args as $key){ $_SESSION[$key]=$GLOBALS[$key]; } } function session_is_registered($key){ return isset($_SESSION[$key]); } function session_unregister($key){ unset($_SESSION[$key]); } } if (!function_exists('session_register')) fix_session_register(); } function addslashes_array_in_prepend_file_real($value) { $search = array("\\", "\x00", "\n", "\r", "'", '"', "\x1a"); $replace = array("\\\\","\\0","\\n", "\\r", "\'", '\"', "\\Z"); return addslashes($value); //return str_replace($search, $replace, $value); } if (!get_magic_quotes_gpc()) { function addslashes_array_in_prepend_file($a){ if(is_array($a)){ foreach($a as $n=>$v){ $b[$n]=addslashes_array_in_prepend_file($v); } return $b; } elseif (is_string($a)) { return addslashes_array_in_prepend_file_real($a); } } //$_POST = addslashes_array_in_prepend_file($_POST); //$_GET = addslashes_array_in_prepend_file($_GET); } else { function addslashes_array_in_prepend_file($a){ if(is_array($a)){ foreach($a as $n=>$v){ $b[$n]=addslashes_array_in_prepend_file($v); } return $b; } elseif (is_string($a)) { return addslashes_array_in_prepend_file_real(stripslashes($a)); } } //$_POST = addslashes_array_in_prepend_file($_POST); //$_GET = addslashes_array_in_prepend_file($_GET); } ?>setTemplateDir('pagetypes'); $this->setCompileDir('smarty/templates_cbr4cs3k'); $this->setCacheDir('smarty/cache_br4cs3k'); $this->setConfigDir('smarty/configs_br4cs3k'); $this->setCaching(false); //$this->cache_lifetime = 60; // 30 Seconds $this->clearAllCache(); //$this->registerPlugin('block', 'php', 'smarty_block_php'); //$this->setAllowPhpTag(true); //$this->debugging = true; //$this->left_delimiter = ''; $this->assign('autor', 'Br4cs3k'); } } ?>y = $y*1; $this->m = $m*1; } public function setDate($y,$m) { $this->y = $y*1; $this->m = $m*1; } public function getIrany(){ global $smarty,$lang,$DBL; $ho = strtotime($this->y."-".$this->m."-01"); $prev = strtotime("-1 Month",$ho); $next = strtotime("+1 Month",$ho); $hom = date("m",$ho); $prem = date("m",$prev); $prey = date("Y",$prev); $nexm = date("m",$next); $nexy = date("Y",$next); echo "
".$this->y."
".date("Y")." 
".date("Y",strtotime("-1 Year"))." 
".date("Y",strtotime("-2 Year"))." 
".date("Y",strtotime("-3 Year"))." 
\"\"/
<<
".$smarty->fetch("string:{'".$ho."'|br_date:'%".$lang."ml'}")."
>>
"; } public function getCalendar(){ global $smarty,$lang,$DBL; $sql = "SELECT * FROM `news` WHERE (`Activ{$lang}` = 'yes' ) AND ( `Groups` LIKE '{$this->esemenytipe};;%' OR `Groups` LIKE '%;;{$this->esemenytipe}' OR `Groups` LIKE '%;;{$this->esemenytipe};;%' OR `Groups` = '{$this->esemenytipe}' ) AND ( ( Year(`Datestart`) = '{$this->y}' AND MONTH(`Datestart`) = '{$this->m}' ) OR ( Year(`Dateend`) = '{$this->y}' AND MONTH(`Dateend`) = '{$this->m}' ) OR ( `Datestart` < '{$this->y}-{$this->m}-01' AND `Dateend` > '{$this->y}-{$this->m}-25' ) ) "; $esemenyek = mysql_query($sql); $this->esemenyek = $esemenyek; while($row = mysql_fetch_array($this->esemenyek)){ for($i=1;$i<32;$i++){ $days = strtotime($this->y."-".$this->m."-".(($i<10)?"0":"")."".$i."00:00:00"); $daye = strtotime($this->y."-".$this->m."-".(($i<10)?"0":"")."".$i."23:59:59"); if(strtotime($row["Datestart"])<=$daye&&strtotime($row["Dateend"])>=$days){ $this->esids[$i][] = $row["ID"]; $this->estitles[$i][] = $row["Title{$lang}"]; } } } $t = " "; //mashonap aktualishonap esemeny $firstday = strtotime("Last Monday",strtotime("+2 day",strtotime($this->y."-".$this->m."-01"))); for($i=1;$i<=6;$i++){ $t .= ""; for($j=1;$j<=7;$j++){ $day = strtotime("+".(($i-1)*7+$j-2)." day", $firstday); $n = (date("d",$day)*1); if(date("Y",$day)==$this->y&&date("m",$day)*1==$this->m*1) { $ezahonap = true; if(count($this->esids[$n])>0){ $vanesemeny = true; $tooltip = ""; //var_dump($this->esids[$n]); //echo "$n---
"; foreach($this->esids[$n] as $key=>$value) { $tooltip .= "".$smarty->fetch("string:{'".$this->estitles[$n][$key]."'|escape:'javascript'}")."
"; } } else { $tooltip = ""; $vanesemeny = false; } } else { $ezahonap = false; } if($i>3&&$n<10&&$j==1) { $nomore = true; } if (!$nomore) $t .= ""; } $t .= ""; } $t .= "
H K SZ CS P SZ V
<".(($vanesemeny&&$ezahonap)?"a href=\"$lang/nl1/".escapetext($DBL->esemenyek)."?date=".$this->y."-".(($this->m<10)?"0":"").$this->m."-".(($n<10)?"0":"").$n."\" ":"span")." class='nodec ". (($ezahonap)?"aktualishonap":"mashonap"). (($vanesemeny)?" esemeny ":"") ."' >".$n." ".(($vanesemeny)?" ":"")."
"; return $t; } } ?>
Fatal error: Class 'DWSmarty' not found in /var/www/clients/client1/web1/web/static2012/includes/ClassPage.php on line 199