maintenance/createAndPromote.php File Reference

Maintenance script to create an account and grant it administrator rights. More...

Go to the source code of this file.

Functions

 showHelp ()

Variables

 $options = array( 'help', 'bureaucrat' )
if(isset($options['help'])) if(count($args)< 2) $username = $args[0]
 $password = $args[1]
 $user = User::newFromName( $username )
 $ssu = new SiteStatsUpdate( 0, 0, 0, 0, 1 )


Detailed Description

Maintenance script to create an account and grant it administrator rights.

Author:
Rob Church <robchur@gmail.com>

Definition in file createAndPromote.php.


Function Documentation

showHelp (  ) 

Definition at line 55 of file createAndPromote.php.


Variable Documentation

$options = array( 'help', 'bureaucrat' )

Definition at line 11 of file createAndPromote.php.

$password = $args[1]

$ssu = new SiteStatsUpdate( 0, 0, 0, 0, 1 )

Definition at line 50 of file createAndPromote.php.

$user = User::newFromName( $username )

Definition at line 30 of file createAndPromote.php.

Referenced by SpecialSearchOld::__construct(), SpecialSearch::__construct(), LogReader::__construct(), DatabaseSqlite::__construct(), DatabaseMssql::__construct(), Database::__construct(), Block::__construct(), StubUser::_newObject(), UserrightsPage::addLogEntry(), LoginForm::attemptAutoCreate(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), SpecialResetpass::attemptReset(), RdfMetaData::basics(), WatchlistEditor::buildRemoveList(), userOptions::CHANGER(), WatchlistEditor::checkToken(), WatchlistEditor::clearWatchlist(), Article::commitRollback(), SpecialContributions::contributionsSub(), WatchlistEditor::countWatchlist(), ApiFeedWatchlist::createFeedItem(), User::createNew(), DatabaseIbm_db2::DatabaseIbm_db2(), DatabaseOracle::DatabaseOracle(), DatabasePostgres::DatabasePostgres(), deleteDefaultMessages(), do_copy_newtalk_to_watchlist(), Article::doEdit(), RestrictUserForm::doNamespaceRestriction(), RestrictUserForm::doPageRestriction(), UserrightsPage::editUserGroupsForm(), WatchlistEditor::execute(), ApiUnblock::execute(), ApiQueryUsers::execute(), ApiQueryLogEvents::execute(), UserrightsPage::fetchUser(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), WatchedItem::fromUserTitle(), ParserTest::fuzzTest(), CoreParserFunctions::gender(), Credits::getAuthor(), SpecialListUserRestrictionsForm::getConds(), Credits::getContributors(), Article::getContributors(), UserDupes::getDupes(), UsersPager::getGroups(), RecentChange::getIRCLine(), ParserCache::getKey(), Title::getNotificationTimestamp(), EmailUserForm::getPermissionsError(), NewPagesPager::getQueryInfo(), UsersPager::getQueryInfo(), DeletedContributionsPage::getSubTitle(), DoubleRedirectJob::getUser(), LogEventsList::getUserInput(), Title::getUserPermissionsErrors(), Title::getUserPermissionsErrorsInternal(), Parser::getUserSig(), WatchlistEditor::getWatchlist(), WatchlistEditor::getWatchlistInfo(), DumpRenderer::handleRevision(), ImageHistoryList::imageHistoryLine(), LogImporter::importLine(), initialiseUser(), MediaWiki::initialize(), Block::load(), Block::loadRange(), RestrictUserForm::namespaceRestrictionForm(), Block::newFromDB(), DatabaseSqlite::newFromParams(), DatabasePostgres::newFromParams(), DatabaseOracle::newFromParams(), DatabaseMssql::newFromParams(), DatabaseIbm_db2::newFromParams(), Database::newFromParams(), User::newFromRow(), User::newFromSession(), ChangesList::newFromUser(), RecentChange::newLogEntry(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyMove(), RecentChange::notifyMoveOverRedirect(), RecentChange::notifyMoveToNew(), RecentChange::notifyNew(), Article::onArticleDelete(), DatabaseSqlite::open(), DatabasePostgres::open(), DatabaseOracle::open(), DatabaseMssql::open(), DatabaseIbm_db2::open(), Database::open(), DatabaseIbm_db2::openCataloged(), DatabaseIbm_db2::openUncataloged(), RestrictUserForm::pageRestrictionForm(), MediaWiki::performAction(), ApiQueryContributions::prepareUsername(), ApiQueryBlocks::prepareUsername(), Parser::preSaveTransform(), Parser::pstPass2(), LoadBalancer::reallyOpenConnection(), rebuildRecentChangesTablePass4(), LocalFile::recordUpload2(), ParserTest::runTest(), UserrightsPage::saveUserGroups(), LoginForm::showCreateOrLoginLink(), UserrightsPage::showEditUserGroupsForm(), IPBlockForm::showForm(), WatchlistEditor::showItemCount(), IPUnblockForm::showList(), LogEventsList::showLogExtract(), UserrightsPage::showLogFragment(), WatchlistEditor::showNormalForm(), LogEventsList::showOptions(), WatchlistEditor::showRawForm(), UndeleteForm::showRevision(), EmailUserForm::showSuccess(), WatchlistEditor::unwatchTitles(), LocalFile::upload(), userOptions::USAGER(), UserrightsPage::userCanExecute(), SpecialPage::userCanExecute(), userConditions(), SearchEngine::userNamespaces(), userSpecification(), WatchlistEditor::watchTitles(), wfSpecialLog(), wfSpecialRestrictUser(), UserRightsProxy::whoIs(), and wlCountItems().

if (isset($options['help'])) if (count($args)< 2) $username = $args[0]

Definition at line 24 of file createAndPromote.php.


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9