Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6151760
Maintenance.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
Maintenance.php
View Options
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* @ingroup Maintenance
* @defgroup Maintenance Maintenance
*/
/**
* @defgroup MaintenanceArchive Maintenance archives
* @ingroup Maintenance
*/
if
(
!
defined
(
'RUN_MAINTENANCE_IF_MAIN'
)
)
{
// Define this so scripts can easily find doMaintenance.php
define
(
'RUN_MAINTENANCE_IF_MAIN'
,
__DIR__
.
'/doMaintenance.php'
);
// Original name for compat, harmless
// Support: MediaWiki < 1.31
define
(
'DO_MAINTENANCE'
,
RUN_MAINTENANCE_IF_MAIN
);
}
if
(
defined
(
'MEDIAWIKI'
)
)
{
// This file is included by many autoloaded class files, and so may
// potentially be invoked in the context of a web request or another CLI
// script. It's not appropriate to run the following file-scope code in
// such a case.
return
;
}
// Abort if called from a web server
// wfIsCLI() is not available yet
if
(
PHP_SAPI
!==
'cli'
&&
PHP_SAPI
!==
'phpdbg'
)
{
echo
"This script must be run from the command line
\n
"
;
exit
(
1
);
}
define
(
'MW_ENTRY_POINT'
,
'cli'
);
// Bail on old versions of PHP, or if composer has not been run yet to install
// dependencies.
require_once
__DIR__
.
'/../includes/BootstrapHelperFunctions.php'
;
require_once
__DIR__
.
'/../includes/PHPVersionCheck.php'
;
wfEntryPointCheck
(
'text'
);
/**
* @var string|false $maintClass
* @phan-var class-string|false
*/
$maintClass
=
false
;
// Some extensions rely on MW_INSTALL_PATH to find core files to include. Setting it here helps them
// if they're included by a core script (like DatabaseUpdater) after Maintenance.php has already
// been run.
if
(
strval
(
getenv
(
'MW_INSTALL_PATH'
)
)
===
''
)
{
putenv
(
'MW_INSTALL_PATH='
.
realpath
(
__DIR__
.
'/..'
)
);
}
require_once
__DIR__
.
'/includes/Maintenance.php'
;
require_once
__DIR__
.
'/includes/LoggedUpdateMaintenance.php'
;
require_once
__DIR__
.
'/includes/FakeMaintenance.php'
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 8 2026, 03:02 (6 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3e/05/49482bb1247ba7d5565fd132446d
Default Alt Text
Maintenance.php (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment