Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/users_actions.php

    r2436 r2566  
    4242{ 
    4343     $action = $_POST['action']; 
    44       
     44 
    4545     if (isset($_POST['redir']) && strpos($_POST['redir'],'://') === false) 
    4646     { 
     
    5656          '&nb='.$_POST['nb']; 
    5757     } 
    58       
     58 
    5959     if (empty($users)) { 
    6060          $core->error->add(__('No blog or user given.')); 
    6161     } 
    62       
     62 
    6363     # --BEHAVIOR-- adminUsersActions 
    6464     $core->callBehavior('adminUsersActions',$core,$users,$blogs,$action,$redir); 
    65       
     65 
    6666     # Delete users 
    6767     if ($action == 'deleteuser' && !empty($users)) 
     
    7474                         throw new Exception(__('You cannot delete yourself.')); 
    7575                    } 
    76                      
     76 
    7777                    # --BEHAVIOR-- adminBeforeUserDelete 
    7878                    $core->callBehavior('adminBeforeUserDelete',$u); 
    79                      
     79 
    8080                    $core->delUser($u); 
    8181               } 
     
    9090          } 
    9191     } 
    92       
     92 
    9393     # Update users perms 
    9494     if ($action == 'updateperm' && !empty($users) && !empty($blogs)) 
     
    9999                    throw new Exception(__('Password verification failed')); 
    100100               } 
    101                 
     101 
    102102               foreach ($users as $u) 
    103103               { 
     
    105105                    { 
    106106                         $set_perms = array(); 
    107                           
     107 
    108108                         if (!empty($_POST['perm'][$b])) 
    109109                         { 
     
    115115                              } 
    116116                         } 
    117                           
     117 
    118118                         $core->setUserBlogPermissions($u,$b,$set_perms,true); 
    119119                    } 
     
    193193          $nb_blog = $rs->count(); 
    194194     } catch (Exception $e) { } 
    195       
     195 
    196196     foreach ($users as $u) { 
    197197          $user_list[] = '<a href="user.php?id='.$u.'">'.$u.'</a>'; 
    198198     } 
    199       
     199 
    200200     echo 
    201201     '<p>'.sprintf( 
     
    203203          implode(', ',$user_list) 
    204204     ).'</p>'; 
    205       
     205 
    206206     if ($nb_blog == 0) 
    207207     { 
     
    219219          '<th class="nowrap">'.__('Status').'</th>'. 
    220220          '</tr>'; 
    221            
     221 
    222222          while ($rs->fetch()) 
    223223          { 
     
    225225               $txt_status = $core->getBlogStatus($rs->blog_status); 
    226226               $img_status = sprintf('<img src="images/%1$s.png" alt="%2$s" title="%2$s" />',$img_status,$txt_status); 
    227                 
     227 
    228228               echo 
    229229               '<tr class="line">'. 
     
    236236               '</tr>'; 
    237237          } 
    238            
     238 
    239239          echo 
    240240          '</table></div>'. 
     
    252252     $user_perm = array(); 
    253253     if (count($users) == 1) { 
    254                $user_perm = $core->getUserPermissions($users[0]);      
    255      } 
    256       
     254               $user_perm = $core->getUserPermissions($users[0]); 
     255     } 
     256 
    257257     foreach ($users as $u) { 
    258258          $user_list[] = '<a href="user.php?id='.$u.'">'.$u.'</a>'; 
    259259     } 
    260       
    261      echo  
     260 
     261     echo 
    262262     '<p>'.sprintf( 
    263263          __('You are about to change permissions on the following blogs for users %s.'), 
     
    265265     ).'</p>'. 
    266266     '<form id="permissions-form" action="users_actions.php" method="post">'; 
    267       
     267 
    268268     foreach ($blogs as $b) 
    269269     { 
     
    274274          { 
    275275               $checked = false; 
    276                 
     276 
    277277               if (count($users) == 1) { 
    278278                    $checked = isset($user_perm[$b]['p'][$perm_id]) && $user_perm[$b]['p'][$perm_id]; 
     
    281281                    unset ($unknown_perms[$b]['p'][$perm_id]); 
    282282               } 
    283                 
     283 
    284284               echo 
    285285               '<p><label for="perm'.html::escapeHTML($b).html::escapeHTML($perm_id).'" class="classic">'. 
     
    289289          } 
    290290          if (isset($unknown_perms[$b])) { 
    291            
     291 
    292292               foreach ($unknown_perms[$b]['p'] as $perm_id => $v) { 
    293293                    $checked = isset($user_perm[$b]['p'][$perm_id]) && $user_perm[$b]['p'][$perm_id]; 
     
    302302          } 
    303303     } 
    304       
     304 
    305305     echo 
    306306     '<div class="fieldset">'. 
     
    318318dcPage::helpBlock('core_users'); 
    319319dcPage::close(); 
    320 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map