Changeset 1677 for trunk/random.php
- Timestamp:
- Dec 21, 2006, 10:38:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/random.php
r1503 r1677 46 46 FROM '.IMAGES_TABLE.' 47 47 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 48 '.( 49 $user['forbidden_categories'] != '' 50 ? 'WHERE category_id NOT IN ('.$user['forbidden_categories'].')' 51 : '' 52 ).' 48 '.get_sql_condition_FandF 49 ( 50 array 51 ( 52 'forbidden_categories' => 'category_id', 53 'visible_categories' => 'category_id', 54 'visible_images' => 'id' 55 ), 56 'WHERE' 57 ).' 53 58 ORDER BY RAND(NOW()) 54 59 LIMIT 0, '.$conf['top_number'].'
Note: See TracChangeset
for help on using the changeset viewer.