Advertisement
oe4skw

webpage

May 13th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <?php
  2. $file=scandir($call."/qsl/");
  3. unset($file[0]);
  4. unset($file[1]);
  5. $items = count($file);
  6. $per_row = 2;
  7. $count =0;
  8. echo"<tr>";
  9. foreach ($file as $file)
  10. {
  11.  
  12. list($width, $height, $type, $attr) = getimagesize($file);
  13. if ($width<$height)
  14. {
  15. echo "<td><a href=\"".$call."/qsl/".$file."\"><img width =\"{$width}\" height=\"{$height}\" src=\"".$call."/qsl/".$file."\"></a><td>";
  16. }
  17. else
  18. {
  19. echo "<td><a href=\"".$call."/qsl/".$file."\"><img width =\"410\" height=\"208\" src=\"".$call."/qsl/".$file."\"></a><td>";
  20. }
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement