Ignore:
Timestamp:
01/22/11 18:15:23 (9 years ago)
Author:
Eric
Message:

Set compatibility for Piwigo 2.2-RC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Register_FluxBB/trunk/admin/admin.php

    r6898 r8842  
    115115      $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')'; 
    116116   
    117       if ( !is_adviser() ) 
    118       { 
    119         $msg_error_FluxBB_Dup .= ' <a href="'; 
     117      $msg_error_FluxBB_Dup .= ' <a href="'; 
    120118       
    121         $msg_error_FluxBB_Dup .= add_url_params($page_Register_FluxBB_admin, array( 
    122           'action' => 'del_user', 
    123           'id' => $subrow['id'], 
    124         )); 
     119      $msg_error_FluxBB_Dup .= add_url_params($page_Register_FluxBB_admin, array( 
     120        'action' => 'del_user', 
     121        'id' => $subrow['id'], 
     122      )); 
    125123         
    126         $msg_error_FluxBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
     124      $msg_error_FluxBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
    127125         
    128         $msg_error_FluxBB_Dup .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     126      $msg_error_FluxBB_Dup .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    129127         
    130         $msg_error_FluxBB_Dup .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').$subrow['username'].'" /></a>'; 
    131       } 
     128      $msg_error_FluxBB_Dup .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').$subrow['username'].'" /></a>'; 
    132129    } 
    133130  } 
     
    161158    $msg_error_Link_Break .= '<br>'.l10n('Error_Link_Break').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'; 
    162159 
    163     if ( !is_adviser() ) 
    164     { 
    165       $msg_error_Link_Break .= ' <a href="'; 
    166    
    167       $msg_error_Link_Break .= add_url_params($page_Register_FluxBB_admin, array( 
    168         'action'   => 'new_link', 
    169         'pwg_id' => $row['pwg_id'], 
    170         'bb_id' => $row['bb_id'], 
    171       )); 
    172        
    173       $msg_error_Link_Break .= '" title="'.l10n('New_Link').stripslashes($row['pwg_user']).'"'; 
    174        
    175       $msg_error_Link_Break .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    176  
    177       $msg_error_Link_Break .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_break.png" alt="'.l10n('New_Link').stripslashes($row['pwg_user']).'" /></a>'; 
    178     } 
     160    $msg_error_Link_Break .= ' <a href="'; 
     161   
     162    $msg_error_Link_Break .= add_url_params($page_Register_FluxBB_admin, array( 
     163      'action'   => 'new_link', 
     164      'pwg_id' => $row['pwg_id'], 
     165      'bb_id' => $row['bb_id'], 
     166    )); 
     167 
     168    $msg_error_Link_Break .= '" title="'.l10n('New_Link').stripslashes($row['pwg_user']).'"'; 
     169 
     170    $msg_error_Link_Break .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     171 
     172    $msg_error_Link_Break .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_break.png" alt="'.l10n('New_Link').stripslashes($row['pwg_user']).'" /></a>'; 
    179173  } 
    180174 
     
    200194    $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')'; 
    201195 
    202     if ( !is_adviser() ) 
    203     { 
    204       $msg_error_Link_Bad .= ' <a href="'; 
    205    
    206       $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
    207         'action'   => 'link_del', 
    208         'pwg_id' => $row['pwg_id'], 
    209         'bb_id'  => $row['bb_id'], 
    210       )); 
    211        
    212       $msg_error_Link_Bad .= '" title="'.l10n('Link_Del').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'"'; 
    213        
    214       $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    215        
    216       $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_delete.png" alt="'.l10n('Link_Del').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'" /></a>'; 
    217  
    218       $msg_error_Link_Bad .= ' -- <a href="'; 
    219  
    220       $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
    221         'action' => 'sync_user', 
    222         'username' => stripslashes($row['pwg_user']), 
    223       )); 
    224        
    225       $msg_error_Link_Bad .= '" title="'.l10n('Sync_User').stripslashes($row['pwg_user']).' --> '.stripslashes($row['bb_user']).'"'; 
    226        
    227       $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    228        
    229       $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/arrow_switch.png" alt="'.l10n('Sync_User').stripslashes($row['pwg_user']).' --> '.stripslashes($row['bb_user']).'" /></a>'; 
    230     } 
     196    $msg_error_Link_Bad .= ' <a href="'; 
     197   
     198    $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
     199      'action'   => 'link_del', 
     200      'pwg_id' => $row['pwg_id'], 
     201      'bb_id'  => $row['bb_id'], 
     202    )); 
     203 
     204    $msg_error_Link_Bad .= '" title="'.l10n('Link_Del').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'"'; 
     205 
     206    $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     207 
     208    $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_delete.png" alt="'.l10n('Link_Del').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'" /></a>'; 
     209 
     210    $msg_error_Link_Bad .= ' -- <a href="'; 
     211 
     212    $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
     213      'action' => 'sync_user', 
     214      'username' => stripslashes($row['pwg_user']), 
     215    )); 
     216 
     217    $msg_error_Link_Bad .= '" title="'.l10n('Sync_User').stripslashes($row['pwg_user']).' --> '.stripslashes($row['bb_user']).'"'; 
     218 
     219    $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     220 
     221    $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/arrow_switch.png" alt="'.l10n('Sync_User').stripslashes($row['pwg_user']).' --> '.stripslashes($row['bb_user']).'" /></a>'; 
    231222  } 
    232223 
     
    251242    $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Dead').$Compteur['nbr_dead']; 
    252243 
    253     if ( !is_adviser() ) 
    254     { 
    255       $msg_error_Link_Bad .= ' <a href="'; 
    256    
    257       $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
    258         'action'   => 'link_dead', 
    259       )); 
    260        
    261       $msg_error_Link_Bad .= '" title="'.l10n('Link_Dead').$Compteur['nbr_dead'].'"'; 
    262        
    263       $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    264        
    265       $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_delete.png" alt="'.l10n('Link_Dead').$Compteur['nbr_dead'].'" /></a>'; 
    266     } 
     244    $msg_error_Link_Bad .= ' <a href="'; 
     245 
     246    $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
     247      'action'   => 'link_dead', 
     248    )); 
     249 
     250    $msg_error_Link_Bad .= '" title="'.l10n('Link_Dead').$Compteur['nbr_dead'].'"'; 
     251 
     252    $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     253 
     254    $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_delete.png" alt="'.l10n('Link_Dead').$Compteur['nbr_dead'].'" /></a>'; 
    267255  } 
    268256 
     
    282270    $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')'; 
    283271 
    284     if ( !is_adviser() ) 
    285     { 
    286       $msg_error_Link_Bad .= ' <a href="'; 
    287  
    288       $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
    289         'action'   => 'new_link', 
    290         'pwg_id' => $row['pwg_id'], 
    291         'bb_id' => $row['bb_id'], 
    292       )); 
    293        
    294       $msg_error_Link_Bad .= '" title="'.l10n('Link_Dup').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'"'; 
    295        
    296       $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    297        
    298       $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_error.png" alt="'.l10n('Link_Dup').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'" /></a>'; 
    299     }       
     272    $msg_error_Link_Bad .= ' <a href="'; 
     273 
     274    $msg_error_Link_Bad .= add_url_params($page_Register_FluxBB_admin, array( 
     275      'action'   => 'new_link', 
     276      'pwg_id' => $row['pwg_id'], 
     277      'bb_id' => $row['bb_id'], 
     278    )); 
     279 
     280    $msg_error_Link_Bad .= '" title="'.l10n('Link_Dup').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'"'; 
     281 
     282    $msg_error_Link_Bad .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     283 
     284    $msg_error_Link_Bad .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/link_error.png" alt="'.l10n('Link_Dup').stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).'" /></a>'; 
    300285  } 
    301286 
     
    324309      $msg_error_Synchro .= '<br>'.l10n('Error_Synchro').stripslashes($row['username']); 
    325310 
    326       if ( !is_adviser() ) 
    327       { 
    328         $msg_error_Synchro .= ' <a href="'; 
    329    
    330         $msg_error_Synchro .= add_url_params($page_Register_FluxBB_admin, array( 
    331           'action' => 'sync_user', 
    332           'username' => stripslashes($row['username']), 
    333         )); 
    334          
    335         $msg_error_Synchro .= '" title="'.l10n('Sync_User').stripslashes($row['username']).'"'; 
    336          
    337         $msg_error_Synchro .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    338         $msg_error_Synchro .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_refresh.png" alt="'.l10n('Sync_User').stripslashes($row['username']).'" /></a>'; 
    339       } 
    340        
     311      $msg_error_Synchro .= ' <a href="'; 
     312 
     313      $msg_error_Synchro .= add_url_params($page_Register_FluxBB_admin, array( 
     314        'action' => 'sync_user', 
     315        'username' => stripslashes($row['username']), 
     316      )); 
     317 
     318      $msg_error_Synchro .= '" title="'.l10n('Sync_User').stripslashes($row['username']).'"'; 
     319 
     320      $msg_error_Synchro .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     321 
     322      $msg_error_Synchro .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_refresh.png" alt="'.l10n('Sync_User').stripslashes($row['username']).'" /></a>'; 
     323 
    341324      if ($row['pwg_pwd'] != $row['bb_pwd']) 
    342325        $msg_error_Synchro .= '<br>'.l10n('Error_Synchro_Pswd'); 
    343        
     326 
    344327      if ($row['pwg_eml'] != $row['bb_eml']) 
    345328        $msg_error_Synchro .= '<br>'.l10n('Error_Synchro_Mail').'<br>-- PWG = '.$row['pwg_eml'].'<br>-- FluxBB = '.$row['bb_eml']; 
     
    377360    $msg_error_PWG2FluxBB .= '<br>'.l10n('Error_PWG2FluxBB').stripslashes($row['username']).' ('.$row['mail_address'].')'; 
    378361 
    379     if ( !is_adviser() ) 
    380     { 
    381       $msg_error_PWG2FluxBB .= ' <a href="'; 
    382  
    383       $msg_error_PWG2FluxBB .= add_url_params($page_Register_FluxBB_admin, array( 
    384         'action' => 'add_user', 
    385         'username' => stripslashes($row['username']), 
    386       )); 
    387        
    388       $msg_error_PWG2FluxBB .= '" title="'.l10n('Add_User').stripslashes($row['username']).'" '; 
    389        
    390       $msg_error_PWG2FluxBB .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    391  
    392       $msg_error_PWG2FluxBB .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_add.png" alt="'.l10n('Add_User').stripslashes($row['username']).'" /></a>'; 
    393     } 
     362    $msg_error_PWG2FluxBB .= ' <a href="'; 
     363 
     364    $msg_error_PWG2FluxBB .= add_url_params($page_Register_FluxBB_admin, array( 
     365      'action' => 'add_user', 
     366      'username' => stripslashes($row['username']), 
     367    )); 
     368 
     369    $msg_error_PWG2FluxBB .= '" title="'.l10n('Add_User').stripslashes($row['username']).'" '; 
     370 
     371    $msg_error_PWG2FluxBB .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     372 
     373    $msg_error_PWG2FluxBB .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_add.png" alt="'.l10n('Add_User').stripslashes($row['username']).'" /></a>'; 
    394374  } 
    395375 
     
    419399    $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')'; 
    420400 
    421     if ( !is_adviser() ) 
    422     { 
    423       $msg_error_FluxBB2PWG .= ' <a href="'; 
    424      
    425       $msg_error_FluxBB2PWG .= add_url_params($page_Register_FluxBB_admin, array( 
    426         'action' => 'del_user', 
    427         'id' => $row['id'], 
    428       )); 
    429        
    430       $msg_error_FluxBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
    431        
    432       $msg_error_FluxBB2PWG .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    433  
    434       $msg_error_FluxBB2PWG .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    435     } 
     401    $msg_error_FluxBB2PWG .= ' <a href="'; 
     402 
     403    $msg_error_FluxBB2PWG .= add_url_params($page_Register_FluxBB_admin, array( 
     404      'action' => 'del_user', 
     405      'id' => $row['id'], 
     406    )); 
     407 
     408    $msg_error_FluxBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
     409 
     410    $msg_error_FluxBB2PWG .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     411 
     412    $msg_error_FluxBB2PWG .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    436413  } 
    437414 
     
    472449// +-----------------------------------------------------------------------+ 
    473450 
    474 if ( isset($_GET['action']) and ($_GET['action']=='link_dead') and !is_adviser() ) 
     451if (isset($_GET['action']) and ($_GET['action']=='link_dead')) 
    475452{ 
    476453  $query = " 
     
    490467  Audit_PWG_FluxBB(); 
    491468} 
    492 else if ( isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser() ) 
     469else if (isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 
    493470{ 
    494471  $query = " 
     
    502479  Audit_PWG_FluxBB(); 
    503480} 
    504 else if ( isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser() ) 
     481else if (isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 
    505482{ 
    506483  FluxBB_Linkuser($_GET['pwg_id'], $_GET['bb_id']); 
     
    508485  Audit_PWG_FluxBB(); 
    509486} 
    510 else if ( isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username']) and !is_adviser() ) 
     487else if (isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username'])) 
    511488{ 
    512489  $query = " 
     
    526503  Audit_PWG_FluxBB(); 
    527504} 
    528 else if ( isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username']) and !is_adviser() ) 
     505else if (isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username'])) 
    529506{ 
    530507  $query = " 
     
    542519    Audit_PWG_FluxBB(); 
    543520} 
    544 else if ( isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id']) and !is_adviser() ) 
     521else if (isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id'])) 
    545522{ 
    546523  FluxBB_Deluser( $_GET['id'], true ); 
     
    572549        case 'manage': 
    573550   
    574   if (isset($_POST['submit']) and !is_adviser() and isset($_POST['FluxBB_prefix']) and isset($_POST['FluxBB_admin']) and isset($_POST['FluxBB_guest']) and isset($_POST['FluxBB_del_pt']) and isset($_POST['FluxBB_confirm']) and isset($_POST['FluxBB_details'])) 
     551  if (isset($_POST['submit']) and isset($_POST['FluxBB_prefix']) and isset($_POST['FluxBB_admin']) and isset($_POST['FluxBB_guest']) and isset($_POST['FluxBB_del_pt']) and isset($_POST['FluxBB_confirm']) and isset($_POST['FluxBB_details'])) 
    575552  { 
    576553 
     
    699676  $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array(); 
    700677         
    701   if ( isset($_POST['Migration']) and !is_adviser() ) 
     678  if (isset($_POST['Migration'])) 
    702679  { 
    703680    array_push($page['infos'], l10n('Mig_Start').'<br><br>'); 
     
    793770        case 'Synchro': 
    794771   
    795   if ( isset($_POST['Synchro']) and !is_adviser() ) 
     772  if ( isset($_POST['Synchro'])) 
    796773  { 
    797774    global $page,$conf, $errors; 
     
    853830        $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')'; 
    854831   
    855         if ( !is_adviser() ) 
    856         { 
    857           $msg_error_FluxBB_Dup .= ' <a href="'; 
     832        $msg_error_FluxBB_Dup .= ' <a href="'; 
    858833       
    859           $msg_error_FluxBB_Dup .= add_url_params($page_Register_FluxBB_admin, array( 
    860             'action' => 'del_user', 
    861             'id' => $subrow['id'], 
    862           )); 
    863  
    864           $msg_error_FluxBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
    865  
    866           $msg_error_FluxBB_Dup .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    867  
    868           $msg_error_FluxBB_Dup .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($subrow['username']).'" /></a>'; 
    869         } 
     834        $msg_error_FluxBB_Dup .= add_url_params($page_Register_FluxBB_admin, array( 
     835          'action' => 'del_user', 
     836          'id' => $subrow['id'], 
     837        )); 
     838 
     839        $msg_error_FluxBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
     840 
     841        $msg_error_FluxBB_Dup .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     842 
     843        $msg_error_FluxBB_Dup .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($subrow['username']).'" /></a>'; 
    870844      } 
    871845    } 
     
    10811055        $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')'; 
    10821056   
    1083         if ( !is_adviser() ) 
    1084         { 
    1085           $msg_error_FluxBB2PWG .= ' <a href="'; 
     1057        $msg_error_FluxBB2PWG .= ' <a href="'; 
    10861058       
    1087           $msg_error_FluxBB2PWG .= add_url_params($page_Register_FluxBB_admin, array( 
    1088             'action' => 'del_user', 
    1089             'id' => $row['id'], 
    1090           )); 
    1091  
    1092           $msg_error_FluxBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
    1093  
    1094           $msg_error_FluxBB2PWG .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    1095  
    1096           $msg_error_FluxBB2PWG .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    1097         } 
     1059        $msg_error_FluxBB2PWG .= add_url_params($page_Register_FluxBB_admin, array( 
     1060          'action' => 'del_user', 
     1061          'id' => $row['id'], 
     1062        )); 
     1063 
     1064        $msg_error_FluxBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
     1065 
     1066        $msg_error_FluxBB2PWG .= $conf_Register_FluxBB[4]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     1067 
     1068        $msg_error_FluxBB2PWG .= '><img src="'.REGFLUXBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    10981069      } 
    10991070   
Note: See TracChangeset for help on using the changeset viewer.