StartTime($starttime); $time->LogTime('after proc'); include('config.inc'); $time->LogTime('after config'); $canon = ''; //canonical url $ak = array_keys($catnames); $c = @trim($c); if (empty($c) || (!in_array($c,$ak) && $c{0}!='~' && $c{0}!='!') ) { $c = $ak[0]; } if (USE_TWATCH) { include_once($_SERVER['DOCUMENT_ROOT'].'/twatch/api/LogRequest.php'); include_once($_SERVER['DOCUMENT_ROOT'].'/twatch/api/GetStats.php'); twatchLogRequest(true); $onlinevisitors = twatchOnlineVisitorsCount(); } else { $onlinevisitors = 0; } $time->LogTime('after twatch'); //$LastVisit = @$_COOKIE['LastVisit']; SetCookie("LastVisit", time(), time()+31536000); $allpanoscnt = CountPanos($panos); $allphotoscnt = count($photos); $allsoundscnt = count($ambientsounds); if (!empty($entry)) { $thispan = GetPano($panos,$entry); if (empty($thispan)) { header('HTTP/1.0 404 Not Found'); include($_SERVER[ 'DOCUMENT_ROOT' ].'/404.html'); return; } $catpanos = array($thispan); $thispanotitle = empty($thispan) ? '' : $thispan['text']; $c = ''; $canon = "/360/pan/{$thispan['file']}/".LANG; } else { $catpanos = GetPanosFromCat($panos, $c); $canon = "/360/cat/$c/".LANG; } $npages = ceil(count($catpanos)/PERPAGE); if (empty($pg) || intval($pg)<0 || intval($pg)>=$npages) { $pg = 0; } if ($pg>0 && count($catpanos)>1) $canon .= "/$pg"; if ($c=='last' && LANG==LANG_PL && $pg==0) $canon = "/"; $stattext = ''; $pkeywords = L_METAKEYWORDS; if (!empty($entry) && !empty($thispan) && !empty($thispan['keywords'])) { $pkeywords = $thispan['keywords'].', '.L_UNIVERSALMETAKEYWORDS; } /* $GLOBALS['adl_count_params'] = true; $GLOBALS['adl_alt_docroot'] = SERVERPATH; include_once (SERVERPATH.'/twatch_include/logger.php'); include_once (SERVERPATH.'/twatch_include/api.php'); $tconnected = twatch_connect('default',SERVERPATH); $stattext = 't.'; $stattext .= twatch_value('visitors','today'); $stattext .= '.'.twatch_value('online_visitors','today'); $stattext .= '.'.twatch_value('page_views','today'); $stattext .= "\n"; $stattext .= 'a.'; $stattext .= twatch_value('visitors','all'); $stattext .= '.'.twatch_value('page_views','all'); $stattext .= "\n".'g.'.date('ymdHis'); */ ?> '; } else { echo ''; } ?> '."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; //$ogimage_subdir = isset($thispan['options']['big']) ? 'equi/1500' : 'mini'; $ogimage_subdir = 'equi/1500'; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; //dodac locale:alternate if (!empty($thispan['coords'])) { echo ''."\n"; echo ''."\n"; } echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''."\n"; } //echo ""; // *** TITLE *** if (!empty($_GET['c'])) { if ($c{0}=='~') { $ttt = explode('
',$catnames[$c][LANG]); $pagetitle = $ttt[1].' - '.L_SEARCHRESULTSTITLE.' :: 360 :: '.L_PANORAMA; } else if ($c{0}=='!') { $ttt = explode('
',$catnames[$c][LANG]); $pagetitle = $ttt[1].' - '.L_TAGSRESULTSTITLE.' :: 360 :: '.L_PANORAMA; } else { $pagetitle = str_replace('
',' ',$catnames[$c][LANG]).' :: 360 :: '.L_PANORAMA; } if ($npages>0) $pagetitle .= " (".($pg+1)."/$npages)"; } else { if (!empty($entry)) { $pagetitle = $thispanotitle.' :: 360 :: '.L_SPHERICALPANORAMA; } else { $pagetitle = '360 :: '.L_SPHERICALPANORAMAS; } } echo "$pagetitle"; // *** CANONICAL *** if (!empty($canon)) { echo "\n".''; } // *** NEXT/PREV *** if ($npages>1) { if ($pg>0) echo "\n".''; if ($pg<$npages-1) echo "\n".''; } ?> .json?callback=LoadGigaPan"> GoogleAnalyticsAsync(); ?>
LogTime('after GetPano'); echo ''; echo '
'; echo ''; //echo ''; if (1) { $bgimg = IMGHOST.'/360/img/catpics/'.$headerpicnr.'.jpg'; echo '
'; echo '
'; } else { echo '
'; echo ''.$headerpano['text'].''; echo '
'; } echo '
'; ?>
GetFollowersCountCached(); if (empty($entry)) { $pllink = CreateCatLink($c,LANG_PL,$pg); $enlink = CreateCatLink($c,LANG_EN,$pg); } else { $pllink = '/360/pan/'.$entry.'/'.LANG_PL; $enlink = '/360/pan/'.$entry.'/'.LANG_EN; } $contents .= '
'.L_TOPMENU_CANTVIEW.'  '. ''.L_LANGPL.' '. ''.L_LANGEN.' '. ''.L_RSS_FEED.''. ''.L_TWITTER_FEED.''. ''.L_PINTEREST_FEED.''. ''. '
'; $contents .= L_TOPMENU_SEARCH.':
»
'; echo '
'; echo '
'; echo $contents; echo '
'; echo '
'; ?>
> LogTime('before first column'); $tagtext = ''; if (empty($catpanos)) { $box = new Box(BOXWIDTH2); $box->style = 'boxbig'; $box->contents = L_NOMATCHESFOUND; $box->Display(); } else { $pnr = 0; $pagepans = array(); foreach($catpanos as $pano) { $pnr++; $pagenumber = ceil($pnr/PERPAGE); if (($pg+1)!=$pagenumber) { $pagepans[$pagenumber][] = $pano['text']; continue; } $box = new Box(BOXWIDTH2); $box->style = 'boxbig'; $box->extraattributes = ' itemscope itemtype="http://schema.org/Article"'; $fullink = "/360/show.html?max=1&p={$pano['file']}&lang=".LANG; $box->title = "

".$pano['text'].'

'; if (0) { $tooltiptitle = L_HASTOOLTIPS_TITLE.' ('.count($pano['tooltips']).')'; if ($pano['hastooltips']) $box->icon = ''.$tooltiptitle.''; } if (isset($ambientsounds[$pano['file']])) { $box->icon = '
MP3
'; } $box->contents = GenerateContents($pano); $box->foot[] = CreateAdditionalLinks2($pano); $box->foot[] = CreatePhotoBox($pano); $box->foot[] = CreateCommentContents($pano); //$tagtext .= MakeTagText($pano).' '; $box->Display(); $time->LogTime('box'.$pnr); } if ($npages>1) { echo '
'; echo '
'; if ($pg>0) { echo "« ".L_PREVIOUSPAGE.""; } else { echo ' '; } echo '
'; echo '
'; if ($pg<$npages-1) { echo "".L_NEXTPAGE." »"; } else { echo ' '; } echo '
'; echo '
'; echo '
'; } } ?>
> LogTime('before second column'); $stattext2 = ''; /* $stattext2 = twatch_value('visitors','today'); $stattext2 .= '.'.twatch_value('online_visitors','today'); $stattext2 .= '.'.twatch_value('page_views','today'); */ if (empty($entry)) { $box = new Box(BOXWIDTH1); $box->title = L_PAGE; for ($i=0; $i<$npages; $i++) { if ($pg==$i) { $box->contents .= "".($i+1).' '; } else { $thispagecontents = JSEncode(implode('
',$pagepans[$i+1])); $box->contents .= "".($i+1).' '; } } $box->Display(); } $box = new Box(BOXWIDTH1); $box->id = 'pagepreview'; $box->addstyle = 'display:none;'; $box->contents = '***'; $box->Display(); $box = new Box(BOXWIDTH1); $box->title = L_CATEGORIES; $box->contents = GenerateCatMenu($panos,$catnames,$c,$pg,$npages); $box->Display(); $box = new Box(BOXWIDTH1); $box->title = L_MAPS_BOXTITLE; $box->contents = ''.L_SHOWMAP.'
'. ''.L_LOADALLKML.''; $box->Display(); $box = new Box(BOXWIDTH1); $box->title = L_RANDOM_BOXTITLE; $rndpan = $panos[mt_rand(0,count($panos)-1)]; $box->contents = SmallImageLink($rndpan).''.$rndpan['text'].''; $box->Display(); $box = new Box(BOXWIDTH1); $box->title = L_CONTACT; $box->contents = L_INTERESTED; $box->Display(); if (empty($entry)) { $box = new Box(BOXWIDTH1); $box->title = L_LASTCOMMENT_BOXTITLE; $lastcomment = $com->GetLastComment(); $lastcompan = GetPano($panos,$lastcomment[0]['Filename']); $box->contents = SmallImageLink($lastcompan).''.$lastcompan['text'].'
'.WordTruncate($lastcomment[0]['Comment'],400,' [...]').($lastcomment[0]['Signature'] ? ' ('.$lastcomment[0]['Signature'].')' : '').'
'; $box->Display(); } $box = new Box(BOXWIDTH1); $box->title = L_SEEALSO_BOXTITLE; $box->contents = 'Zbooy @ Flickr
Zbooy @ gigapan
Strona rowerowa u Zbooya'; //Stara Górska Biblioteczka'; $box->Display(); if (false && !empty($tagtext)) { $box = new Box(BOXWIDTH1); $box->title = L_TAGCLOUD; $tcloud = CreateTagCloud($tagtext); if (!empty($tcloud)) { $box->contents = CreateTagCloud($tagtext); $box->Display(); } } echo '
'; if (0) echo '
'; $time->LogTime('almost finished'); $timelog = $time->ShowLog().' ::: '.$tt1.'/'.$tt2.'/'.$tt3.'/'.$tt4.'/'.$tt5; $box = new Box(BOXWIDTH1); //$box->contents = L_ONLINEVISITORS.': '.$onlinevisitors.'

'; $box->contents = '© Szymon "Zbooy" Madej
2005–2017'; $box->Display(); ?>
LogTime($time->DisplayTime(),'index'); if (isset($_COOKIE['zbooy'])) { echo '
'; echo '
'; echo "TIMELOG: ".str_replace('/','
',$timelog)."

"; echo "time->DisplayTime(): ".$time->DisplayTime(); echo '

'; echo '
'; } if(isset($dbops)) { echo ''; } ?>