Index: trunk/extensions/Sudo/Sudo.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | /** |
4 | 4 | * Sudo |
5 | 5 | * @package Sudo |
6 | | - * @author Daniel Friesen (http://mediawiki.org/wiki/User:Dantman) <wiki@danielfriesen.name> |
| 6 | + * @author Daniel Friesen (http://mediawiki.org/wiki/User:Dantman) <mediawiki@danielfriesen.name> |
7 | 7 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
8 | 8 | * |
9 | 9 | * This program is free software; you can redistribute it and/or |
— | — | @@ -22,11 +22,11 @@ |
23 | 23 | |
24 | 24 | if( !defined( 'MEDIAWIKI' ) ) die( "This is an extension to the MediaWiki package and cannot be run standalone." ); |
25 | 25 | |
26 | | -$wgExtensionCredits['otjher'][] = array ( |
| 26 | +$wgExtensionCredits['other'][] = array ( |
27 | 27 | 'name' => 'Sudo', |
28 | | - 'url' => 'http://wiki-tools.com/wiki/Sudo', |
29 | | - 'version' => '0.1a', |
30 | | - 'author' => "[http://mediawiki.org/wiki/User:Dantman Daniel Friesen] [mailto:Daniel%20Friesen%20%3Cwiki@danielfriesen.name%3E <dan_the_man@telus.net>]", |
| 28 | + 'url' => 'http://mediawiki.org/wiki/Extension:Sudo', |
| 29 | + 'version' => '0.2', |
| 30 | + 'author' => "[http://mediawiki.org/wiki/User:Dantman Daniel Friesen] [mailto:Daniel%20Friesen%20%3Cmediawiki@danielfriesen.name%3E <mediawiki@danielfriesen.name>]", |
31 | 31 | 'description' => "Allows sudoers to login as other users." |
32 | 32 | ); |
33 | 33 | |
Index: trunk/extensions/Sudo/SpecialSudo.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | /** |
4 | 4 | * Sudo |
5 | 5 | * @package Sudo |
6 | | - * @author Daniel Friesen (http://www.wikia.com/wiki/User:Dantman) <wiki@danielfriesen.name> |
| 6 | + * @author Daniel Friesen (http://mediawiki.org/wiki/User:Dantman) <mediawiki@danielfriesen.name> |
7 | 7 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
8 | 8 | * |
9 | 9 | * This program is free software; you can redistribute it and/or |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | protected $mMode, $mSkin, $mTarget, $mReason, $mErrors; |
28 | 28 | |
29 | 29 | function __construct() { |
30 | | - SpecialPage::SpecialPage( 'Sudo', 'sudo' ); |
| 30 | + parent::__construct( 'Sudo', 'sudo' ); |
31 | 31 | wfLoadExtensionMessages('Sudo'); |
32 | 32 | } |
33 | 33 | |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | global $wgOut, $wgUser; |
152 | 152 | $u = User::newFromName( $this->mTarget ); |
153 | 153 | if( is_null($u) ) return $this->addError('sudo-error-sudo-invaliduser'); |
154 | | - if( User::isIP($u->getName()) || User::isIPv6($u->getName()) ) return $this->addError('sudo-error-ip'); |
| 154 | + if( User::isIP($u->getName()) ) return $this->addError('sudo-error-ip'); |
155 | 155 | if( $u->isAnon() ) return $this->addError('sudo-error-sudo-nonexistant'); |
156 | 156 | if( $u->getName() === $wgUser->getName() ) return $this->addError('sudo-error-sudo-self'); |
157 | 157 | |
Index: trunk/extensions/Sudo/Sudo.i18n.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | /** |
4 | 4 | * Sudo |
5 | 5 | * @package Sudo |
6 | | - * @author Daniel Friesen (http://www.wikia.com/wiki/User:Dantman) <wiki@danielfriesen.name> |
| 6 | + * @author Daniel Friesen (http://mediawiki.org/wiki/User:Dantman) <mediawiki@danielfriesen.name> |
7 | 7 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
8 | 8 | * |
9 | 9 | * This program is free software; you can redistribute it and/or |
— | — | @@ -47,4 +47,5 @@ |
48 | 48 | 'sudo-logpagename' => 'Sudo log', |
49 | 49 | 'sudo-logpagetext' => 'This is a log of all uses of sudo.', |
50 | 50 | 'sudo-logentry' => 'sudoed into $2', |
| 51 | + 'right-sudo' => "Login to another user's account", |
51 | 52 | ); |