\n"; } // Get the directory includes $keywd=""; if(file_exists("$dir/$breffil")) { include("$dir/$breffil"); $keywd=$srch; } else { if(file_exists("$breffil")) { include("$breffil"); $keywd=$srch; } } if(!$customheader) { my_header(); } else { include($custinc); } // Check for User defined html.inc // If it does not exist, we generate some defaults. if(file_exists($htmlinc)) { include($htmlinc); } // Ad rotation check if($showads){ //include($ads_inc); // if(file_exists(".include/gAds/leadad.inc")) { // include(".include/gAds/leadad.inc"); // } } // user defined text if((!$noheader) && (!$showpic)) { if(($srow) && ($srow>1)) { } else { /* if(file_exists("$dir/$hedrinc")) { echo <<
EOF; include("$dir/$hedrinc"); echo <<
EOF; */ if(file_exists("$dir/$hedrinc")) { $zzfil=file_get_contents("$dir/$hedrinc"); if(file_exists("$dir/$etc_dir/prehead")) $zzpre=file_get_contents("$dir/$etc_dir/prehead"); if(file_exists("$dir/$img_dir/$porpinc")) $portinc=$porpinc; if(file_exists("$dir/$img_dir/$porginc")) $portinc=$porginc; if(file_exists("$dir/$img_dir/$portinc")) { $isiz=GetImageSize("$dir/$img_dir/$portinc"); $isz=$isiz[3]; $zzimg="\"portrait\""; } echo <<
$zzpre $zzimg $zzfil
EOF; } else { if(file_exists("$dir/$headinc")) { include("$dir/$headinc"); } else { if(file_exists("$headinc")) { include("$headinc"); } } } } } echo << EOF; // Image Viewer section if($showpic) { viewpic($dir,$prev,$name,$showname,$srow); } else { echo <<
EOF; // get a random Google Pack Ad //$pcknam=grandAd("Pck"); //if(file_exists($incdir."/".$pcknam)) { // include($pcknam); //} //echo "Dir=|$dir/$etc_dir|"; $zdr=$dir; if($dir=="") $zdr="/home/ftppu/pub"; if($wx=="7") { } else { } if(file_exists("$zdr/$etc_dir/xosterad.inc")) { include("$zdr/$etc_dir/xosterad.inc"); } else { if(file_exists("/home/ftppu/pub/$etc_dir/xosterad.inc")) { include("/home/ftppu/pub/$etc_dir/xosterad.inc"); } } echo <<
EOF; // Thumbnail Gallery generator // First thing lets do is acquire the directorys for later printing if(!isset($dir)){ $dir=$defaultdir; } if(!isset($prev)){ $prev=$defaultdir; } echo "
\n"; if($wx=="8") { $zdr=$dir; if($dir=="") $zdr="/home/ftppu/pub"; if($PHP_SELF == "/pinups.html") { if(isset($srch) && ($srch)){ $Key="Banner"; $Site=""; $Keyword=$srch; if(file_exists("$zdr/$etc_dir/xosterad.inc")) { include("$zdr/$etc_dir/xosterad.inc"); } else { include("Ads/rsc/rscontext.php"); } } } else { if(file_exists("$zdr/$etc_dir/xosterad.inc")) { include("$zdr/$etc_dir/xosterad.inc"); } else { if(file_exists(".include/sitesearch.inc")) { include(".include/sitesearch.inc"); } } } } else { //echo "


\n"; } echo "
\n"; if(file_exists("$dir/$gallinc")) { include("$dir/$gallinc"); } else { if(!is_dir("$dir/$imgdir")){ mkdir("$dir/$imgdir",0755); } $fd=fopen("$dir/$gallinc","w+"); $dirlist=getdirlist($dir); $nlist=explode("\n", $dirlist); sort($nlist); $i=0; $dcnt=0; $dend="ies"; $f1=$nlist[$i]; if($f1!="") { $dcnt=count($nlist); } if($dcnt==0) { $dcnt="No"; } if($dcnt==1) { $dend="y"; } // Now generate the Navigation Table Entry $dt="
\n"; fputs($fd, $dt); echo $dt; $dt="\n"; fputs($fd, $dt); echo $dt; $dt="\n"; fputs($fd, $dt); echo $dt; if("$dir"!="$defaultdir") { $dt="\n"; fputs($fd, $dt); echo $dt; $dt="\n"; fputs($fd, $dt); echo $dt; } $dt="
$dcnt Available Galler$dend
\n"; fputs($fd, $dt); echo $dt; while(file_exists("$dir/$f1")) { if($f1!="") { //$newfile=urlencode("$dir/$f1"); $newfile="$dir/$f1"; $imglink=""; if(file_exists("$dir/$f1/$imgdir/dir-thumbnail.thm")){ $imglink=" "; } elseif($autothumbs) { $x=getdirthumb("$dir/$f1"); $imglink=" "; } if($countfiles) { $numfiles= countfiles("$dir/$f1"); } if(file_exists("$dir/$f1/$breftxt")){ $dt="$imglink"; fputs($fd, $dt); echo $dt; $dt=join("", file("$dir/$f1/$breftxt")); fputs($fd, $dt); echo $dt; $dt=""; fputs($fd, $dt); echo $dt; } else { $dt="$imglink$f1"; fputs($fd, $dt); echo $dt; } if(($countfiles) and ($numfiles!="")) { $dt=" ($numfiles)
\n"; fputs($fd, $dt); echo $dt; } elseif($countfiles and ($numfiles=="")) { $dt=" (No Pictures or Galleries Found)
\n"; fputs($fd, $dt); echo $dt; } } $i++; $f1=$nlist[$i]; if("$dir/$f1"=="$dir/") { break; } } $dt="
Previous LevelTop Level
\n"; fputs($fd, $dt); echo $dt; $dt="
\n"; fputs($fd, $dt); echo $dt; $dt="
\n"; fputs($fd, $dt); echo $dt; fclose($fd); } echo <<
EOF; // get a random Google Picassa Ad //$picnam=grandAd("Pic"); //if(file_exists($incdir."/".$picnam)) { // include($picnam); //} // echo "Hello 01
\n"; $zdr=$dir; if($dir=="") $zdr="/home/ftppu/pub"; if($wx=="7") { } else { // echo "Hello 01.5|$zdr|/$incfir|
\n"; } if(file_exists("/home/ftppu/pub/$incdir/randimg.inc")) { include("/home/ftppu/pub/$incdir/randimg.inc"); // echo "Hello 02
\n"; } else { if(file_exists("/home/ftppu/pub/$incdir/randimg.inc")) { include("/home/ftppu/pub/$incdir/randimg.inc"); // echo "Hello 03
\n"; } // echo "Hello 04
\n"; } echo <<
EOF; // Now grab the thumbnails for this page $list=getthumbnails($dir); $nlist=explode("\n", $list); sort($nlist); $fcnt=0; $fend="s"; $pcnt=1; $pend="s"; $f1=$nlist[0]; if($f1!="") { $fcnt=count($nlist); } if($fcnt==0) { $fcnt="No"; $pcnt+=0; } if($fcnt==1) { $fend=""; $pcnt+=$fcnt/15; } if(sprintf("%d",$pcnt)=="1") { $pend=""; } // Now generate the thumbnails for this page if($fcnt!=0) { printf("
(%s Picture%s, %d Page%s)
\n", $fcnt,$fend,$pcnt,$pend); echo "
\n"; $ccol=1; $crow=1; if(!isset($srow)){ $srow=1; } $simage=($cols*$srow)-($cols); $i=$simage; $f1=$nlist[$i]; while(file_exists("$dir/$f1") || $f1=="") { if($ccol>$cols) { $ccol=1; } if($f1!="") { $name="$dir/$f1"; $dsname="$dir/$dscdir/$f1"; if(!file_exists($dsname)) { makedescr($f1,$name,$dsname); } else { include("$dsname"); } $pcname="$dir/$pocdir/$f1"; if(!file_exists($pcname)) { makepoc($name,$pcname); } $thname="$dir/$imgdir/$f1"."-"."thumbnail.thm"; if(!file_exists($thname)) { makethumb($name,$thname); } $zhname="$dir/$zmgdir/$f1"."-"."thumbnail.thm"; if(!file_exists($zhname)) { makethm150($name,$zhname); } $data = GetImageSize($name,$info); $fdim="" . $data[0] . " x " . $data[1]; switch ($data[2]) { case 1: $ftyp = "GIF"; break; case 2: $ftyp = "JPG"; break; case 3: $ftyp = "PNG"; break; case 4: $ftyp = "SWF"; break; default: $ftyp = "Other"; $fdim = "Unknown"; break; } $fsiz = sprintf("%d",FileSize($name)/1024); //$newdir=urlencode($dir); //$newname=urlencode($name); //$newthname=urlencode($thname); //$newprev=urlencode($prev); $newdir=$dir; $newname=$name; $newthname=$thname; $newprev=$prev; if($showname>0) { $sname=basename($name); if($showname==2) { $sname=substr($sname,0,$truncatechars); } } else { $sname=""; } echo "\n"; $ccol++; } $i++; $f1=$nlist[$i]; if($ccol>$cols) { $crow++; } if(($crow>$rows) || ("$dir/$f1"=="$dir/")) { echo "
\"[thumbnail\n"; echo "Size: " . $fsiz . " KB
\n"; echo "Dims: " . $fdim . "
\n"; echo "Type: " . $ftyp . "
\n"; echo "Name: " . $sname . "
\n"; break; } if($ccol>$cols) { echo ""; } } //echo "\n"; echo "
\n"; $prow=$srow-$rows; if($prow>=0) { echo ""; if(file_exists("$previmage")) { echo "\"Previous\"  "; } else { echo "<- Prev | "; } } if($ccol>$cols) { $startat=$srow+$rows; echo ""; if(file_exists("$nextimage")) { echo "\"Next\"\n"; } else { echo "Next ->\n"; } } echo "\n
\n"; } else { //if(file_exists(".include/gAds/linkad.inc")) { // include(".include/gAds/linkad.inc"); //} } echo "
\n"; } // get a random Google Firefox Ad $ffxnam=grandAd("FFx"); if(file_exists($incdir."/".$ffxnam)) { // echo "
\n"; // include($ffxnam); // echo << //
Our sites are designed, with Firefox in mind!
//
// //EOF; } // user readme text echo "

\n"; if(file_exists("$dir/$rdmeinc")) { include("$dir/$rdmeinc"); } else { if(file_exists("$rdmeinc")) { include("$rdmeinc"); } } echo "

\n"; echo "
\n"; if(file_exists($botminc)) { include($botminc); } ?>