All pastes #564417 Raw Edit

Untitled

public text v1 · immutable
·published 2007-06-13 16:13 UTC
rendered paste body
<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"><a href="http://badvista.fsf.org/" target="_blank"><img src="/bilder/BadVista.png"border="0"></a>
<object type="application/x-shockwave-flash" data="emff.swf" width="200" height="16">
 <param name="movie" value="emff.swf">
 <param name="quality" value="high">
<param name="FlashVars" value="src=musik/Silverstein1.mp3,musik/Silverstein3.mp3&amp;title=Smashed Into Piece &amp;autostart=no&amp;stoptext=Silverstein: 'Play' klicken!">
</object>
<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="/videos.html"><img src="/bilder/link.gif" alt="Link5" border="0">Linux-Videos</a>
</div>
<br>
<div class="oben" align="center">
<h2>Gallery</h2>
</div>
<div class="unten" align="center">
<p>Hier mal ein paar Bilder von mir:</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 ();
 
  while ($file = readdir ($verz))
  {
    if($file != "." && $file != ".." && $file != $filename)
    {
      array_push ($linkl, "$file"); 
    }
  }
  $anzahl = count($linkl);
  sort ($linkl);
 
  foreach($linkl as $key => $value)
  {
    if(!file_exists($des_src."/".$value))
    {
      // erstelle ein thumb
      mkthumb($value, $thumbx, $thumby, $folder_scr, $des_src);
    }
   echo "<a href=".$folder_scr."/".$value." target=_blank ><img src=".$des_src."/".$value." border=0 class=rahmen></a><br><b>".$value."</b><br><br>&nbsp;";
 
  }
  closedir($verz);
?>
</div>
<br>
<div class="divnormal" align="center">
<p style="color:#171717; background-color: grey;"><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>
<a href="http://www.ubuntu.com/" target="_blank"><img src="/bilder/ubuntu.png" alt="ubuntu" border="0"></a>
<a href="http://www.mozilla.com/firefox/" target="_blank"><img src="/bilder/firefox.png" alt="FireFox" border="0"></a>
<a href="/news.xml" target="_blank"><img src="/bilder/rss.png" alt="rss" border="0"></a>
</div>
</body>                          
</html>