Exemplo n.º 1
0
function nyxInFormatTitle($gallery_id, $image)
{
    global $nyxIn;
    global $nyxInFormatTitles;
    empty($nyxInFormatTitles);
    $nyxIn_Query_SelectMetadataFrom_galleries = $nyxIn['db']->query("SELECT id, parent_id, name FROM " . $nyxIn['db_prefix'] . "galleries WHERE id='{$gallery_id}' AND deleted_status='0'") or die($nyxIn['db']->error);
    if ($nyxIn_Query_SelectMetadataFrom_galleries->num_rows == 0) {
        if ($gallery_id == 0) {
            $nyxInFormatTitles[] = "<span class='ajaxed' onClick='nyxIn_Ajax_Views(\"g\", 0, \"\")'>" . "Home" . "</span>";
        }
        $nyxInFormatTitles = array_reverse($nyxInFormatTitles);
        $nyxInFormatTitlesImploded = implode($nyxInFormatTitles, " &#x2756; ");
        if ($image == 1) {
            $nyxInFormatTitlesImploded .= " &#x2756; image";
        }
        echo "<h3>" . $nyxInFormatTitlesImploded;
        echo "</h3>";
        empty($nyxInFormatTitles);
    } else {
        while ($row = $nyxIn_Query_SelectMetadataFrom_galleries->fetch_object()) {
            $nyxInFormatTitles[] = "<span class='ajaxed' onClick='nyxIn_Ajax_Views(\"g\", {$row->id}, nyxIn_gallery_password)'>" . $row->name . "</span>";
            nyxInFormatTitle($row->parent_id, $image);
        }
    }
}
Exemplo n.º 2
0
if ($nyxIn_Var_galleries_locked_status == 1) {
    if (isset($_POST['password'])) {
        $nyxIn_Frm_gallery_password = $_POST['password'];
    } else {
        $nyxIn_Frm_gallery_password = 0;
    }
    if (nyxInVerifyPassword($nyxIn_Var_images_gallery_id, $nyxIn_Frm_gallery_password) == true) {
        $nyxIn_Var_has_access_to_gallery = 1;
    } else {
        $nyxIn_Var_has_access_to_gallery = 0;
    }
} else {
    $nyxIn_Var_has_access_to_gallery = 1;
}
if ($nyxIn_Var_has_access_to_gallery == 1) {
    ?>
		<p>Quick Navigate: <?php 
    nyxInGetGalleriesSelectBox("nyxIn-gallery_quickswitch", 0, 0, 1, $nyxIn_Var_images_gallery_id, 0);
    ?>
</p>
		<?php 
    nyxInFormatTitle($nyxIn_Var_images_gallery_id, 1);
    echo "<img src='" . $nyxIn['dir'] . "/uploads/{$nyxIn_Var_images_safename}' width='100%'>";
    echo "Views: {$nyxIn_Var_images_views}";
    echo "<br>";
    echo "Filesize: {$nyxIn_Var_images_filename} bytes";
    if (!$nyxIn_Var_images_description == "") {
        echo "<p class='galleryDescription'>{$nyxIn_Var_images_description}</p>";
    }
} else {
}
Exemplo n.º 3
0
//
$nyxIn_Frm_ajaxed_id = $_POST['id'];
?>
<p>Quick Navigate: <?php 
nyxInGetGalleriesSelectBox("nyxIn-gallery_quickswitch", 0, 0, 1, $nyxIn_Frm_ajaxed_id, 0);
?>
</p>
<?php 
if (!$nyxIn_Frm_ajaxed_id == 0) {
    $nyxIn_Query_SelectMetadataFrom_galleries = $nyxIn['db']->query("SELECT * FROM " . $nyxIn['db_prefix'] . "galleries WHERE id=" . $nyxIn_Frm_ajaxed_id . " AND deleted_status='0'") or die($nyxIn['db']->error);
    $nyxIn_Obj_galleries = $nyxIn_Query_SelectMetadataFrom_galleries->fetch_object();
    $nyxIn_Var_galleries_id = $nyxIn_Obj_galleries->id;
    $nyxIn_Var_galleries_description = $nyxIn_Obj_galleries->description;
    $nyxIn_Var_galleries_locked_status = $nyxIn_Obj_galleries->locked_status;
    $nyxIn_Var_galleries_password = $nyxIn_Obj_galleries->password;
    nyxInFormatTitle($nyxIn_Var_galleries_id, 0);
    if ($nyxIn_Var_galleries_locked_status == 1) {
        if (isset($_POST['password'])) {
            $nyxIn_Frm_gallery_password = $_POST['password'];
        } else {
            $nyxIn_Frm_gallery_password = 0;
        }
        if (nyxInVerifyPassword($nyxIn_Var_galleries_id, $nyxIn_Frm_gallery_password) == true) {
            $nyxIn_Var_has_access_to_gallery = 1;
        } else {
            $nyxIn_Var_has_access_to_gallery = 0;
        }
    } else {
        $nyxIn_Var_has_access_to_gallery = 1;
    }
    if (!$nyxIn_Var_galleries_description == "") {