Ignore:
Timestamp:
02/19/14 23:32:26 (5 years ago)
Author:
ddtddt
Message:

[extensions] - see_photos_by_user - new function menu / show

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_photos_by_user/admin.php

    r27422 r27428  
    1818        'SPBU2' => $conf['see_photos_by_user_limit'], 
    1919        'SPBU3' => $conf['see_photos_by_user_order'], 
     20        'SPBU4' => $conf['see_photos_by_user_show'], 
    2021    ) 
    2122  ); 
     
    3738$template->assign('spbu', $SPBU3); 
    3839$template->assign('spbuT', $SPBU3T);  
    39   
     40 
     41$SPBU3T2 = array( 
     42    l10n('link Specials menu')." - ".l10n('select users box'), 
     43    l10n('bloc menu users')." - ".l10n('select users box'), 
     44    l10n('link Specials menu')." - ".l10n('select users box')." - ".l10n('bloc menu users'), 
     45        l10n('bloc menu users'), 
     46  ); 
     47   
     48$SPBU32 = array( 
     49    '1', 
     50    '2', 
     51    '3', 
     52        '4', 
     53  ); 
     54 
     55$template->assign('spbu2', $SPBU32); 
     56$template->assign('spbuT2', $SPBU3T2);  
    4057 
    4158if (isset($_POST['submitspbu'])) 
     
    5067{array_push( $page['errors'], l10n('Minimal number photos for show users is incorrect !'));} 
    5168conf_update_param('see_photos_by_user_order', $_POST['insspbu3']); 
     69conf_update_param('see_photos_by_user_show', $_POST['insspbu4']); 
    5270 
    5371if (!$page['errors']) 
     
    5977          'SPBU2' => stripslashes($_POST['insspbu2']), 
    6078          'SPBU3' => stripslashes($_POST['insspbu3']), 
     79          'SPBU4' => stripslashes($_POST['insspbu4']), 
    6180      ) 
    6281    ); 
Note: See TracChangeset for help on using the changeset viewer.