fabi0

Untitled

Sep 30th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. if (isset($_SESSION['_userID'])) {
  4.     $images = glob("upload" . DIRECTORY_SEPARATOR . $_SESSION['_userID'] . DIRECTORY_SEPARATOR . "*");
  5.     if ($images) {
  6.         foreach ($images as $img) {
  7.             echo "<a href='$img' target='_blank' title=''><img src='$img' /></a>";
  8.         }
  9.     } else {
  10.         echo 'Все още нямате качени снимки';
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment