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/user.php

    r2342 r2566  
    4545     try { 
    4646          $rs = $core->getUser($_REQUEST['id']); 
    47            
     47 
    4848          $user_id = $rs->user_id; 
    4949          $user_super = $rs->user_super; 
     
    5858          $user_tz = $rs->user_tz; 
    5959          $user_post_status = $rs->user_post_status; 
    60            
     60 
    6161          $user_options = array_merge($user_options,$rs->options()); 
    62            
     62 
    6363          $page_title = $user_id; 
    6464     } catch (Exception $e) { 
     
    7575               throw new Exception(__('Password verification failed')); 
    7676          } 
    77            
     77 
    7878          $cur = $core->con->openCursor($core->prefix.'user'); 
    79            
     79 
    8080          $cur->user_id = $_POST['user_id']; 
    8181          $cur->user_super = $user_super = !empty($_POST['user_super']) ? 1 : 0; 
     
    8888          $cur->user_tz = $user_tz = $_POST['user_tz']; 
    8989          $cur->user_post_status = $user_post_status = $_POST['user_post_status']; 
    90            
     90 
    9191          if ($cur->user_id == $core->auth->userID() && $core->auth->isSuperAdmin()) { 
    9292               // force super_user to true if current user 
     
    9696               $cur->user_change_pwd = !empty($_POST['user_change_pwd']) ? 1 : 0; 
    9797          } 
    98            
     98 
    9999          if (!empty($_POST['new_pwd'])) { 
    100100               if ($_POST['new_pwd'] != $_POST['new_pwd_c']) { 
     
    104104               } 
    105105          } 
    106            
     106 
    107107          $user_options['post_format'] = $_POST['user_post_format']; 
    108108          $user_options['edit_size'] = (integer) $_POST['user_edit_size']; 
    109            
     109 
    110110          if ($user_options['edit_size'] < 1) { 
    111111               $user_options['edit_size'] = 10; 
    112112          } 
    113            
     113 
    114114          $cur->user_options = new ArrayObject($user_options); 
    115            
     115 
    116116          # Udate user 
    117117          if ($user_id) 
     
    119119               # --BEHAVIOR-- adminBeforeUserUpdate 
    120120               $core->callBehavior('adminBeforeUserUpdate',$cur,$user_id); 
    121                 
     121 
    122122               $new_id = $core->updUser($user_id,$cur); 
    123                 
     123 
    124124               # --BEHAVIOR-- adminAfterUserUpdate 
    125125               $core->callBehavior('adminAfterUserUpdate',$cur,$new_id); 
    126                 
     126 
    127127               if ($user_id == $core->auth->userID() && 
    128128               $user_id != $new_id) { 
    129129                    $core->session->destroy(); 
    130130               } 
    131                 
     131 
    132132               dcPage::addSuccessNotice(__('User has been successfully updated.')); 
    133133               http::redirect('user.php?id='.$new_id); 
     
    139139                    throw new Exception(sprintf(__('User "%s" already exists.'),html::escapeHTML($cur->user_id))); 
    140140               } 
    141                 
     141 
    142142               # --BEHAVIOR-- adminBeforeUserCreate 
    143143               $core->callBehavior('adminBeforeUserCreate',$cur); 
    144                 
     144 
    145145               $new_id = $core->addUser($cur); 
    146                 
     146 
    147147               # --BEHAVIOR-- adminAfterUserCreate 
    148148               $core->callBehavior('adminAfterUserCreate',$cur,$new_id); 
    149                 
     149 
    150150               dcPage::addSuccessNotice(__('User has been successfully created.')); 
    151151               if (!empty($_POST['saveplus'])) { 
     
    180180          "\n//]]>\n". 
    181181          "</script>\n". 
    182       
     182 
    183183     # --BEHAVIOR-- adminUserHeaders 
    184184     $core->callBehavior('adminUserHeaders'), 
     
    299299$core->callBehavior('adminUserForm',isset($rs) ? $rs : null); 
    300300 
    301 echo  
     301echo 
    302302'</div>'. 
    303303'</div>'; 
     
    332332          '</p>'. 
    333333          '</form>'; 
    334            
     334 
    335335          $permissions = $core->getUserPermissions($user_id); 
    336336          $perm_types = $core->auth->getPermissionsTypes(); 
    337            
     337 
    338338          if (count($permissions) == 0) 
    339339          { 
     
    346346                    if (count($v['p']) > 0) 
    347347                    { 
    348                          echo  
     348                         echo 
    349349                         '<form action="users_actions.php" method="post" class="perm-block">'. 
    350350                         '<p class="blog-perm">'.__('Blog:').' <a href="blog.php?id='.html::escapeHTML($k).'">'. 
    351351                         html::escapeHTML($v['name']).'</a> ('.html::escapeHTML($k).')</p>'; 
    352                           
     352 
    353353                         echo '<ul class="ul-perm">'; 
    354354                         foreach ($v['p'] as $p => $V) { 
     
    369369                    } 
    370370               } 
    371           }     
    372  
    373      }  
     371          } 
     372 
     373     } 
    374374     else { 
    375375          echo '<p>'.sprintf(__('%s is super admin (all rights on all blogs).'),'<strong>'.$user_id.'</strong>').'</p>'; 
    376      }     
     376     } 
    377377     echo '</div>'; 
    378378} 
     
    380380dcPage::helpBlock('core_user'); 
    381381dcPage::close(); 
    382 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map