bei mir zeigt es leider nur die photos an zu denen auch jeder gast zutritt hat
all die photos in den kategorein wo nur angemeldete user zutritt haben werden nicht angezeigt
wie kann man das ändern ?!
aber da sind ziemlich komische fetzen in dem code
<?php
/**************************************************************************
* *
* 4images - A Web Based Image Gallery Management System *
* ---------------------------------------------------------------- *
* *
* File: random.php *
* Copyright: (C) 2002 Jan Sorgalla *
* Email: jan@4homepages.de *
* Web: http://www.4homepages.de *
* Scriptversion: 1.0 for 4images 1.6.1 *
* *
* Never released without support from: Nicky (http://www.nicky.net) *
* *
**************************************************************************
* *
* Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- *
* bedingungen (http://www.4homepages.de/4images/lizenz.php) fur *
* weitere Informationen. *
* --------------------------------------------------------------- *
* This script is NOT freeware! Please read the Copyright Notice *
* (http://www.4homepages.de/4images/lizenz_e.php) for further *
* information. *
* *
*************************************************************************/
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie'
define('ROOT_PATH', './4images/'); // change this to your 4images dir.
include(ROOT_PATH.'global.php');
$new_cutoff = time() - 60 * 60 * 24 * $config['new_cutoff'];
$sql = "SELECT IF(a.image_date >= $new_cutoff,RAND()+1,1) as random_no, a.image_id, a.cat_id, a.image_name, a.image_active, a.image_media_file, a.image_thumb_file, a.image_comments, a.user_id
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
WHERE a.image_active=1
AND a.cat_id = b.cat_id
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."
ORDER BY random_no DESC, RAND()
LIMIT 1";
$row = $site_db->query_firstrow($sql);
$image_extention = get_file_extension($row['image_media_file']);
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];
if (empty($row['image_thumb_file'])) {
$thumb_src = ICON_PATH."/".$image_extention.".gif";
}
else {
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
}
if (!check_thumb_type($image_extention)) {
$full_src = ICON_PATH."/".$image_extention.".gif";
}
else {
$full_src = (is_remote($row['image_media_file'])) ? $row['image_media_file'] : ROOT_PATH.MEDIA_DIR."/".$cat_id."/".$row['image_media_file'];
}
$full_src_link = ROOT_PATH."details.php?image_id=$image_id";
?>