///////////////////////// /// Netdoor /// /// Image /// /// Gallery /// ///////////////////////// include "commonlib.php"; include $header; $imgpath = "images/"; $thumbpath = $imgpath."thumbs/"; $tinypath = $thumbpath."tiny/"; /** Popup Window Variables **/ $ptitle = "Gallery"; $sbars = "yes"; $resize = "yes"; $pwidth = "850"; $pheight = "650"; $homeurl = "/index.html"; /**Begin main functions**/ // edited 2014-04-18 by havard after noticing annoying log messages every time this was hit. seriously? chmod every hit?! #$cmd="chmod -R 774 $imgpath"; #exec($cmd); /**Begin main functions**/ srand((double)microtime()*1000000); /**Display Categories**/ function display_cats($subs) { global $maintable; global $cattable; global $subtable; global $connection; global $tab; global $thisfile; global $tinypath; global $homeurl ?>
1994 Toyota Supra Turbo32,000 Original Miles Most Pictures are old (pre road race) |
||
echo "
|
||
Diet Pictures | ||
[ Image Gallery | Modifications | Home ] |
[ Back ]
"; echo ""; $query="SELECT id, name from $cattable"; $cat_result=query($query); while (list($catid, $catname)=mysql_fetch_array($cat_result)) { if ($catid!=$cat) { echo "[".$catname. "] "; } else { echo "[$catname] "; } } echo "
"; echo "[ Image Gallery | Modifications | Home ]
"; echo "There are Currently no Images to view in this category
"; } echo "[ Back ]
"; echo ""; $query="SELECT id, name from $cattable"; $cat_result=query($query); while (list($catid, $catname)=mysql_fetch_array($cat_result)) { if ($catid!=$cat) { echo "[".$catname. "] "; } else { echo "[$catname] "; } } echo "
"; echo "[ Image Gallery | Modifications | Home ]
"; } if ($pic) { display_pic($pic); } elseif ($viewthumbs) { display_thumbs($cat, $sub, $maxcols); } else { display_cats(1); } /**Display Picture**/ function display_pic ($pid) { global $maintable; global $cattable; global $subtable; global $HTTP_REFERER; global $imgpath; $result=query("SELECT * from $maintable WHERE id=$pid"); $record=mysql_fetch_array($result); //echo $record["title"]. "";
?>">
echo $record["caption"] . ""; ?>
[ Close Window ]
} include $footer;