Пример #1
0
 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 http://www.gnu.org/copyleft/gpl.html
*/
if (!defined('MEDIAWIKI')) {
    echo "ConfirmAccount extension\n";
    exit(1);
}
$wgExtensionCredits['specialpage'][] = array('path' => __FILE__, 'name' => 'Confirm User Accounts', 'descriptionmsg' => 'confirmaccount-desc', 'author' => 'Aaron Schulz', 'url' => 'https://www.mediawiki.org/wiki/Extension:ConfirmAccount');
# Load default config variables
require dirname(__FILE__) . '/ConfirmAccount.config.php';
# Define were PHP files and i18n files are located
require dirname(__FILE__) . '/ConfirmAccount.setup.php';
ConfirmAccountSetup::defineSourcePaths($wgAutoloadClasses, $wgMessagesDirs, $wgExtensionMessagesFiles);
# Define JS/CSS modules and file locations
ConfirmAccountUISetup::defineResourceModules($wgResourceModules);
# Let some users confirm account requests and view credentials for created accounts
$wgAvailableRights[] = 'confirmaccount';
// user can confirm account requests
$wgAvailableRights[] = 'requestips';
// user can see IPs in request queue
$wgAvailableRights[] = 'lookupcredentials';
// user can lookup info on confirmed users
# Actually register special pages
ConfirmAccountUISetup::defineSpecialPages($wgSpecialPages);
# ####### HOOK CALLBACK FUNCTIONS #########
# UI-related hook handlers
ConfirmAccountUISetup::defineHookHandlers($wgHooks);
# Check for account name collisions
 You should have received a copy of the GNU General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 http://www.gnu.org/copyleft/gpl.html
*/
if (!defined('MEDIAWIKI')) {
    echo "ConfirmAccount extension\n";
    exit(1);
}
$GLOBALS['wgExtensionCredits']['specialpage'][] = array('path' => __FILE__, 'name' => 'Confirm User Accounts', 'descriptionmsg' => 'confirmaccount-desc', 'author' => 'Aaron Schulz', 'url' => 'https://www.mediawiki.org/wiki/Extension:ConfirmAccount');
# Load default config variables
require dirname(__FILE__) . '/ConfirmAccount.config.php';
# Define were PHP files and i18n files are located
require dirname(__FILE__) . '/ConfirmAccount.setup.php';
ConfirmAccountSetup::defineSourcePaths($GLOBALS['wgAutoloadClasses'], $GLOBALS['wgMessagesDirs'], $GLOBALS['wgExtensionMessagesFiles']);
# Define JS/CSS modules and file locations
ConfirmAccountUISetup::defineResourceModules($GLOBALS['wgResourceModules']);
# Let some users confirm account requests and view credentials for created accounts
$GLOBALS['wgAvailableRights'][] = 'confirmaccount';
// user can confirm account requests
$GLOBALS['wgAvailableRights'][] = 'requestips';
// user can see IPs in request queue
$GLOBALS['wgAvailableRights'][] = 'lookupcredentials';
// user can lookup info on confirmed users
# Actually register special pages
ConfirmAccountUISetup::defineSpecialPages($GLOBALS['wgSpecialPages']);
# ####### HOOK CALLBACK FUNCTIONS #########
# UI-related hook handlers
ConfirmAccountUISetup::defineHookHandlers($GLOBALS['wgHooks']);
# Check for account name collisions