Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
wiki.bernardino.org /
includes /
filerepo /
Delete
Unzip
Name
Size
Permission
Date
Action
file
[ DIR ]
drwxr-xr-x
2016-11-28 20:20
ArchivedFile.php
8.9
KB
-rw-r--r--
2011-03-14 02:04
FSRepo.php
2.49
KB
-rw-r--r--
2016-11-28 20:20
File.php
38.33
KB
-rw-r--r--
2011-12-26 00:57
FileBackendDBRepoWrapper.php
10.37
KB
-rw-r--r--
2016-11-28 20:20
FileRepo.php
56.09
KB
-rw-r--r--
2016-11-28 20:20
FileRepoStatus.php
1.01
KB
-rw-r--r--
2016-11-28 20:20
ForeignAPIFile.php
5.84
KB
-rw-r--r--
2011-07-07 00:07
ForeignAPIRepo.php
16.35
KB
-rw-r--r--
2016-11-28 20:20
ForeignDBFile.php
1.48
KB
-rw-r--r--
2011-05-28 19:51
ForeignDBRepo.php
3.51
KB
-rw-r--r--
2016-11-28 20:20
ForeignDBViaLBRepo.php
2.79
KB
-rw-r--r--
2016-11-28 20:20
LocalFile.php
61.5
KB
-rw-r--r--
2011-11-09 17:06
LocalRepo.php
16
KB
-rw-r--r--
2016-11-28 20:20
NullRepo.php
1.15
KB
-rw-r--r--
2016-11-28 20:20
OldLocalFile.php
7.49
KB
-rw-r--r--
2011-11-09 17:06
README
1.93
KB
-rw-r--r--
2016-11-28 20:20
RepoGroup.php
12.08
KB
-rw-r--r--
2016-11-28 20:20
UnregisteredLocalFile.php
3.14
KB
-rw-r--r--
2011-05-28 20:59
Save
Rename
<?php /** * A foreign repository with an accessible MediaWiki database. * * 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 FileRepo */ /** * A foreign repository with an accessible MediaWiki database * * @ingroup FileRepo */ class ForeignDBRepo extends LocalRepo { /** @var string */ protected $dbType; /** @var string */ protected $dbServer; /** @var string */ protected $dbUser; /** @var string */ protected $dbPassword; /** @var string */ protected $dbName; /** @var string */ protected $dbFlags; /** @var string */ protected $tablePrefix; /** @var bool */ protected $hasSharedCache; /** @var IDatabase */ protected $dbConn; /** @var callable */ protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ]; /** @var callable */ protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ]; /** * @param array|null $info */ function __construct( $info ) { parent::__construct( $info ); $this->dbType = $info['dbType']; $this->dbServer = $info['dbServer']; $this->dbUser = $info['dbUser']; $this->dbPassword = $info['dbPassword']; $this->dbName = $info['dbName']; $this->dbFlags = $info['dbFlags']; $this->tablePrefix = $info['tablePrefix']; $this->hasSharedCache = $info['hasSharedCache']; } /** * @return IDatabase */ function getMasterDB() { if ( !isset( $this->dbConn ) ) { $func = $this->getDBFactory(); $this->dbConn = $func( DB_MASTER ); } return $this->dbConn; } /** * @return IDatabase */ function getSlaveDB() { return $this->getMasterDB(); } /** * @return Closure */ protected function getDBFactory() { $type = $this->dbType; $params = [ 'host' => $this->dbServer, 'user' => $this->dbUser, 'password' => $this->dbPassword, 'dbname' => $this->dbName, 'flags' => $this->dbFlags, 'tablePrefix' => $this->tablePrefix, 'foreign' => true, ]; return function ( $index ) use ( $type, $params ) { return Database::factory( $type, $params ); }; } /** * @return bool */ function hasSharedCache() { return $this->hasSharedCache; } /** * Get a key on the primary cache for this repository. * Returns false if the repository's cache is not accessible at this site. * The parameters are the parts of the key, as for wfMemcKey(). * @return bool|mixed */ function getSharedCacheKey( /*...*/ ) { if ( $this->hasSharedCache() ) { $args = func_get_args(); array_unshift( $args, $this->dbName, $this->tablePrefix ); return call_user_func_array( 'wfForeignMemcKey', $args ); } else { return false; } } protected function assertWritableRepo() { throw new MWException( get_class( $this ) . ': write operations are not supported.' ); } /** * Return information about the repository. * * @return array * @since 1.22 */ function getInfo() { return FileRepo::getInfo(); } }