Ignore:
Timestamp:
01/12/14 00:46:45 (6 years ago)
Author:
ddtddt
Message:

[extensions] - see_my_photos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_my_photos/pagessmp.php

    r26634 r26641  
    11<?php 
    2  
    32load_language('plugin.lang', SMP_PATH); 
    43 
    54global $page, $conf, $user; 
    6  
    75        $forbidden = get_sql_condition_FandF( 
    86              array( 'visible_images' => 'id' ), 
    97              'AND' 
    108          ); 
    11  
    129$page['section'] = 'see_my_photos'; 
    1310 
    14     $query = ' 
     11 $query = ' 
    1512SELECT DISTINCT(id) 
    16   FROM '.IMAGES_TABLE.' 
    17   INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 
    18   WHERE added_by = \''.$user['id'].'\' 
    19     '.$forbidden.' 
    20     '.$conf['order_by'].' 
     13 FROM '.IMAGES_TABLE.' 
     14 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 
     15 WHERE added_by = \''.$user['id'].'\' 
     16 '.$forbidden.' 
     17 '.$conf['order_by'].' 
    2118;'; 
    22  
    23     $page = array_merge( 
    24       $page, 
    25       array( 
    26         'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'.l10n('See photos by author').'</a>', 
    27         'items' => array_from_query($query, 'id'), 
    28         ) 
    29       ); 
    30  
    31  
     19 $page = array_merge 
     20 ( 
     21 $page, 
     22  array 
     23        ( 
     24  'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'.l10n('See photos by author').'</a>', 
     25  'items' => array_from_query($query, 'id'), 
     26  ) 
     27 ); 
    3228?> 
Note: See TracChangeset for help on using the changeset viewer.