From c23548ecfd4e7de5854491f80ee79fc53b77cf93 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 8 Feb 2004 04:27:27 +0000 Subject: [PATCH] disabled interwiki component --- includes/SpecialMakesysop.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/SpecialMakesysop.php b/includes/SpecialMakesysop.php index 39500d9a3e..081a4b5af8 100644 --- a/includes/SpecialMakesysop.php +++ b/includes/SpecialMakesysop.php @@ -80,9 +80,17 @@ class MakesysopForm { { global $wgOut, $wgUser, $wgLang, $wpMakesysopUser, $wpSetBureaucrat; global $wgDBname, $wgMemc; - + /* + $parts = explode( "@", $wpMakesysopUser ); + if( count( $parts ) == 2){ + $username = addslashes( $parts[0] ); + $usertable = $parts[1] . "wiki.user"; + $dbName = $parts[1] . "wiki"; + } else {*/ $username = addslashes( $wpMakesysopUser ); - + $usertable = "user"; + $dbName = $wgDBname; + #} $prev = wfIgnoreSQLErrors( TRUE ); $res = wfQuery("SELECT user_id, user_rights FROM user WHERE user_name = '{$username}'", DB_WRITE); wfIgnoreSQLErrors( $prev ); -- 2.20.1