function __construct() { parent::__construct('TitusQueryTool'); $this->language = ""; $this->languageInfo = Misc::getActiveLanguageNames(); $GLOBALS['wgHooks']['ShowSideBar'][] = array('TitusQueryTool::removeSideBarCallback'); }
public function __construct() { global $wgMaxUploadSize; UnlistedSpecialPage::UnlistedSpecialPage('ImageUploadHandler'); $this->executeAsSpecialPage = false; $this->maxFilesize = $wgMaxUploadSize; }
public function __construct() { parent::__construct( 'UploadStash', 'upload' ); try { $this->stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash(); } catch ( UploadStashNotAvailableException $e ) { } }
public function __construct() { global $wgTitle; $this->specialPage = $wgTitle->getPartialUrl(); $this->editDescs = $this->specialPage == 'AdminEditMetaInfo'; UnlistedSpecialPage::UnlistedSpecialPage($this->specialPage); }
/** * Constructor */ public function __construct() { global $wgOutboundScreenConfig; $this->redirectDelay = $wgOutboundScreenConfig['redirectDelay']; $this->adLayoutMode = strtoupper($wgOutboundScreenConfig['adLayoutMode']); parent::__construct('Outbound'); }
/** * Constructor */ public function __construct() { global $wgUser; parent::__construct('ArticleFeedbackv5'); $showHidden = $wgUser->isAllowed('aftv5-see-hidden-feedback'); $showDeleted = $wgUser->isAllowed('aftv5-see-deleted-feedback'); if ($showHidden) { array_push($this->filters, 'unhelpful', 'abusive', 'invisible'); # removing the 'needsoversight' filter, per Fabrice } if ($showDeleted) { $this->filters[] = 'deleted'; } // NOTE: The 'all' option actually displays different things // based on the users role, which is handled in the filter: // - deleter's all is actually everything // - hidder's all is 'visible + hidden' // - regular non-admin only has 'all visible' not 'all' // The all option, if any, is only added once, at the end of the list, // which is why it's down here instead. if ($showDeleted) { $this->filters[] = 'all'; } elseif ($showHidden) { $this->filters[] = 'notdeleted'; } }
public function __construct() { global $wgExternalPagesSites, $wgExternalPages, $wgExternalPagesCacheExpiry; parent::__construct('ExternalPages'); $this->epSites = $wgExternalPagesSites; $this->epPages = $wgExternalPages; $this->epExpiry = $wgExternalPagesCacheExpiry; }
public function __construct() { global $wgEmailTestSecretToken; parent::__construct('EmailTest', 'emailtest'); $this->mChallengeToken = $wgEmailTestSecretToken; $this->mConfirmToken = time() . '-' . rand(10000, 99999) . '_emailtest'; $this->mText = "The quick brown fox jumps over the lazy dog"; }
public function __construct() { UnlistedSpecialPage::UnlistedSpecialPage('BounceTimeLogger'); //this page gets requested onUnload. set ignore_user_abort() //to make sure this script finishes executing even if the //client disconnects mid-way. ignore_user_abort(true); }
public function __construct() { parent::__construct( 'VariablePage' ); // make sure configuration will result in something sane if ( !$this->sanityCheck() ) { throw new MWException( 'VariablePage configuation not sane! Either $wgVariablePageDefault must be set or probabilites in $wgVariablePagePossibilities must add up to 100.' ); } }
function __construct() { parent::__construct($this->getPageName(), $this->getRightRequirement()); $this->mIncludable = false; global $wgOut, $wgUser, $wgRequest; $this->output = $wgOut; $this->user = $wgUser; $this->request = $wgRequest; }
function __construct() { global $wgMessageCache, $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgHooks; UnlistedSpecialPage::UnlistedSpecialPage('RateArticle'); $wgHooks['AfterArticleDisplayed'][] = array("RateArticle::showForm"); $wgHooks['ArticleDelete'][] = array("RateArticle::clearRatingsOnDelete"); $wgLogTypes[] = 'accuracy'; $wgLogNames['accuracy'] = 'accuracylogpage'; $wgLogHeaders['accuracy'] = 'accuracylogtext'; }
function __construct() { parent::__construct('Html5editor'); $this->mInterwiki = array(); $dbr = wfGetDB(DB_SLAVE); $res = $dbr->select('interwiki', array('iw_prefix', 'iw_url')); while ($row = $dbr->fetchObject($res)) { $this->mInterwiki[$row->iw_prefix] = $row->iw_url; } }
public function __construct($request = null) { global $wgRequest; parent::__construct('UploadStash', 'upload'); try { $this->stash = RepoGroup::singleton()->getLocalRepo()->getUploadStash(); } catch (UploadStashNotAvailableException $e) { return null; } $this->loadRequest(is_null($request) ? $wgRequest : $request); }
/** * Constructor following MW initialization convention */ public function __construct() { try { $apiHandler = new FirefoxAccountsManager($GLOBALS['wgWebPlatformAuth']); } catch (Exception $e) { $this->getOutput()->showErrorPage('error', $e->getMessage()); return; } $this->apiHandler = $apiHandler; parent::__construct('AccountsHandler'); }
/** * standard constructor * @access public */ public function __construct($name = "Sitemap") { parent::__construct($name); $this->mPriorities = array(NS_MAIN => '1.0', NS_TALK => '0.1', NS_USER => '0.2', NS_USER_TALK => '0.1', NS_PROJECT => '0.1', NS_PROJECT_TALK => '0.1', NS_FILE => '0.5', NS_FILE_TALK => '0.1', NS_MEDIAWIKI => '0.1', NS_MEDIAWIKI_TALK => '0.1', NS_TEMPLATE => '0.1', NS_TEMPLATE_TALK => '0.1', NS_HELP => '0.1', NS_HELP_TALK => '0.1', NS_CATEGORY => '1.0', NS_CATEGORY_TALK => '0.1'); $this->mSizeLimit = pow(2, 20) * 10 - 20; // safe margin $this->mLinkLimit = 5000; $this->mPage = 0; $this->mCacheTime = 86400 * 14; // cron is run every week but we want to keep them longer $this->mMediaService = new MediaQueryService(); }
public function __construct() { global $wgHooks; parent::__construct('WelcomeWagon'); $wgHooks['getToolStatus'][] = array('Misc::defineAsTool'); $this->maxMessagesPerUser = 2; $this->maxSkipsPerUser = 3; //set up the cache variables $this->userIdsKey = wfMemcKey("welcomewagon_userids"); $this->userMessagesKey = wfMemcKey("welcomewagon_usermessages"); $this->userSkipsKey = wfMemcKey("welcomewagon_userskips"); $this->cacheOk = wfMemcKey("welcomewagon_cacheok"); }
function __construct() { global $wgUser, $wgHooks; UnlistedSpecialPage::UnlistedSpecialPage('Categorizer'); $wgHooks['getToolStatus'][] = array('Misc::defineAsTool'); $userId = $wgUser->getId(); $this->pageIdsKey = wfMemcKey("cattool_pageids1"); $this->inUseKey = wfMemcKey("cattool_inuse"); $this->skippedKey = wfMemcKey("cattool_{$userId}_skipped"); $this->noMoreArticlesKey = wfMemcKey("cattool_nomore1"); $this->halfHour = 60 * 30; $this->oneHour = 60 * 60; $this->oneWeek = 60 * 60 * 24 * 7; }
public function __construct() { parent::__construct('ChangeEmail'); }
public function __construct() { parent::__construct('RunJobs'); }
/** * contructor */ function __construct() { parent::__construct('InterwikiDispatcher'); }
function __construct($source = null) { UnlistedSpecialPage::UnlistedSpecialPage('GPlusLogin'); }
public function __construct() { parent::__construct('Opauth'); }
public function __construct() { parent::__construct('Captcha'); }
public function __construct() { parent::__construct('HAWelcomeEdit', 'HAWelcomeEdit', null, false); }
function __construct() { UnlistedSpecialPage::UnlistedSpecialPage('NewHowtoArticles'); }
public function __construct() { parent::__construct('Revisiondelete', 'deletedhistory'); }
public function __construct() { parent::__construct('EditWatchlist'); }
public function __construct() { $this->startTime = microtime(true); UnlistedSpecialPage::UnlistedSpecialPage('Alien'); }
public function __construct() { parent::__construct('WikihowShare'); }