MediaWiki fundraising/REL1_35
SystemStatus.php
Go to the documentation of this file.
1<?php
9
10 public function __construct() {
11 parent::__construct( 'SystemStatus' );
12 }
13
14 public function execute( $par ) {
15 if ( !$this->getConfig()->get( 'DonationInterfaceEnableSystemStatus' ) ) {
16 throw new BadTitleError();
17 }
18
19 // Right now we just need something that doesn't end up creating
20 // contribution_ids for testing.
21 echo "<pre>OK</pre>";
22 die();
23 }
24
25}
Show an error page on a badtitle.
getConfig()
Shortcut to get main config object.
SystemStatus will eventually be a page that runs some internal tests and reports back for Nagios/Icin...
execute( $par)
Default execute method Checks user permissions.
Shortcut to construct a special page which is unlisted by default.