Beispiel #1
0
                        $limitType = '';
                    }
                }
            }
        }
    }
}
if (isset($_GET["collections"]) || isset($_GET["albums"]) || isset($_GET["pictures"]) || isset($_GET["comments"]) || isset($_GET["collection_id"]) || isset($_GET["album_id"]) || isset($_GET["picture_id"]) || isset($_GET["comment_id"])) {
    if (isset($_GET["collection_id"])) {
        $collections = array(get_collection_by_id($_GET["collection_id"]));
    } else {
        if (isset($_GET["collections"])) {
            $collections = get_collections("mod", "DESC");
        } else {
            if (isset($_GET["albums"]) || isset($_GET["album_id"]) || isset($_GET["pictures"]) || isset($_GET["picture_id"]) || isset($_GET["comments"]) || isset($_GET["comment_id"])) {
                $collections = get_collection_ids("mod", "DESC");
            } else {
                $collections = array();
            }
        }
    }
    // $total counts the number of items that are being limited that have been returned.
    // When total equals the limit, we're done.
    $total = 0;
    foreach ($collections as $collection) {
        // A collection's tag is only shown if all collections are being shown
        // or if this specific collection was specified by collection_id
        if (isset($_GET["collections"]) && $_GET["collections"] == 1 || isset($_GET["collection_id"]) && $_GET["collection_id"] == $collection["id"]) {
            if ($limitType == 'collections') {
                if ($total == $limit) {
                    break;
Beispiel #2
0
                        $limitType = '';
                    }
                }
            }
        }
    }
}
if (isset($_GET['collections']) || isset($_GET['albums']) || isset($_GET['pictures']) || isset($_GET['comments']) || isset($_GET['collection_id']) || isset($_GET['album_id']) || isset($_GET['picture_id']) || isset($_GET['comment_id'])) {
    if (isset($_GET['collection_id'])) {
        $collections = array(get_collection_by_id($_GET['collection_id']));
    } else {
        if (isset($_GET['collections'])) {
            $collections = get_collections('mod', 'DESC');
        } else {
            if (isset($_GET['albums']) || isset($_GET['album_id']) || isset($_GET['pictures']) || isset($_GET['picture_id']) || isset($_GET['comments']) || isset($_GET['comment_id'])) {
                $collections = get_collection_ids('mod', 'DESC');
            } else {
                $collections = array();
            }
        }
    }
    // $total counts the number of items that are being limited that have been returned.
    // When total equals the limit, we're done.
    $total = 0;
    foreach ($collections as $collection) {
        // A collection's tag is only shown if all collections are being shown
        // or if this specific collection was specified by collection_id
        if (isset($_GET['collections']) && $_GET['collections'] == 1 || isset($_GET['collection_id']) && $_GET['collection_id'] == $collection['id']) {
            if ($limitType == 'collections') {
                if ($total == $limit) {
                    break;