Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file=scandir($call."/qsl/");
- unset($file[0]);
- unset($file[1]);
- $items = count($file);
- $per_row = 2;
- $count =0;
- echo"<tr>";
- foreach ($file as $file)
- {
- list($width, $height, $type, $attr) = getimagesize($file);
- if ($width<$height)
- {
- echo "<td><a href=\"".$call."/qsl/".$file."\"><img width =\"{$width}\" height=\"{$height}\" src=\"".$call."/qsl/".$file."\"></a><td>";
- }
- else
- {
- echo "<td><a href=\"".$call."/qsl/".$file."\"><img width =\"410\" height=\"208\" src=\"".$call."/qsl/".$file."\"></a><td>";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement