Ignore:
Timestamp:
Mar 20, 2008, 1:35:36 AM (16 years ago)
Author:
rvelices
Message:
  • admin/notification_by_mail goes smarty - THE LAST ONE :-) :-)
  • get rid of user_list warnings
  • some code reorganisation in template class + explode modifier
  • minor template and language changes in search.tpl and cat_modify.tpl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r2253 r2286  
    441441
    442442  redirect(
    443     PHPWG_ROOT_PATH.
     443    get_root_url().
    444444    'admin.php'.
    445445    get_query_string_diff(array(), false)
     
    484484$template->assign(
    485485  array(
    486     'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=user_list',
     486    'U_HELP' => get_root_url().'popuphelp.php?page=user_list',
    487487
    488488    'F_ADD_ACTION' => $base_url,
    489489    'F_USERNAME' => @htmlentities($_GET['username']),
    490     'F_FILTER_ACTION' => PHPWG_ROOT_PATH.'admin.php'
     490    'F_FILTER_ACTION' => get_root_url().'admin.php'
    491491    ));
    492492
     
    525525if (isset($_POST['pref_submit']))
    526526{
    527 //  echo '<pre>'; print_r($_POST); echo '</pre>';
    528527  $template->assign(
    529528    array(
    530       'ADVISER_YES' => 'true' == (isset($_POST['adviser']) and $_POST['adviser']) ? 'checked="checked"' : '',
    531       'ADVISER_NO' => 'false' == (isset($_POST['adviser']) and $_POST['adviser']) ? 'checked="checked"' : '',
    532529      'NB_IMAGE_LINE' => $_POST['nb_image_line'],
    533530      'NB_LINE_PAGE' => $_POST['nb_line_page'],
     
    535532      'MAXHEIGHT' => $_POST['maxheight'],
    536533      'RECENT_PERIOD' => $_POST['recent_period'],
    537       'EXPAND_YES' => 'true' == $_POST['expand'] ? 'checked="checked"' : '',
    538       'EXPAND_NO' => 'false' == $_POST['expand'] ? 'checked="checked"' : '',
    539       'SHOW_NB_COMMENTS_YES' => 'true' == $_POST['show_nb_comments'] ? 'checked="checked"' : '',
    540       'SHOW_NB_COMMENTS_NO' => 'false' == $_POST['show_nb_comments'] ? 'checked="checked"' : '',
    541       'SHOW_NB_HITS_YES' => 'true' == $_POST['show_nb_hits'] ? 'checked="checked"' : '',
    542       'SHOW_NB_HITS_NO' => 'false' == $_POST['show_nb_hits'] ? 'checked="checked"' : '',
    543       'ENABLED_HIGH_YES' => 'true' == $_POST['enabled_high'] ? 'checked="checked"' : '',
    544       'ENABLED_HIGH_NO' => 'false' == $_POST['enabled_high'] ? 'checked="checked"' : '',
    545      
    546       'STATUS_ACTION_SET' => 'set' == $_POST['status_action'] ? 'checked="checked"' : '',
    547       'LEVEL_ACTION_SET' => 'set' == $_POST['level_action'] ? 'checked="checked"' : '',
    548       'NB_IMAGE_LINE_ACTION_SET' => 'set' == $_POST['nb_image_line_action'] ? 'checked="checked"' : '',
    549       'NB_LINE_PAGE_ACTION_SET' => 'set' == $_POST['nb_line_page_action'] ? 'checked="checked"' : '',
    550       'TEMPLATE_ACTION_SET' => 'set' == $_POST['template_action'] ? 'checked="checked"' : '',
    551       'LANGUAGE_ACTION_SET' => 'set' == $_POST['language_action'] ? 'checked="checked"' : '',
    552       'RECENT_PERIOD_ACTION_SET' => 'set' == $_POST['recent_period_action'] ? 'checked="checked"' : '',
    553       'MAXWIDTH_ACTION_SET' => 'set' == $_POST['maxwidth_action'] ? 'checked="checked"' : '',
    554       'MAXHEIGHT_ACTION_SET' => 'set' == $_POST['maxheight_action'] ? 'checked="checked"' : '',
    555534      ));
    556535}
     
    646625}
    647626
     627// allow plugins to fill template var plugin_user_list_column_titles and
     628// plugin_columns/plugin_actions for each user in the list
    648629$visible_user_list = trigger_event('loc_visible_user_list', $visible_user_list);
    649630
    650 foreach ($visible_user_list as $num => $local_user)
     631foreach ($visible_user_list as $local_user)
    651632{
    652633  $groups_string = preg_replace(
     
    697678      'GROUPS' => $groups_string,
    698679      'PROPERTIES' => implode( ', ', $properties),
     680      'plugin_columns' => isset($local_user['plugin_columns']) ? $local_user['plugin_columns'] : array(),
     681      'plugin_actions' => isset($local_user['plugin_actions']) ? $local_user['plugin_actions'] : array(),
    699682      )
    700683    );
    701   trigger_action('loc_append_user_list', $local_user);
    702684}
    703685
Note: See TracChangeset for help on using the changeset viewer.