2011 tél-tavasz

uid == 0 && $_SESSION['auth'] != 'yes' && $albumid != '5268281653246984321' && !preg_match("/alsogod|pecsko/", $_SERVER[REQUEST_URI])){ header("Location: http://".$_SERVER['HTTP_HOST']."/bejelentkezes?url=" . urlencode("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])); exit; } if(!isset($user_me)){ if($_SERVER['HTTP_HOST'] == 'budavar.lutheran.hu'){ $user_me = "lelekhivatal"; } else{ $user_me = "kriseknet"; } } if(isset($authkey)){ $authparam = "/?authkey=$authkey"; } if(isset($albumname)){ $slideshow= "Slideshow" ; } ?>
array()); #echo $_SERVER['DOCUMENT_ROOT']."/sites/".$_SERVER['HTTP_HOST']."/albums/${albumid}/index.html"; if(! file_exists($_SERVER['DOCUMENT_ROOT']."/sites/".$_SERVER['HTTP_HOST']."/albums/${albumid}/index.html")){ $rss = fetch_rss("http://picasaweb.google.com/data/feed/base/user/$user_me/albumid/$albumid?alt=rss&kind=photo&hl=en_US&authkey=$authkey"); if(count($rss->items) == 0){ $url = "http://".$_SERVER['HTTP_HOST']."/sites/".$_SERVER['HTTP_HOST']."/albums/${albumid}.rss"; //echo "go for plan b $url "; $rss = fetch_rss($url); } } else{ $lines = file($_SERVER['DOCUMENT_ROOT']."/sites/".$_SERVER['HTTP_HOST']."/albums/${albumid}/index.html"); foreach($lines as $line){ if(preg_match('/IMG src=\"([^\"]+)/',$line,$matches)){ $thumbURL = $matches[1]; $imageURL = preg_replace('/\.thumb/', '.slide',$thumbURL); if(preg_match('/title=\"([^\"]+)\"/i',$line,$matches)){ //$title = $matches[1]; } array_push($rss->items, array('title' => $title, 'title_short' => $title,'thumbURL' => "/sites/".$_SERVER['HTTP_HOST']."/albums/${albumid}/$thumbURL", 'imageURL' => "/sites/".$_SERVER['HTTP_HOST']."/albums/${albumid}/$imageURL")); } } } ?>
items as $item) { //echo "$item read...
"; if($item[thumbURL] == '' && preg_match('/src=\"([^\"]+)\"/', $item[description], $match)){ $imageURL = str_replace('s288','s1024',$match[1]); $thumbURL = str_replace('s288','s144',$match[1]); } else{ $imageURL = $item[imageURL]; $thumbURL = $item[thumbURL]; } ?>