Beispiel #1
0
     }
     $xml .= '>';
 }
 if (isset($_GET["pictures"])) {
     $pictures = get_pictures($album["album_id"], "mod", "DESC");
 } else {
     if (isset($_GET["picture_id"])) {
         $pic = get_picture_by_id($_GET["picture_id"], $album["album_id"]);
         if ($pic) {
             $pictures = array($pic);
         } else {
             $pictures = array();
         }
     } else {
         if (isset($_GET["comments"]) || isset($_GET["comment_id"])) {
             $pictures = get_picture_ids($album["album_id"], "mod", "DESC");
         } else {
             $pictures = array();
         }
     }
 }
 foreach ($pictures as $picture) {
     if (isset($_GET["album_id"]) && $_GET["album_id"] == $picture["parent_album"] || !isset($_GET["album_id"])) {
         if (isset($_GET["pictures"]) && $_GET["pictures"] == 1 || isset($_GET["picture_id"]) && $_GET["picture_id"] == $picture["id"]) {
             if ($limitType == 'pictures') {
                 if ($total == $limit) {
                     break;
                 }
                 $total++;
             }
             $picture["sm_thumb_path"] = 'plog-thumb.php?id=' . $picture["id"];
Beispiel #2
0
     }
     $xml .= '>';
 }
 if (isset($_GET['pictures'])) {
     $pictures = get_pictures($album['album_id'], 'mod', 'DESC');
 } else {
     if (isset($_GET['picture_id'])) {
         $pic = get_picture_by_id($_GET['picture_id'], $album['album_id']);
         if ($pic) {
             $pictures = array($pic);
         } else {
             $pictures = array();
         }
     } else {
         if (isset($_GET['comments']) || isset($_GET['comment_id'])) {
             $pictures = get_picture_ids($album['album_id'], 'mod', 'DESC');
         } else {
             $pictures = array();
         }
     }
 }
 foreach ($pictures as $picture) {
     if (isset($_GET['album_id']) && $_GET['album_id'] == $picture['parent_album'] || !isset($_GET['album_id'])) {
         if (isset($_GET['pictures']) && $_GET['pictures'] == 1 || isset($_GET['picture_id']) && $_GET['picture_id'] == $picture['id']) {
             if ($limitType == 'pictures') {
                 if ($total == $limit) {
                     break;
                 }
                 $total++;
             }
             $picture['sm_thumb_path'] = 'plog-thumb.php?id=' . $picture['id'];