Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5966759
getCentralAuthDBInfo.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
798 B
Referenced Files
None
Subscribers
None
getCentralAuthDBInfo.php
View Options
<?php
namespace
MediaWiki\Extension\CentralAuth\Maintenance
;
$IP
=
getenv
(
'MW_INSTALL_PATH'
);
if
(
$IP
===
false
)
{
$IP
=
__DIR__
.
'/../../..'
;
}
require_once
"$IP/maintenance/Maintenance.php"
;
use
MediaWiki\Extension\CentralAuth\CentralAuthServices
;
use
MediaWiki\Maintenance\Maintenance
;
class
GetCentralAuthDBInfo
extends
Maintenance
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
requireExtension
(
'CentralAuth'
);
$this
->
addDescription
(
'Display info for replica server hosting the CentralAuth database'
);
}
public
function
execute
()
{
$db
=
CentralAuthServices
::
getDatabaseManager
()->
getCentralReplicaDB
();
$host
=
$db
->
getServer
();
$this
->
output
(
"$host
\n
"
);
}
}
$maintClass
=
GetCentralAuthDBInfo
::
class
;
require_once
RUN_MAINTENANCE_IF_MAIN
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 11:53 (4 d, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fb/11/dd88572617291b4d80070fbaab87
Default Alt Text
getCentralAuthDBInfo.php (798 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment