Changeset 8843
- Timestamp:
- Jan 22, 2011, 6:24:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Register_PhpBB/admin/admin.php
r7795 r8843 115 115 $msg_error_PhpBB_Dup .= '<br>id:'.$subrow['user_id'].'='.stripslashes($subrow['username']).' ('.$subrow['user_email'].')'; 116 116 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>'; 132 129 } 133 130 } … … 161 158 $msg_error_Link_Break .= '<br>'.l10n('Error_Link_Break').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'; 162 159 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>'; 179 173 } 180 174 … … 200 194 $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Del').stripslashes($row['pwg_user']).' ('.$row['pwg_mail'].')'.' -- '.stripslashes($row['bb_user']).' ('.$row['bb_mail'].')'; 201 195 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( 221 213 'action' => 'sync_user', 222 214 'username' => stripslashes($row['pwg_user']), 223 215 )); 224 216 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>'; 231 222 } 232 223 … … 251 242 $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Dead').$Compteur['nbr_dead']; 252 243 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>'; 267 255 } 268 256 … … 282 270 $msg_error_Link_Bad .= '<br>'.l10n('Error_Link_Dup').$row['nbr_dup'].' = '.stripslashes($row['pwg_user']).' -- '.stripslashes($row['bb_user']).')'; 283 271 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>'; 300 285 } 301 286 … … 324 309 $msg_error_Synchro .= '<br>'.l10n('Error_Synchro').stripslashes($row['username']); 325 310 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>'; 340 322 341 323 if ($row['pwg_pwd'] != $row['bb_pwd']) … … 377 359 $msg_error_PWG2PhpBB .= '<br>'.l10n('Error_PWG2PhpBB').stripslashes($row['username']).' ('.$row['mail_address'].')'; 378 360 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>'; 394 373 } 395 374 … … 419 398 $msg_error_PhpBB2PWG .= '<br>'.l10n('Error_PhpBB2PWG').stripslashes($row['username']).' ('.$row['user_email'].')'; 420 399 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>'; 436 412 } 437 413 … … 472 448 // +-----------------------------------------------------------------------+ 473 449 474 if ( isset($_GET['action']) and ($_GET['action']=='link_dead') and !is_adviser())450 if (isset($_GET['action']) and ($_GET['action']=='link_dead')) 475 451 { 476 452 $query = " … … 490 466 Audit_PWG_PhpBB(); 491 467 } 492 else if ( isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser())468 else if (isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 493 469 { 494 470 $query = " … … 502 478 Audit_PWG_PhpBB(); 503 479 } 504 else if ( isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser())480 else if (isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 505 481 { 506 482 PhpBB_Linkuser($_GET['pwg_id'], $_GET['bb_id']); … … 508 484 Audit_PWG_PhpBB(); 509 485 } 510 else if ( isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username']) and !is_adviser())486 else if (isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username'])) 511 487 { 512 488 $query = " … … 526 502 Audit_PWG_PhpBB(); 527 503 } 528 else if ( isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username']) and !is_adviser())504 else if (isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username'])) 529 505 { 530 506 $query = " … … 542 518 Audit_PWG_PhpBB(); 543 519 } 544 else if ( isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id']) and !is_adviser())520 else if (isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id'])) 545 521 { 546 522 PhpBB_Deluser( $_GET['id'], true ); … … 572 548 case 'manage': 573 549 574 if (isset($_POST['submit']) and !is_adviser() andisset($_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'])) 575 551 { 576 552 … … 697 673 $conf_Register_PhpBB = isset($conf['Register_PhpBB']) ? explode(";" , $conf['Register_PhpBB']) : array(); 698 674 699 if ( isset($_POST['Migration']) and !is_adviser())675 if (isset($_POST['Migration'])) 700 676 { 701 677 array_push($page['infos'], l10n('Mig_Start').'<br><br>'); … … 792 768 case 'Synchro': 793 769 794 if ( isset($_POST['Synchro']) and !is_adviser())770 if (isset($_POST['Synchro'])) 795 771 { 796 772 global $page,$conf, $errors; … … 852 828 $msg_error_PhpBB_Dup .= '<br>id:'.$subrow['user_id'].'='.stripslashes($subrow['username']).' ('.$subrow['user_email'].')'; 853 829 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>'; 869 842 } 870 843 } … … 1081 1054 $msg_error_PhpBB2PWG .= '<br>'.l10n('Error_PhpBB2PWG').stripslashes($row['username']).' ('.$row['user_email'].')'; 1082 1055 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>'; 1098 1068 } 1099 1069
Note: See TracChangeset
for help on using the changeset viewer.