$value)
{ ++$cnt; }
//$imgpath="/~edgock/travel/pics/imgent.php?key=";
$imgpath="/travel/pics/imgent.php?key=";
//$hostname = $_SERVER['SERVER_NAME'];
//$hostname = "www.freeshell.org";
$hostname = "edgock.chaosnet.org";
$str = "";
if ($cnt > 0)
{
$str = "../";
}
$flpre="images";
$flsuf=".csv";
$flpg="";
$fname=$flpre.$flsuf;
while (file_exists($fname))
{
$fp = fopen ($fname,"r");
while (($data = fgetcsv ($fp, 1000, ","))) {
if (!pageexists($pglist,$data[8]))
{
$htmllist[$data[8]]=1;
if ($data[8] != "")
{
$last = $data[8];
inspage($pglist,$data[8]);
}
}
else
{
$htmllist[$data[8]] = $htmllist[$data[8]] + 1;
}
if (strlen($data[10]) > 0)
{
$titlelst[$data[8]] = $data[10];
$endidx=$data[8];
}
print $htmllist[$data[8]]." ".$data[8]." ".$data[0]."
";
}
fclose ($fp);
$flpg=$endidx+1;
$fname=$flpre.$flpg.$flsuf;
}
$totcnt =0;
$fp = @fopen("imagestats.php","w");
$str ="\n";
$str.="
Photo Statistics
\n"; $linecnt=0; $str.="
| "; $str .= "Total in archive | ".$totcnt; $str .= " |