rendered paste body<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!--
####################################################
####################################################
#####################*:.....:+######################
####################:.:*****:..*####################
###################..*########:.:###################
##################:.*##########:.+##################
#################*.+############:.*#################
#################:.##############.:#################
#################::##############+.*################
#################.+########+*#####.+################
#################.*#.:####:::.####.:################
#################.#:**:##+*##*.###.:################
#################.##**:##:#*+#*+##:.################
#################.#:..*##+*...#:##:.################
#################.#....:+:+...*:##:.################
#################.#:..:+:.....#:##:.################
#################.#*.*#####*.:####:.################
#################.#.*#############+.################
#################.#*#########+#####.*###############
#################.#.*#####*+.:**###:*###############
#################.#..+*++.:#*:.####*.###############
#################.#.#*:.+#*::*:*####::##############
################*:#:#:**+::*###.*###*.*#############
################:*+:##+++######+:####:.#############
###############*:#.#############::####.:############
###############:*+:#############*.####+.*###########
##############:**.###############:+####::###########
#############*.#.+###############::#####.:##########
############*.#*.*###############..#+:###.+#########
############:*#*.+###############*.+#::##*.*########
############.##*.*################*.*#.*##:.########
###########:+##.+##################:.#*:###.*#######
###########.##:.###################*.+#.*##+:#######
##########+:#*.+####################:.#::###.#######
##########.##..#####################+.#*.###:+######
#########:+#*.:#####################*.*#.###*.######
########*.##*.+#####################*.+#.*###.######
########.**++.*######################.:#.+###:+#####
#######*.#++:.#######################..#.+###+:#####
#######::#*:+.#######################.:#.*###*:#####
#######.+#*.#.#######################.*+.####+:#####
#######.+##.+#########################+...*##::#####
#######::*#+.+#######################:+*#*+##::#####
#######*:+:*+.*####################*:.######*.*#####
###########:*+.*###################.:.######.:######
######*:####:*:.##################*.#::####*:#######
######.:#####.#::#################+:##.:**+.*#:*####
##++:..*#####*:#::################+:##*...:*##.*####
#.::::*#######:+#+.+##############+:##########.:####
*.*############.*#+.*#############+.##########:.+###
*.+############*.##::#############+.###########..:##
#.:#############+:#*:############++.############+..*
#:.##############.+############*.:+.##############+.
#:.*#############*.**:*##**#**:.:#+.##############+.
#..###############::#.........:###:.###########*+..*
*.*###############*.*#*:::++*#####..#########*+..:*#
+.*################.:#############.:########:..:*###
#:..:+############*.:##**+++++++##.:######*..:######
##*+:....:*#######:.+*...........*..*####+..+#######
######*+:....+*#*:..##*##########*...+*+...*########
##########*:.......*##############:.......*#########
#############*:..:#################+....:###########
####################################################
############Hope you have fun here :]###############
####################################################
// -->
<head>
<title>Sleepy�s Gallery</title>
<meta name="description" content="Sleepy�s Gallery">
<meta name="author" content="Echtor2oo3.de ">
<meta name="robots" content="noindex|nofollow">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<!-- ... andere Angaben im Dateikopf ... -->
<link rel="stylesheet" type="text/css" href="/style.css">
<link rel="shortcut icon" type="image/x-icon" href="bilder/url.ico">
</head>
<body>
<div class="banner" align="center">
<img src="/bilder/banner.png" alt="Banner" border="0">
<br>
</div>
<div class="menu"align="center">
<a href="/index.php"><img src="/bilder/link.gif" alt="Link2" border="0">Home</a>
<a href="/gallery.php"><img src="/bilder/link.gif" alt="Link2" border="0">Gallery</a>
<a href="/inhalt.php"><img src="/bilder/link.gif" alt="Link4" border="0">Filebase</a>
<a href="/about.html"><img src="/bilder/link.gif" alt="Link4" border="0">About</a>
<a href="http://waky.free-cheats.org/sphp1/index.php"><img src="/bilder/link.gif" alt="Link5"
border="0">Blog</a>
</div>
<div class="oben" align="center">
<h2>Gallery</h2>
</div>
<div class="unten" align="center">
<p>Hier mal ein paar Bilder. Draufklicken und sie werden groesser. <br>
Unten gehts weiter mit Seite 2.</p>
<?
$folder_scr = "images";
$des_src = "thumbs";
$thumbx = "100";
$thumby = "100";
function mkthumb($img_src,
$img_width,
$img_height,
$folder_scr,
$des_src)
{
$image = imagecreatefromjpeg($folder_scr."/".$img_src);
list($src_width, $src_height) = getimagesize($folder_scr."/".$img_src);
if($src_width >= $src_height)
{
$new_image_width = $img_width;
$new_image_height = $src_height * $img_width / $src_width;
}
if($src_width < $src_height)
{
$new_image_height = $img_width;
$new_image_width = $src_width * $img_height / $src_height;
}
$new_image = imagecreatetruecolor($new_image_width, $new_image_height);
imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_image_width,$new_image_height, $src_width, $src_height);
imagejpeg($new_image, $des_src."/".$img_src, 100);
}
$filename = $_SERVER['index.php'];
$verz=opendir($folder_scr);
$linkl = array ();
if(!$_GET['page'])$page=1;else $page=$_GET['page'];
$anz=0;
$anz_max=2*$page;
while ($file = readdir ($verz))
{
if($file != "." && $file != ".." && $file != $filename)
{
if($anz<$anz_max) array_push ($linkl, "$file");
$anz++;
}
}
if($page!=1) {
$linkl = array_slice($linkl,2*($page-1));
}
$anzahl = count($linkl);
$x = 0;
$y = 0;
echo "<table border=0 align=center><tr>";
foreach($linkl as $key => $value)
{
if($y==2) break;
if(!file_exists($des_src."/".$value))
{
// erstelle ein thumb
mkthumb($value, $thumbx, $thumby, $folder_scr, $des_src);
}
if($x==2) {
echo "</tr><tr>";
$x=0;
}
echo "<td><a href=".$folder_scr."/".$value." target=_blank ><img src=".$des_src."/".$value." border=0 class=rahmen></a><br><b>".substr($value,0,strlen($value)-4)."</b> </td>";
$x++;
$y++;
}
if($x!=0)echo "</tr>";
echo "</table>";
closedir($verz);
for($i=1;$i<=ceil($anz/2);$i++)echo "<a href=".$PHP_SELF."?page=$i>$i</a> ";
?>
</div>
<div class="copy" align="center">
<p style="color:#c9c9c9; "><img src="/bilder/copyleft.gif" alt="copyleft" border="0">Copyleft 2006 <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" target="_blank">Lizenz</p>
</div>
</body>
</html>