\n"; }?>
Smileygenerator
Smileyupload
Impressum
"ä", "oe" =>"ö", "ue" => "ü","Ae" => "Ä", "Oe" =>"Ö", "Ue" => "Ü", "ss" => "ß"); $textmenu= strtr($fn, $umbau);} else {$textmenu=$fn;} if (is_dir($fn)) { if (!$ascending) { $msto = $msto.""; } else { $msto = "".$msto; } } } } echo $msto; ##ordnerauflisten ENDE ?>
  $textmenu\n
  $textmenu\n


#
# #
# ?>

   Dumme Frage: wo willst du hin?"); } $action = closedir($mydir); $mydir = opendir($maindir); $print = "\n \n"; } } } if ($gal_sort) { while (false !== ($fn = readdir($mydir))) { $pngfind = substr($fn, -5, 5); if ($fn == "." || $fn == ".." || (!eregi(".gif", $pngfind) && !eregi(".png", $pngfind))) continue; ++$i; //total image counter ++$j; //per page image counter $image_g[$j] = $fn; } if ($gal_ascending) { sort($image_g); } else { rsort($image_g); } $l = 0; $image_gr = NULL; while ($l != ($row * $perrow) && isset($image_g[$pagework + $l])) { $image_gr[$l] = $image_g[$pagework + $l]; ++$l; } $k = 0; while ($k != sizeof($image_gr)) { ImageDisplay($dir, $image_gr[$k]); ++$counter; #if ($counter == $row) { # $counter = 0; # $print = $print."\n"; # } ++$k; } } $print = $print."
\n"; if ($comment) { if (is_file($dir."/".$commentfile)) { $b = fopen($dir."/".$commentfile, "r"); $commentdata = fread($b, 32767)."

"; $action = fclose($b); } else { $commentdata = ""; } } $i = 0; if (@!$page || $page == "0") { $page = 1; } // preread out for pages (sloppy) $pagework = ($page * ($row * $perrow)) - ($row * $perrow); $z = 0; while ($z != $pagework && !$gal_sort) { $fn = readdir($mydir); ++$z; ++$i; if (@$fn == $exclude[0] || @$fn == $exclude[1]) { --$z; --$i; } } $j = 0; $counter = 0; while (false !== ($fn = readdir($mydir)) && !$gal_sort) { $pngfind = substr($fn, -5, 5); if ($fn == "." || $fn == ".." || (!eregi(".gif", $pngfind) && !eregi(".png", $pngfind))) continue; ++$i; //total image counter ++$j; //per page image counter if ($j < ($row * $perrow) + 1) { ImageDisplay($dir, $fn); ++$counter; if ($counter == $row) { $counter = 0; $print = $print."
"; if ($comment && $commentdata) { echo $commentprefix.$commentdata; } if ($print_pages_on_top) { PageAmount($i, $dir, $row, $perrow); } echo $print; ?> "; PageAmount($i, $dir, $row, $perrow); } @closedir($mydir); if ($gal_footer) { ShowFooter($ver); } } else if (@$_GET['type'] == 'showimg') { // code for display image within frame die("not implemented - enable directlinking in config.php"); if ($gal_footer) { ShowFooter($ver); } } else { // MAIN SCREEN TURN ON ####hier startseite rein##### if ($footer) { ShowFooter($ver); } } function PageAmount ($i, $dir, $row, $perrow) { echo "Smilies in dieser Kategorie: $i
"; $pages1 = (int)(($i / $row) / $perrow); $pages2 = ($i / $row) / $perrow; $pgt = $pages2 - $pages1; if ($pgt) { $pagest = $pages1 + 1; } else { $pagest = $pages1; } $j = 1; $akt = $_GET["page"]; if (empty($akt)){ $page = 1; } else { $page = $akt;} $vor = $page+1; $zuruck = $page-1; echo "blättern: "; if ($page>1){ echo "<<";} else { echo "<<";} echo " | "; if ($page<$pagest){ echo ">>";} else { echo ">>";} echo "
Seite "; while ($j != $pagest && $i != 0 ) { if ($page==$j){ echo "".$j.","; ++$j;} else{ echo "".$j.", "; ++$j; } } if ($page==$j){ echo "".$j."
" ;} else { echo "".$j."
"; } } function ImageDisplay ($dir, $fn) { global $maindir, $print; include("config.php"); #$print = $print."
$fn "; if ($showdetails) { $tlabel = " bytes"; $image_size = filesize($dir."/".$fn); if ($bytetype == "k" || $bytetype == "K") { if ($mib) { $tlabel = " KiB"; $image_size = $image_size / 1024; } else { $tlabel = "kb"; $image_size = $image_size / 1000; } $image_size = round($image_size, 2); } if ($bytetype == "m" || $bytetype == "M") { if ($mib) { $tlabel = " MiB"; $image_size = $image_size / 1048576; } else { $tlabel = "mb"; $image_size = $image_size / 1000000; } $image_size = round($image_size, 2); } $image_size = number_format($image_size, 2, $decimal, $thousands); $image_size = $image_size.$tlabel; $ressize = getimagesize($dir."/".$fn); $res_w = $ressize[0]; $res_h = $ressize[1]; include("config.php"); $print = $print.$showdetails_html; } #$print = $print."
\n