Location: PHPKode > projects > infoboard > infoboard/_req/galley.php
<?
include("../data/_uconfig.php");
$path="./data/pic/";

if(isset($_GET["cid"])) $cid=$_GET["cid"]; else $cid="";

if(!$cid) exit();

for($i=1; $i<=8; $i++){
	  $file = $path.$cid."-".$i.".jpg";
	 if(file_exists(".".$file)){
		  $data[] = $file;
	 }
}

echo "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>\n";
echo "<images>\n";
for($i=0; $i<count($data); $i++){
	  if($i == 0){
		   echo "<thumb displayNum=\"6\" separation=\"5\">\n";
	  }else{
		   echo "<thumb>\n";
	  }
	 echo "<image>".$data[$i]."</image>\n";
	 echo "<description>".$iscon["title"]."</description>\n";
	 echo "</thumb>\n";
}
echo "</images>\n";

?>
Return current item: infoboard