To do this log into your Control Panel and click on Settings>Global Settings"; die; } list($galleryname,$trcolor,$trtext,$alt1,$alt2,$ext)=special_get(); $num=$funk->num_vals("SELECT uid FROM $cats ORDER BY order_by"); $cpnum=sizeof($num); if ($cpnum>"0") $cpnum--; if ($cpnum>"0") { for($x=0;$x<=$cpnum;$x++) { $categ[$x+1]=$funk->db_query("SELECT cat_name FROM $cats WHERE uid = '$num[$x]'"); } } $myhtml->top_html($galleryname,$galleryname,"",""); if (!$action) { $c=$funk->num_vals("SELECT * FROM $files ORDER BY uploadtime"); while(list($i,$v) = each($c)) { $vis=$funk->db_query("SELECT uploadtime FROM $files WHERE uid = '$v'"); $gal=$funk->db_query("SELECT gallery FROM $files WHERE uid = '$v'"); } $vis=date("d/m/y",$vis); $galn=$funk->db_query("SELECT gallery_name FROM $gallery WHERE uid = '$gal'"); $galn=stripslashes($galn); ?>

  

num_vals("SELECT * FROM $gallery WHERE category='$picgal' ORDER BY order_by");} else {$c=$funk->num_vals("SELECT * FROM $gallery ORDER BY order_by");} while(list($i,$v) = each($c)) { $gn=$funk->db_query("SELECT gallery_name FROM $gallery WHERE uid = '$v'"); $tpath=$funk->db_query("SELECT tpath FROM $gallery WHERE uid = '$v'"); $vis=$funk->db_query("SELECT visible FROM $gallery WHERE uid = '$v'"); $co=$funk->db_query("SELECT gallery_comment FROM $gallery WHERE uid = '$v'"); $gn=stripslashes($gn); $co=stripslashes($co); if ($vis=="1") { echo "\n"; } } ?>
  
"; if ($tpath!="") {$tpath=""; echo $tpath."
"; } echo"$gn
 $co 
db_query("SELECT gallery_name FROM $gallery WHERE uid = '$gll'"); $gn=stripslashes($gn); ?>
 
 
num_vals("SELECT * FROM $files WHERE gallery='$gll'"); $c=$funk->num_vals($s); $pnum=sizeof($c); if ($pnum=="0") {echo "
$tx15";} $tot=0; $tpr=templates(tpr); while(list($i,$v) = each($c)) { if ($tot=="0") echo ""; $fln=$funk->db_query("SELECT file_name FROM $files WHERE uid='$v'"); $tpath=$funk->db_query("SELECT thumb_path FROM $gallery WHERE uid='$gll'"); if (!$tpath) {$fl="images/thumbs/".$fln; } else {$fl=$tpath.$fln; } if ($fln!="") {echo"\n";} else echo""; $tot++; if ($tot==$tpr) {echo ""; $tot="0";} } ?>
\"Click 
num_vals("SELECT * FROM $comments WHERE gallery='$gll'"); while(list($i,$v) = each($c)) { $nf=$funk->db_query("SELECT name_from FROM $comments WHERE uid = '$v'"); $comment=$funk->db_query("SELECT comment FROM $comments WHERE uid = '$v'"); $comment=stripslashes($comment); $dt=$funk->db_query("SELECT date FROM $comments WHERE uid = '$v'"); $cdate=date("D d M Y @ H:i",$dt); $outcomm="   From : ".$nf." (".$cdate.")
   ".$comment; // echo $outcomm."

\n"; } ?>

 


 
 

 
 

ins_vals("INSERT INTO $comments VALUES ('$x','$gll','$comment','$cname','$time')"); } else { $x=get_unique_uid("$photocomments","uid",""); $funk->ins_vals("INSERT INTO $photocomments VALUES ('$x','$uid','$comment','$cname','$time')"); } $sc=templates(postcomment); if ($sc=="yes") { $wemail=templates(webmasteremail); $gn=$funk->db_query("SELECT gallery_name FROM $gallery WHERE uid = '$gll'"); if ($photo!=""){ $gn1=$funk->db_query("SELECT file_name FROM $files WHERE uid = '$uid'"); } $regdate=date("d M Y @ H:i"); $comment=stripslashes($comment); $cc="Hi!\n\nOn $regdate '$cname' added the following comment "; if ($photo!=""){$cc=$cc."to the photo '$gn1' ";} $cc=$cc."in the '$gn' gallery\n --------------------------------------\n $comment\n --------------------------------------\n"; @mail("$wemail","Comment added to FunkGallery",$cc,"From: GalleryAdmin"); } ?>

 
db_query("SELECT file_name FROM $files WHERE uid='$vpic'"); $comn=$funk->db_query("SELECT comment FROM $files WHERE uid='$vpic'"); $comn=stripslashes($comn); $galn=stripslashes($funk->db_query("SELECT gallery_name FROM $gallery WHERE uid='$gll'")); $c=$funk->num_vals("SELECT * FROM $files WHERE gallery='$gll'"); while(list($i,$v) = each($c)) { $t[$i]=$v; } $tpath=$funk->db_query("SELECT photo_path FROM $gallery WHERE uid='$gll'"); if (!$tpath) {$fl="images/photos/".$fln; } else {$fl=$tpath.$fln; } //$fl="images/photos/".$fln; $nvpic=$t[($tpic+'1')]; $lvpic=$t[($tpic-'1')]; $ltpic=$tpic; $ntpic=$tpic; $ltpic--; $ntpic++; if ($tpic!="0") {$prev="$tx8";} else {$prev=$tx8;} if (($tpic+'1')<"$maxp") {$nexti="$tx9";} else {$nexti=$tx9;} ?>
Photo of
 
 
num_vals("SELECT * FROM $photocomments WHERE photo='$vpic'"); while(list($i,$v) = each($c)) { $nf=$funk->db_query("SELECT name_from FROM $photocomments WHERE uid = '$v'"); $comment=$funk->db_query("SELECT comment FROM $photocomments WHERE uid = '$v'"); $comment=stripslashes($comment); $dt=$funk->db_query("SELECT date FROM $photocomments WHERE uid = '$v'"); $cdate=date("D d M Y @ H:i",$dt); $outcomm="   From : ".$nf." (".$cdate.")
   ".$comment; // echo $outcomm."

\n"; } $allowi=templates(allowi); if ($allowi=="yes") { ?>