=0) { include("slideshow_old.htm"); exit(); } if ( (rand(0,9)) >=15) { $spiderok = 1; include("slideshow_noflash.htm"); exit(); } include "adSenseChannel.php"; $files2 = str_replace('files.js','',$files); if ($files2[strlen($files2)-1] == '/') { $files2=substr($files2,0,strlen($files2)-1); } $files = $files2; $dir = $files; $realname = str_replace('OtherTrips/','',$dir); $realname = preg_replace('/(?<=[a-z])([A-Z])/', ' $1', $realname); $realname = str_replace('/',', ',$realname); include "slideshow_gettitle.php"; $realname = $title; // Now to determine the containing page in the website. $linkto = $dir; $linkto = substr($linkto, 0, strrpos($linkto,"/")); $linkto2 = $dir . "/slideshow.htm"; while (!file_exists($linkto . "/index.htm") && (strrpos($linkto,"/") > 0)) { $linkto = substr($linkto, 0, strrpos($linkto,"/")); } if (!file_exists($linkto)) { $linkto = ""; } if ($linkto=="OtherTrips") { $linkto=""; } $linkto = $linkto . "/index.htm"; ?> $realname"); print(""); // print(""); print(""); // print(""); ?>