"; show_source(basename($PHP_SELF)); echo ""; exit; } $title = "SSLUG - Sponsorater"; $edate = "2000-03-16"; $location = "På nettet"; // optional 'subtitle' $subtitle = "Billeder af SSLUG's sponsorgaver"; $mask = "r00"; // file mask $img[0] = array( 'w' => 1792, 'h' => 1200); $img[1] = array( 'w' => 120, 'h' => 80); $img[2] = array( 'w' => 600, 'h' => 400); if (!isset($col) || ($col<2)) $col = 3; // Columns of pictures if (!isset($row) || ($row<1)) $row = 3; // Rows of pictures $cw = 180; // Cell width $prevT = "Forrige"; $nextT = "Næste"; $des = "description"; $notext = "- ingen tekst -"; // Program begin. Do not edit (unless you have to) // by Hans Schou // View only descriptions if ($description) { echo "$title

$title

Text file $des

\n
";
  $alldes = file($des);
  while(list(,$line) = each($alldes)) {
   list($file,$da,$en) = split(";", chop($line));
   echo "$file $da".($en?"($en)":"")."\n";
  }
  echo "
"; exit; } // Read 'big files' from directory $d = dir("./"); $dir = array(); while ($entry=$d->read()) { if (ereg("^".$mask, $entry)) $dir[$entry] = ""; } $d->close(); ksort($dir); // Check language if (!isset($lang)) $lang = "da"; if ($lang != "da") { $prevT = "Previus"; $nextT = "Next"; } // maximum coloumn is count($dir) if ($col > count($dir)) $col = count($dir); if (!isset($start)) $start = 0; // adjust row to its maximum if ($row * $col > count($dir)-$start) $row = ceil( (count($dir)-$start)/$col ); if (!$start) $prev = $prevT; else { $s = $start-$row*$col; if ($s < 0) $s = 0; $prev = "$prevT"; } // Get all descriptions if (file_exists($des)) { $fp = fopen($des, "r"); while ($s = fgets($fp,4096)) { $s = ereg_replace("[\n\r]", "",$s); $entry = strtok($s, ";"); if ($txt = strtok(";")) if (($lang != "da") && ($t = strtok(";"))) $txt = $t; $dir[$entry] = $txt; } } else { // What?! Too lazy eh'? if (file_exists("type.php")) { include("type.php"); exit; } } $end = $col*$row+$start-1; if ($end > count($dir)) $end = count($dir)-1; if ($end+2 > count($dir)) $next = $nextT; else $next = "$nextT"; $range = $start."-".($end>count($dir)?count($dir):$end)." (".count($dir).")"; ?> <? echo $title ?>


"; echo "   "; if ($lang== "da") echo "[in English]"; else echo "[på Dansk]"; if((count($dir) < 2) || ($col < 2)) { echo "

ingen billeder kan vises

"; exit; } ?>
 \n"; } ?> \n"; echo "\n\n"; } $cnt++; if ($cnt % $col == 0) echo "\n\n"; } ?>
\n"; if (!(list($file,$text) = each($dir))) echo " "; else { echo "#".($start+$cnt)." - 1$file\n"; echo "
\n"; echo "".$img[2]['w']."x".$img[2]['h']."\n"; echo "     "; echo "".$img[0][ 'w']."x".$img[0]['h']."\n"; echo "
\n"; //echo $file."
\n"; if ($text) echo $text; else echo $file."
".$notext; echo "

Foto og tekst af Hans Schou <chlor@sslug.dk>
Alle billeder kan frit anvendes til alle formål. Eventuelt med kildeangivelse.
Redigering og billedmanipulation tilladt.

Photo and text by Hans Schou <chlor@sslug.dk>
All pictures can be freely used for any purpose. Eventually with credit.
Picture manipulation allowed.

View all ">thumbnails, description's or the php-source