http://dammoel.dk/kreds62/modules/for_medlemmer/galleri/index.php?list=9Nu kan i se forår, den er helt gal...
//DISPLAY FOLDERS
if (count($folders) != 0){
for ($i=0; $i < count($folders); $i++){
if ($rowcount > $first && $rowcount <= $last) {
$mg2->link = $mg2->indexfile . "?list=" . $folders[$i][0];
$mg2->thumbfile = $mg2->getthumb($folders[$i][0]);
$mg2->width = $mg2->width;
$mg2->height = $mg2->height;
$mg2->foldername = $folders[$i][2];
if ($mg2->foldername == "") $mg2->foldername = " ";
// READ FOLDER CONTENTS
if(strlen($_REQUEST['list']) < 1) $list = "1";
else $list = $_REQUEST['list'];
$mg2->getfoldersettings($list);
$folders = $mg2->select($list,$mg2->all_folders,1,2,0);
$result = $mg2->select($list,$mg2->all_images,2,$mg2->folder_sortby,$mg2->folder_sortway);
if ($_REQUEST['page'] == "") $_REQUEST['page'] = 1;
$first = $mg2->imagecolumns * $mg2->imagerows * ($_REQUEST['page'] - 1);
$last = $mg2->imagecolumns * $mg2->imagerows * $_REQUEST['page'];
$rowcount = 1;
if ((count($folders) + count($result)) < $last) $last = count($folders) + count($result);
if ($_REQUEST['page'] == "all") {
$last = 9999999999999999999999999;
$first = 0;
}