Go to the documentation of this file.
32 parent::__construct(
'Unlockdb',
'siteadmin' );
42 parent::checkExecutePermissions(
$user );
43 # If the lock file isn't writable, we can do sweet bugger all
44 if ( !file_exists( $wgReadOnlyFile ) ) {
53 'label-message' =>
'unlockconfirm',
59 $form->setWrapperLegend(
false );
60 $form->setHeaderText( $this->
msg(
'unlockdbtext' )->parseAsBlock() );
61 $form->setSubmitTextMsg(
'unlockbtn' );
67 if ( !$data[
'Confirm'] ) {
72 $res = unlink( $wgReadOnlyFile );
84 $out->addSubtitle( $this->
msg(
'unlockdbsuccesssub' ) );
85 $out->addWikiMsg(
'unlockdbsuccesstext' );
Implements Special:Unlockdb.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
getOutput()
Get the OutputPage being used for this instance.
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead $form
wfSuppressWarnings( $end=false)
Reference-counted warning suppression.
static newGood( $value=null)
Factory function for good results.
Special page which uses an HTMLForm to handle processing.
alterForm(HTMLForm $form)
Play with the HTMLForm if you need to more substantially.
wfRestoreWarnings()
Restore error level to previous value.
onSuccess()
Do something exciting on successful processing of the form, most likely to show a confirmation messag...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
requiresWrite()
Whether this action requires the wiki not to be locked.
msg()
Wrapper around wfMessage that sets the current context.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
getFormFields()
Get an HTMLForm descriptor array.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
checkExecutePermissions(User $user)
Called from execute() to check if the given user can perform this action.
onSubmit(array $data)
Process the form on POST submission.
An error page which can definitely be safely rendered using the OutputPage.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
static newFatal( $message)
Factory function for fatal errors.