Changeset 27486


Ignore:
Timestamp:
Feb 24, 2014, 9:59:26 PM (7 years ago)
Author:
ddtddt
Message:

[extensions] - see_my_photos - change permission - link

Location:
extensions/see_my_photos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_my_photos/main.inc.php

    r26651 r27486  
    2727  FROM '.IMAGES_TABLE.'
    2828  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'].'\'
    3040;';
    3141  $result = pwg_query($query);
  • extensions/see_my_photos/pagessmp.php

    r26641 r27486  
    88          );
    99$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>';
    1011
    11  $query = '
     12$query = '
    1213SELECT DISTINCT(id)
    1314 FROM '.IMAGES_TABLE.'
    1415 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'].'\'
    1727 '.$conf['order_by'].'
    1828;';
Note: See TracChangeset for help on using the changeset viewer.