Go to the documentation of this file.
33 parent::__construct(
'Lockdb',
'siteadmin' );
43 parent::checkExecutePermissions(
$user );
44 # If the lock file isn't writable, we can do sweet bugger all
45 if ( !is_writable( dirname( $wgReadOnlyFile ) ) ) {
55 'vertical-label' =>
true,
56 'label-message' =>
'enterlockreason',
60 'label-message' =>
'lockconfirm',
66 $form->setWrapperLegend(
false );
67 $form->setHeaderText( $this->
msg(
'lockdbtext' )->parseAsBlock() );
68 $form->setSubmitTextMsg(
'lockbtn' );
74 if ( !$data[
'Confirm'] ) {
79 $fp = fopen( $wgReadOnlyFile,
'w' );
82 if (
false === $fp ) {
83 # This used to show a file not found error, but the likeliest reason for fopen()
84 # to fail at this point is insufficient permission to write to the file...good old
85 # is_writable() is plain wrong in some cases, it seems...
88 fwrite( $fp, $data[
'Reason'] );
90 fwrite( $fp,
"\n<p>" . $this->
msg(
'lockedbyandtime',
94 )->inContentLanguage()->text() .
"</p>\n" );
102 $out->addSubtitle( $this->
msg(
'lockdbsuccesssub' ) );
103 $out->addWikiMsg(
'lockdbsuccesstext' );
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.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the content language as $wgContLang
getName()
Get the name of this Special Page.
alterForm(HTMLForm $form)
Play with the HTMLForm if you need to more substantially.
requiresWrite()
Whether this action requires the wiki not to be locked.
wfRestoreWarnings()
Restore error level to previous value.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getUser()
Shortcut to get the User executing this instance.
when a variable name is used in a it is silently declared as a new masking the global
wfTimestampNow()
Convenience function; returns MediaWiki timestamp for the present time.
msg()
Wrapper around wfMessage that sets the current context.
A form to make the database readonly (eg for maintenance purposes).
onSuccess()
Do something exciting on successful processing of the form, most likely to show a confirmation messag...
getFormFields()
Get an HTMLForm descriptor array.
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
onSubmit(array $data)
Process the form on POST submission.
An error page which can definitely be safely rendered using the OutputPage.
checkExecutePermissions(User $user)
Called from execute() to check if the given user can perform this action.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
static newFatal( $message)
Factory function for fatal errors.