Changeset 8842 for extensions/Register_FluxBB/trunk
- Timestamp:
- Jan 22, 2011, 6:15:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Register_FluxBB/trunk/admin/admin.php
r6898 r8842 115 115 $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')'; 116 116 117 if ( !is_adviser() ) 118 { 119 $msg_error_FluxBB_Dup .= ' <a href="'; 117 $msg_error_FluxBB_Dup .= ' <a href="'; 120 118 121 122 123 124 119 $msg_error_FluxBB_Dup .= add_url_params($page_Register_FluxBB_admin, array( 120 'action' => 'del_user', 121 'id' => $subrow['id'], 122 )); 125 123 126 124 $msg_error_FluxBB_Dup .= '" title="'.l10n('Del_User').stripslashes($subrow['username']).'"'; 127 125 128 126 $msg_error_FluxBB_Dup .= $conf_Register_FluxBB[4]=='false' ? ' onclick="return confirm(\''.l10n('Are you sure?').'\');" ' : ' '; 129 127 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>'; 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_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>'; 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_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>'; 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_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>'; 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_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>'; 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_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 341 324 if ($row['pwg_pwd'] != $row['bb_pwd']) 342 325 $msg_error_Synchro .= '<br>'.l10n('Error_Synchro_Pswd'); 343 326 344 327 if ($row['pwg_eml'] != $row['bb_eml']) 345 328 $msg_error_Synchro .= '<br>'.l10n('Error_Synchro_Mail').'<br>-- PWG = '.$row['pwg_eml'].'<br>-- FluxBB = '.$row['bb_eml']; … … 377 360 $msg_error_PWG2FluxBB .= '<br>'.l10n('Error_PWG2FluxBB').stripslashes($row['username']).' ('.$row['mail_address'].')'; 378 361 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>'; 394 374 } 395 375 … … 419 399 $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')'; 420 400 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>'; 436 413 } 437 414 … … 472 449 // +-----------------------------------------------------------------------+ 473 450 474 if ( isset($_GET['action']) and ($_GET['action']=='link_dead') and !is_adviser())451 if (isset($_GET['action']) and ($_GET['action']=='link_dead')) 475 452 { 476 453 $query = " … … 490 467 Audit_PWG_FluxBB(); 491 468 } 492 else if ( isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser())469 else if (isset($_GET['action']) and ($_GET['action']=='link_del') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 493 470 { 494 471 $query = " … … 502 479 Audit_PWG_FluxBB(); 503 480 } 504 else if ( isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id']) and !is_adviser())481 else if (isset($_GET['action']) and ($_GET['action']=='new_link') and isset($_GET['pwg_id']) and isset($_GET['bb_id'])) 505 482 { 506 483 FluxBB_Linkuser($_GET['pwg_id'], $_GET['bb_id']); … … 508 485 Audit_PWG_FluxBB(); 509 486 } 510 else if ( isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username']) and !is_adviser())487 else if (isset($_GET['action']) and ($_GET['action']=='sync_user') and isset($_GET['username'])) 511 488 { 512 489 $query = " … … 526 503 Audit_PWG_FluxBB(); 527 504 } 528 else if ( isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username']) and !is_adviser())505 else if (isset($_GET['action']) and ($_GET['action']=='add_user') and isset($_GET['username'])) 529 506 { 530 507 $query = " … … 542 519 Audit_PWG_FluxBB(); 543 520 } 544 else if ( isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id']) and !is_adviser())521 else if (isset($_GET['action']) and ($_GET['action']=='del_user') and isset($_GET['id'])) 545 522 { 546 523 FluxBB_Deluser( $_GET['id'], true ); … … 572 549 case 'manage': 573 550 574 if (isset($_POST['submit']) and !is_adviser() andisset($_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'])) 575 552 { 576 553 … … 699 676 $conf_Register_FluxBB = isset($conf['Register_FluxBB']) ? explode(";" , $conf['Register_FluxBB']) : array(); 700 677 701 if ( isset($_POST['Migration']) and !is_adviser())678 if (isset($_POST['Migration'])) 702 679 { 703 680 array_push($page['infos'], l10n('Mig_Start').'<br><br>'); … … 793 770 case 'Synchro': 794 771 795 if ( isset($_POST['Synchro']) and !is_adviser())772 if ( isset($_POST['Synchro'])) 796 773 { 797 774 global $page,$conf, $errors; … … 853 830 $msg_error_FluxBB_Dup .= '<br>id:'.$subrow['id'].'='.stripslashes($subrow['username']).' ('.$subrow['email'].')'; 854 831 855 if ( !is_adviser() ) 856 { 857 $msg_error_FluxBB_Dup .= ' <a href="'; 832 $msg_error_FluxBB_Dup .= ' <a href="'; 858 833 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>'; 870 844 } 871 845 } … … 1081 1055 $msg_error_FluxBB2PWG .= '<br>'.l10n('Error_FluxBB2PWG').stripslashes($row['username']).' ('.$row['email'].')'; 1082 1056 1083 if ( !is_adviser() ) 1084 { 1085 $msg_error_FluxBB2PWG .= ' <a href="'; 1057 $msg_error_FluxBB2PWG .= ' <a href="'; 1086 1058 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>'; 1098 1069 } 1099 1070
Note: See TracChangeset
for help on using the changeset viewer.