DBinit(); $funkce->makeMenu(); $timeb=getmicrotime(); $ids=$_GET['ids']; $params=explode("/",$ids); if($_GET['cacher']==1) $funkce->$kacer=1; $urlsa=explode("-",$params[0]); if($urlsa[1]!='film') $nofilm=$params[1]; else $nofilm=0; if($urlsa[count($urlsa)-2]=="film" && is_numeric($urlsa[count($urlsa)-1])) { ### /pirati-z-karibiku-na-vlnach-podivna-film-98537/ $paramsold=$params; $params[0]="film"; $params[1]=$urlsa[count($urlsa)-1]; } if($urlsa[count($urlsa)-2]=="osoba" && is_numeric($urlsa[count($urlsa)-1])) { ### /johny-depp-osoba-18831/ $paramsold=$params; $params[0]="osoba"; $params[1]=$urlsa[count($urlsa)-1]; } $ids=$params[0]; if($ids=="") { // hlavni stranka $ids="index"; } elseif($ids=="clanek") { } else { $rs=$funkce->mysql_q("SELECT * FROM oblast WHERE urlalias='$ids'"); $oblast=mysql_fetch_assoc($rs); if(is_numeric($oblast['id'])) $ids='oblast'; // else include LIBPATH."/mob/stranka.php"; // pokud to neni nic z HP, clanek ci nejaka oblast } if(file_exists(LIBPATH."/mob/".$ids.".php")) include LIBPATH."/mob/".$ids.".php"; if(!file_exists(TPLPATH."/mob/".$ids.".tpl")) $ids="neexistuje"; include TPLPATH."/mob/".$ids.".tpl"; exit; } function getmicrotime() { list($usec,$sec)=explode(" ",microtime()); return ((float)$usec+(float)$sec); } $timea=getmicrotime(); $timed=$timea; // docasny $times[]=getmicrotime(); $ids=$_GET['ids']; $params=explode("/",$ids); $debug=0; if(MN && $debug==1) $debug=1; else $debug=0; include "lib/conf.php"; session_save_path(TMPPATH); @session_start(); include "lib/funkce.php"; $funkce=new funkce(); $funkce->DBinit(); $funkce->makeMenu(); $funkce->getSoutez(); $urlsa=explode("-",$params[0]); if($urlsa[1]!='film') $nofilm=$params[1]; else $nofilm=0; if($urlsa[count($urlsa)-2]=="film" && is_numeric($urlsa[count($urlsa)-1])) { ### /pirati-z-karibiku-na-vlnach-podivna-film-98537/ $paramsold=$params; $params[0]="film"; $params[1]=$urlsa[count($urlsa)-1]; } if($urlsa[count($urlsa)-2]=="osoba" && is_numeric($urlsa[count($urlsa)-1])) { ### /johny-depp-osoba-18831/ $paramsold=$params; $params[0]="osoba"; $params[1]=$urlsa[count($urlsa)-1]; } $ids=$params[0]; if($ids=="") { // hlavni stranka $ids="index"; } elseif($ids=="clanek") { } elseif($ids=="fotogalerie") { } else { $rs=$funkce->mysql_q("SELECT * FROM oblast WHERE urlalias='$ids'"); $oblast=mysql_fetch_assoc($rs); if(is_numeric($oblast['id'])) $ids='oblast'; // else include LIBPATH."/inc/stranka.php"; // pokud to neni nic z HP, clanek ci nejaka oblast } if(file_exists(LIBPATH."/inc/".$ids.".php")) include LIBPATH."/inc/".$ids.".php"; $times[]=getmicrotime(); if(!file_exists(TPLPATH."/".$ids.".php")) $ids="neexistuje"; include TPLPATH."/".$ids.".php"; $times[]=getmicrotime(); if($timedbe && $timedbb) $timec="db: ".round($timedbe-$timedbb,3)."s; "; // cas zpracovani db else $timec=""; if($timedbe && $timetpe) $timect="tpl: ".round($timetpe-$timedbe,3)."s; "; // cas zpracovani sablony else $timect=""; ?>