Changeset 27486 for extensions
- Timestamp:
- Feb 24, 2014, 9:59:26 PM (11 years ago)
- Location:
- extensions/see_my_photos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/see_my_photos/main.inc.php
r26651 r27486 27 27 FROM '.IMAGES_TABLE.' 28 28 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 29 WHERE added_by = \''.$user['id'].'\' 29 '.get_sql_condition_FandF 30 ( 31 array 32 ( 33 'forbidden_categories' => 'category_id', 34 'visible_categories' => 'category_id', 35 'visible_images' => 'id' 36 ), 37 'WHERE' 38 ).' 39 AND added_by = \''.$user['id'].'\' 30 40 ;'; 31 41 $result = pwg_query($query); -
extensions/see_my_photos/pagessmp.php
r26641 r27486 8 8 ); 9 9 $page['section'] = 'see_my_photos'; 10 $page['section_title'] = '<a href="'.get_absolute_root_url().'">'.l10n('Home').'</a>'.$conf['level_separator']. '<a href="'.get_absolute_root_url().'index.php?/see_my_photos">'.l10n('My photos').'</a>'; 10 11 11 12 $query = ' 12 13 SELECT DISTINCT(id) 13 14 FROM '.IMAGES_TABLE.' 14 15 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 15 WHERE added_by = \''.$user['id'].'\' 16 '.$forbidden.' 16 '.get_sql_condition_FandF 17 ( 18 array 19 ( 20 'forbidden_categories' => 'category_id', 21 'visible_categories' => 'category_id', 22 'visible_images' => 'id' 23 ), 24 'WHERE' 25 ).' 26 AND added_by = \''.$user['id'].'\' 17 27 '.$conf['order_by'].' 18 28 ;';
Note: See TracChangeset
for help on using the changeset viewer.