\n\n
\n\n";
  foreach($folders as $folder)
  {
    if($folder=="..")
    {
      $path=pathinfo($subfolder);
      $f=basename(__FILE__)."?$args&f=".$path["dirname"]."&t=1";
    }
    else
      $f=basename(__FILE__)."?$args&f=$subfolder/$folder&t=1";
    echo "    <dir> $folder\n";
  }
  foreach($list as $file)
  {
    $f=ereg_replace("/+","/",$config["images"]."/$subfolder/$file");
    $info=getFileInfo($subfolder,$file);
    if($info["new"]) echo "NEW ";
    else echo "    ";
    echo "<img> $file\n";
  }
  echo "\n
\n\n\n"; exit; } $indexTemplate=getTemplate("index"); $tableTemplate=getTemplate("table"); $rowTemplate=getTemplate("imagerow"); $imageTemplate=getTemplate("image"); $folderTemplate=getTemplate("folder"); $infoTemplate=getTemplate("info"); $pagerTemplate=getTemplate("pager"); $currentPage=$_GET["cp"]; $picsPerPage=$_GET["ppp"]; if(!$picsPerPage) $picsPerPage=$config["pics_per_page"]; $args="ppp=$picsPerPage"; $totalPages=(count($folders)+count($list))/$picsPerPage; if($currentPage>$totalPages) $currentPage=ceil($totalPages); if($currentPage>0) $currentPage--; else $currentPage=0; $introTemplate=($currentPage==0) ? getTemplate("intro") : ""; for($index=1;$index<($totalPages+1);$index++) { $selector.="