Changeset 8843


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

Set compatibility for Piwigo 2.2-RC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Register_PhpBB/admin/admin.php

    r7795 r8843  
    115115      $msg_error_PhpBB_Dup .= '<br>id:'.$subrow['user_id'].'='.stripslashes($subrow['username']).' ('.$subrow['user_email'].')'; 
    116116 
    117       if ( !is_adviser() ) 
    118       { 
    119         $msg_error_PhpBB_Dup .= ' <a href="'; 
    120  
    121         $msg_error_PhpBB_Dup .= add_url_params($page_Register_PhpBB_admin, array( 
    122           'action' => 'del_user', 
    123           'user_id' => $subrow['user_id'], 
    124         )); 
    125  
    126         $msg_error_PhpBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
    127  
    128         $msg_error_PhpBB_Dup .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    129  
    130         $msg_error_PhpBB_Dup .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').$subrow['username'].'" /></a>'; 
    131       } 
     117      $msg_error_PhpBB_Dup .= ' <a href="'; 
     118 
     119      $msg_error_PhpBB_Dup .= add_url_params($page_Register_PhpBB_admin, array( 
     120        'action' => 'del_user', 
     121        'user_id' => $subrow['user_id'], 
     122      )); 
     123 
     124      $msg_error_PhpBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
     125 
     126      $msg_error_PhpBB_Dup .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     127 
     128      $msg_error_PhpBB_Dup .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    176  
    177       $msg_error_Link_Break .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     171 
     172    $msg_error_Link_Break .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    215  
    216       $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_admin, array( 
     196    $msg_error_Link_Bad .= ' <a href="'; 
     197 
     198    $msg_error_Link_Bad .= add_url_params($page_Register_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     207 
     208    $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_admin, array( 
    221213        'action' => 'sync_user', 
    222214        'username' => stripslashes($row['pwg_user']), 
    223215      )); 
    224216 
    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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    228  
    229       $msg_error_Link_Bad .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/arrow_switch.png" alt="'.l10n('Sync_User').stripslashes($row['pwg_user']).' --> '.stripslashes($row['bb_user']).'" /></a>'; 
    230     } 
     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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     220 
     221    $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    264  
    265       $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     253 
     254    $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    297  
    298       $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     283 
     284    $msg_error_Link_Bad .= '><img src="'.REGPHPBB_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_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    338         $msg_error_Synchro .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_refresh.png" alt="'.l10n('Sync_User').stripslashes($row['username']).'" /></a>'; 
    339       } 
     311      $msg_error_Synchro .= ' <a href="'; 
     312 
     313      $msg_error_Synchro .= add_url_params($page_Register_PhpBB_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_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     321      $msg_error_Synchro .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_refresh.png" alt="'.l10n('Sync_User').stripslashes($row['username']).'" /></a>'; 
    340322 
    341323      if ($row['pwg_pwd'] != $row['bb_pwd']) 
     
    377359    $msg_error_PWG2PhpBB .= '<br>'.l10n('Error_PWG2PhpBB').stripslashes($row['username']).' ('.$row['mail_address'].')'; 
    378360 
    379     if ( !is_adviser() ) 
    380     { 
    381       $msg_error_PWG2PhpBB .= ' <a href="'; 
    382  
    383       $msg_error_PWG2PhpBB .= add_url_params($page_Register_PhpBB_admin, array( 
    384         'action' => 'add_user', 
    385         'username' => stripslashes($row['username']), 
    386       )); 
    387  
    388       $msg_error_PWG2PhpBB .= '" title="'.l10n('Add_User').stripslashes($row['username']).'" '; 
    389  
    390       $msg_error_PWG2PhpBB .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    391  
    392       $msg_error_PWG2PhpBB .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_add.png" alt="'.l10n('Add_User').stripslashes($row['username']).'" /></a>'; 
    393     } 
     361    $msg_error_PWG2PhpBB .= ' <a href="'; 
     362 
     363    $msg_error_PWG2PhpBB .= add_url_params($page_Register_PhpBB_admin, array( 
     364      'action' => 'add_user', 
     365      'username' => stripslashes($row['username']), 
     366    )); 
     367 
     368    $msg_error_PWG2PhpBB .= '" title="'.l10n('Add_User').stripslashes($row['username']).'" '; 
     369 
     370    $msg_error_PWG2PhpBB .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     371 
     372    $msg_error_PWG2PhpBB .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_add.png" alt="'.l10n('Add_User').stripslashes($row['username']).'" /></a>'; 
    394373  } 
    395374 
     
    419398    $msg_error_PhpBB2PWG .= '<br>'.l10n('Error_PhpBB2PWG').stripslashes($row['username']).' ('.$row['user_email'].')'; 
    420399 
    421     if ( !is_adviser() ) 
    422     { 
    423       $msg_error_PhpBB2PWG .= ' <a href="'; 
    424  
    425       $msg_error_PhpBB2PWG .= add_url_params($page_Register_PhpBB_admin, array( 
    426         'action' => 'del_user', 
    427         'user_id' => $row['user_id'], 
    428       )); 
    429  
    430       $msg_error_PhpBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
    431  
    432       $msg_error_PhpBB2PWG .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    433  
    434       $msg_error_PhpBB2PWG .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    435     } 
     400    $msg_error_PhpBB2PWG .= ' <a href="'; 
     401 
     402    $msg_error_PhpBB2PWG .= add_url_params($page_Register_PhpBB_admin, array( 
     403      'action' => 'del_user', 
     404      'user_id' => $row['user_id'], 
     405    )); 
     406 
     407    $msg_error_PhpBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
     408 
     409    $msg_error_PhpBB2PWG .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     410 
     411    $msg_error_PhpBB2PWG .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    436412  } 
    437413 
     
    472448// +-----------------------------------------------------------------------+ 
    473449 
    474 if ( isset($_GET['action']) and ($_GET['action']=='link_dead') and !is_adviser() ) 
     450if (isset($_GET['action']) and ($_GET['action']=='link_dead')) 
    475451{ 
    476452  $query = " 
     
    490466  Audit_PWG_PhpBB(); 
    491467} 
    492 else if ( isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser() ) 
     468else if (isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 
    493469{ 
    494470  $query = " 
     
    502478  Audit_PWG_PhpBB(); 
    503479} 
    504 else if ( isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser() ) 
     480else if (isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 
    505481{ 
    506482  PhpBB_Linkuser($_GET['pwg_id'], $_GET['bb_id']); 
     
    508484  Audit_PWG_PhpBB(); 
    509485} 
    510 else if ( isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username']) and !is_adviser() ) 
     486else if (isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username'])) 
    511487{ 
    512488  $query = " 
     
    526502  Audit_PWG_PhpBB(); 
    527503} 
    528 else if ( isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username']) and !is_adviser() ) 
     504else if (isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username'])) 
    529505{ 
    530506  $query = " 
     
    542518    Audit_PWG_PhpBB(); 
    543519} 
    544 else if ( isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id']) and !is_adviser() ) 
     520else if (isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id'])) 
    545521{ 
    546522  PhpBB_Deluser( $_GET['id'], true ); 
     
    572548        case 'manage': 
    573549 
    574   if (isset($_POST['submit']) and !is_adviser() and isset($_POST['PhpBB_prefix']) and isset($_POST['PhpBB_admin']) and isset($_POST['PhpBB_guest']) and isset($_POST['PhpBB_confirm']) and isset($_POST['PhpBB_details'])) 
     550  if (isset($_POST['submit']) and isset($_POST['PhpBB_prefix']) and isset($_POST['PhpBB_admin']) and isset($_POST['PhpBB_guest']) and isset($_POST['PhpBB_confirm']) and isset($_POST['PhpBB_details'])) 
    575551  { 
    576552 
     
    697673  $conf_Register_PhpBB = isset($conf['Register_PhpBB']) ? explode(";" , $conf['Register_PhpBB']) : array(); 
    698674 
    699   if ( isset($_POST['Migration']) and !is_adviser() ) 
     675  if (isset($_POST['Migration'])) 
    700676  { 
    701677    array_push($page['infos'], l10n('Mig_Start').'<br><br>'); 
     
    792768        case 'Synchro': 
    793769 
    794   if ( isset($_POST['Synchro']) and !is_adviser() ) 
     770  if (isset($_POST['Synchro'])) 
    795771  { 
    796772    global $page,$conf, $errors; 
     
    852828        $msg_error_PhpBB_Dup .= '<br>id:'.$subrow['user_id'].'='.stripslashes($subrow['username']).' ('.$subrow['user_email'].')'; 
    853829 
    854         if ( !is_adviser() ) 
    855         { 
    856           $msg_error_PhpBB_Dup .= ' <a href="'; 
    857  
    858           $msg_error_PhpBB_Dup .= add_url_params($page_Register_PhpBB_admin, array( 
    859             'action' => 'del_user', 
    860             'user_id' => $subrow['user_id'], 
    861           )); 
    862  
    863           $msg_error_PhpBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
    864  
    865           $msg_error_PhpBB_Dup .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    866  
    867           $msg_error_PhpBB_Dup .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($subrow['username']).'" /></a>'; 
    868         } 
     830        $msg_error_PhpBB_Dup .= ' <a href="'; 
     831 
     832        $msg_error_PhpBB_Dup .= add_url_params($page_Register_PhpBB_admin, array( 
     833          'action' => 'del_user', 
     834          'user_id' => $subrow['user_id'], 
     835        )); 
     836 
     837        $msg_error_PhpBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 
     838 
     839        $msg_error_PhpBB_Dup .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     840 
     841        $msg_error_PhpBB_Dup .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($subrow['username']).'" /></a>'; 
    869842      } 
    870843    } 
     
    10811054        $msg_error_PhpBB2PWG .= '<br>'.l10n('Error_PhpBB2PWG').stripslashes($row['username']).' ('.$row['user_email'].')'; 
    10821055 
    1083         if ( !is_adviser() ) 
    1084         { 
    1085           $msg_error_PhpBB2PWG .= ' <a href="'; 
    1086  
    1087           $msg_error_PhpBB2PWG .= add_url_params($page_Register_PhpBB_admin, array( 
    1088             'action' => 'del_user', 
    1089             'user_id' => $row['user_id'], 
    1090           )); 
    1091  
    1092           $msg_error_PhpBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
    1093  
    1094           $msg_error_PhpBB2PWG .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
    1095  
    1096           $msg_error_PhpBB2PWG .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    1097         } 
     1056        $msg_error_PhpBB2PWG .= ' <a href="'; 
     1057 
     1058        $msg_error_PhpBB2PWG .= add_url_params($page_Register_PhpBB_admin, array( 
     1059          'action' => 'del_user', 
     1060          'user_id' => $row['user_id'], 
     1061        )); 
     1062 
     1063        $msg_error_PhpBB2PWG .= '" title="'.l10n('Del_User').stripslashes($row['username']).'"'; 
     1064 
     1065        $msg_error_PhpBB2PWG .= $conf_Register_PhpBB[3]=='false' ?  ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 
     1066 
     1067        $msg_error_PhpBB2PWG .= '><img src="'.REGPHPBB_PATH.'/admin/template/icon/user_delete.png" alt="'.l10n('Del_User').stripslashes($row['username']).'" /></a>'; 
    10981068      } 
    10991069 
Note: See TracChangeset for help on using the changeset viewer.