Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.14.144.240
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
public /
myadmin /
libraries /
classes /
Delete
Unzip
Name
Size
Permission
Date
Action
Charsets
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Config
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Controllers
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Database
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Dbi
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Di
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Display
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Engines
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Gis
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Navigation
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Plugins
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Properties
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Rte
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Server
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Setup
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Twig
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Utils
[ DIR ]
drwxr-xr-x
2020-10-15 12:07
Advisor.php
19.56
KB
-rw-r--r--
2021-02-05 18:26
Bookmark.php
10.74
KB
-rw-r--r--
2021-02-05 18:26
BrowseForeigners.php
11.15
KB
-rw-r--r--
2021-02-05 18:26
CentralColumns.php
44.19
KB
-rw-r--r--
2021-02-05 18:26
Charsets.php
6.14
KB
-rw-r--r--
2021-02-05 18:26
CheckUserPrivileges.php
12.59
KB
-rw-r--r--
2021-02-05 18:26
Config.php
57.38
KB
-rw-r--r--
2021-02-05 18:26
Console.php
3.69
KB
-rw-r--r--
2021-02-05 18:26
Core.php
38.31
KB
-rw-r--r--
2021-02-05 18:26
CreateAddField.php
17.91
KB
-rw-r--r--
2021-02-05 18:26
DatabaseInterface.php
104.47
KB
-rw-r--r--
2021-02-05 18:26
Encoding.php
8.68
KB
-rw-r--r--
2021-02-05 18:26
Error.php
13.34
KB
-rw-r--r--
2021-02-05 18:26
ErrorHandler.php
17.17
KB
-rw-r--r--
2021-02-05 18:26
ErrorReport.php
8.92
KB
-rw-r--r--
2021-02-05 18:26
Export.php
42.76
KB
-rw-r--r--
2021-02-05 18:26
File.php
21.29
KB
-rw-r--r--
2021-02-05 18:26
FileListing.php
2.83
KB
-rw-r--r--
2021-02-05 18:26
Font.php
5.54
KB
-rw-r--r--
2021-02-05 18:26
Footer.php
10.6
KB
-rw-r--r--
2021-02-05 18:26
Header.php
21.87
KB
-rw-r--r--
2021-02-05 18:26
Import.php
56.56
KB
-rw-r--r--
2021-02-05 18:26
Index.php
24.5
KB
-rw-r--r--
2021-02-05 18:26
IndexColumn.php
4.44
KB
-rw-r--r--
2021-02-05 18:26
InsertEdit.php
129.31
KB
-rw-r--r--
2021-02-05 18:26
InternalRelations.php
17.42
KB
-rw-r--r--
2021-02-05 18:26
IpAllowDeny.php
9.57
KB
-rw-r--r--
2021-02-05 18:26
Language.php
4.31
KB
-rw-r--r--
2021-02-05 18:26
LanguageManager.php
23.71
KB
-rw-r--r--
2021-02-05 18:26
Linter.php
5.21
KB
-rw-r--r--
2021-02-05 18:26
ListAbstract.php
2.51
KB
-rw-r--r--
2021-02-05 18:26
ListDatabase.php
4.34
KB
-rw-r--r--
2021-02-05 18:26
Logging.php
2.6
KB
-rw-r--r--
2021-02-05 18:26
Menu.php
22.36
KB
-rw-r--r--
2021-02-05 18:26
Message.php
19.32
KB
-rw-r--r--
2021-02-05 18:26
Mime.php
916
B
-rw-r--r--
2021-02-05 18:26
MultSubmits.php
23.64
KB
-rw-r--r--
2021-02-05 18:26
Normalization.php
40.41
KB
-rw-r--r--
2021-02-05 18:26
OpenDocument.php
8.52
KB
-rw-r--r--
2021-02-05 18:26
Operations.php
81.25
KB
-rw-r--r--
2021-02-05 18:26
OutputBuffering.php
3.71
KB
-rw-r--r--
2021-02-05 18:26
ParseAnalyze.php
2.55
KB
-rw-r--r--
2021-02-05 18:26
Partition.php
7.27
KB
-rw-r--r--
2021-02-05 18:26
Pdf.php
4.37
KB
-rw-r--r--
2021-02-05 18:26
Plugins.php
22.95
KB
-rw-r--r--
2021-02-05 18:27
RecentFavoriteTable.php
12.04
KB
-rw-r--r--
2021-02-05 18:27
Relation.php
79.64
KB
-rw-r--r--
2021-02-05 18:27
RelationCleanup.php
15
KB
-rw-r--r--
2021-02-05 18:27
Replication.php
5.75
KB
-rw-r--r--
2021-02-05 18:27
ReplicationGui.php
21.23
KB
-rw-r--r--
2021-02-05 18:27
Response.php
16.14
KB
-rw-r--r--
2021-02-05 18:27
Sanitize.php
14.51
KB
-rw-r--r--
2021-02-05 18:27
SavedSearches.php
11.94
KB
-rw-r--r--
2021-02-05 18:27
Scripts.php
3.65
KB
-rw-r--r--
2021-02-05 18:27
Session.php
7.62
KB
-rw-r--r--
2021-02-05 18:27
Sql.php
82.09
KB
-rw-r--r--
2021-02-05 18:27
SqlQueryForm.php
17.63
KB
-rw-r--r--
2021-02-05 18:27
StorageEngine.php
13.75
KB
-rw-r--r--
2021-02-05 18:27
SubPartition.php
3.55
KB
-rw-r--r--
2021-02-05 18:27
SysInfo.php
1.61
KB
-rw-r--r--
2021-02-05 18:27
SysInfoBase.php
822
B
-rw-r--r--
2021-02-05 18:27
SysInfoLinux.php
2.16
KB
-rw-r--r--
2021-02-05 18:27
SysInfoSunOS.php
1.89
KB
-rw-r--r--
2021-02-05 18:27
SysInfoWINNT.php
3.27
KB
-rw-r--r--
2021-02-05 18:27
SystemDatabase.php
3.97
KB
-rw-r--r--
2021-02-05 18:27
Table.php
94.87
KB
-rw-r--r--
2021-02-05 18:27
TablePartitionDefinition.php
6.64
KB
-rw-r--r--
2021-02-05 18:27
Template.php
4.02
KB
-rw-r--r--
2021-02-05 18:27
Theme.php
8.62
KB
-rw-r--r--
2021-02-05 18:27
ThemeManager.php
10.42
KB
-rw-r--r--
2021-02-05 18:27
Tracker.php
30.13
KB
-rw-r--r--
2021-02-05 18:27
Tracking.php
40.26
KB
-rw-r--r--
2021-02-05 18:27
Transformations.php
16.27
KB
-rw-r--r--
2021-02-05 18:27
TwoFactor.php
7.14
KB
-rw-r--r--
2021-02-05 18:27
Types.php
24.93
KB
-rw-r--r--
2021-02-05 18:27
Url.php
8.32
KB
-rw-r--r--
2021-02-05 18:27
UserPassword.php
9
KB
-rw-r--r--
2021-02-05 18:27
UserPreferences.php
8.62
KB
-rw-r--r--
2021-02-05 18:27
UserPreferencesHeader.php
4.13
KB
-rw-r--r--
2021-02-05 18:27
Util.php
168.02
KB
-rw-r--r--
2021-02-05 18:27
VersionInformation.php
6.92
KB
-rw-r--r--
2021-02-05 18:27
ZipExtension.php
10.25
KB
-rw-r--r--
2021-02-05 18:27
Save
Rename
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Saved searches managing * * @package PhpMyAdmin */ declare(strict_types=1); namespace PhpMyAdmin; /** * Saved searches managing * * @package PhpMyAdmin */ class SavedSearches { /** * Global configuration * @var array */ private $_config = null; /** * Id * @var int|null */ private $_id = null; /** * Username * @var string */ private $_username = null; /** * DB name * @var string */ private $_dbname = null; /** * Saved search name * @var string */ private $_searchName = null; /** * Criterias * @var array */ private $_criterias = null; /** * @var Relation */ private $relation; /** * Public constructor * * @param array $config Global configuration * @param Relation $relation Relation instance */ public function __construct(array $config, Relation $relation) { $this->setConfig($config); $this->relation = $relation; } /** * Setter of id * * @param int|null $searchId Id of search * * @return static */ public function setId($searchId) { $searchId = (int) $searchId; if (empty($searchId)) { $searchId = null; } $this->_id = $searchId; return $this; } /** * Getter of id * * @return int|null */ public function getId() { return $this->_id; } /** * Setter of searchName * * @param string $searchName Saved search name * * @return static */ public function setSearchName($searchName) { $this->_searchName = $searchName; return $this; } /** * Getter of searchName * * @return string */ public function getSearchName() { return $this->_searchName; } /** * Setter of config * * @param array $config Global configuration * * @return static */ public function setConfig(array $config) { $this->_config = $config; return $this; } /** * Getter of config * * @return array */ public function getConfig() { return $this->_config; } /** * Setter for criterias * * @param array|string $criterias Criterias of saved searches * @param bool $json Criterias are in JSON format * * @return static */ public function setCriterias($criterias, $json = false) { if (true === $json && is_string($criterias)) { $this->_criterias = json_decode($criterias, true); return $this; } $aListFieldsToGet = [ 'criteriaColumn', 'criteriaSort', 'criteriaShow', 'criteria', 'criteriaAndOrRow', 'criteriaAndOrColumn', 'rows', 'TableList', ]; $data = []; $data['criteriaColumnCount'] = count($criterias['criteriaColumn']); foreach ($aListFieldsToGet as $field) { if (isset($criterias[$field])) { $data[$field] = $criterias[$field]; } } /* Limit amount of rows */ if (! isset($data['rows'])) { $data['rows'] = 0; } else { $data['rows'] = min( max(0, intval($data['rows'])), 100 ); } for ($i = 0; $i <= $data['rows']; $i++) { $data['Or' . $i] = $criterias['Or' . $i]; } $this->_criterias = $data; return $this; } /** * Getter for criterias * * @return array */ public function getCriterias() { return $this->_criterias; } /** * Setter for username * * @param string $username Username * * @return static */ public function setUsername($username) { $this->_username = $username; return $this; } /** * Getter for username * * @return string */ public function getUsername() { return $this->_username; } /** * Setter for DB name * * @param string $dbname DB name * * @return static */ public function setDbname($dbname) { $this->_dbname = $dbname; return $this; } /** * Getter for DB name * * @return string */ public function getDbname() { return $this->_dbname; } /** * Save the search * * @return boolean */ public function save() { if (null == $this->getSearchName()) { $message = Message::error( __('Please provide a name for this bookmarked search.') ); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('fieldWithError', 'searchName'); $response->addJSON('message', $message); exit; } if (null == $this->getUsername() || null == $this->getDbname() || null == $this->getSearchName() || null == $this->getCriterias() ) { $message = Message::error( __('Missing information to save the bookmarked search.') ); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('message', $message); exit; } $savedSearchesTbl = Util::backquote($this->_config['cfgRelation']['db']) . "." . Util::backquote($this->_config['cfgRelation']['savedsearches']); //If it's an insert. if (null === $this->getId()) { $wheres = [ "search_name = '" . $GLOBALS['dbi']->escapeString($this->getSearchName()) . "'", ]; $existingSearches = $this->getList($wheres); if (! empty($existingSearches)) { $message = Message::error( __('An entry with this name already exists.') ); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('fieldWithError', 'searchName'); $response->addJSON('message', $message); exit; } $sqlQuery = "INSERT INTO " . $savedSearchesTbl . "(`username`, `db_name`, `search_name`, `search_data`)" . " VALUES (" . "'" . $GLOBALS['dbi']->escapeString($this->getUsername()) . "'," . "'" . $GLOBALS['dbi']->escapeString($this->getDbname()) . "'," . "'" . $GLOBALS['dbi']->escapeString($this->getSearchName()) . "'," . "'" . $GLOBALS['dbi']->escapeString(json_encode($this->getCriterias())) . "')"; $result = (bool) $this->relation->queryAsControlUser($sqlQuery); if (! $result) { return false; } $this->setId($GLOBALS['dbi']->insertId()); return true; } //Else, it's an update. $wheres = [ "id != " . $this->getId(), "search_name = '" . $GLOBALS['dbi']->escapeString($this->getSearchName()) . "'", ]; $existingSearches = $this->getList($wheres); if (! empty($existingSearches)) { $message = Message::error( __('An entry with this name already exists.') ); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('fieldWithError', 'searchName'); $response->addJSON('message', $message); exit; } $sqlQuery = "UPDATE " . $savedSearchesTbl . "SET `search_name` = '" . $GLOBALS['dbi']->escapeString($this->getSearchName()) . "', " . "`search_data` = '" . $GLOBALS['dbi']->escapeString(json_encode($this->getCriterias())) . "' " . "WHERE id = " . $this->getId(); return (bool) $this->relation->queryAsControlUser($sqlQuery); } /** * Delete the search * * @return boolean */ public function delete() { if (null == $this->getId()) { $message = Message::error( __('Missing information to delete the search.') ); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('fieldWithError', 'searchId'); $response->addJSON('message', $message); exit; } $savedSearchesTbl = Util::backquote($this->_config['cfgRelation']['db']) . "." . Util::backquote($this->_config['cfgRelation']['savedsearches']); $sqlQuery = "DELETE FROM " . $savedSearchesTbl . "WHERE id = '" . $GLOBALS['dbi']->escapeString((string) $this->getId()) . "'"; return (bool) $this->relation->queryAsControlUser($sqlQuery); } /** * Load the current search from an id. * * @return bool Success */ public function load() { if (null == $this->getId()) { $message = Message::error( __('Missing information to load the search.') ); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('fieldWithError', 'searchId'); $response->addJSON('message', $message); exit; } $savedSearchesTbl = Util::backquote($this->_config['cfgRelation']['db']) . "." . Util::backquote($this->_config['cfgRelation']['savedsearches']); $sqlQuery = "SELECT id, search_name, search_data " . "FROM " . $savedSearchesTbl . " " . "WHERE id = '" . $GLOBALS['dbi']->escapeString((string) $this->getId()) . "' "; $resList = $this->relation->queryAsControlUser($sqlQuery); if (false === ($oneResult = $GLOBALS['dbi']->fetchArray($resList))) { $message = Message::error(__('Error while loading the search.')); $response = Response::getInstance(); $response->setRequestStatus($message->isSuccess()); $response->addJSON('fieldWithError', 'searchId'); $response->addJSON('message', $message); exit; } $this->setSearchName($oneResult['search_name']) ->setCriterias($oneResult['search_data'], true); return true; } /** * Get the list of saved searches of a user on a DB * * @param string[] $wheres List of filters * * @return array List of saved searches or empty array on failure */ public function getList(array $wheres = []) { if (null == $this->getUsername() || null == $this->getDbname() ) { return []; } $savedSearchesTbl = Util::backquote($this->_config['cfgRelation']['db']) . "." . Util::backquote($this->_config['cfgRelation']['savedsearches']); $sqlQuery = "SELECT id, search_name " . "FROM " . $savedSearchesTbl . " " . "WHERE " . "username = '" . $GLOBALS['dbi']->escapeString($this->getUsername()) . "' " . "AND db_name = '" . $GLOBALS['dbi']->escapeString($this->getDbname()) . "' "; foreach ($wheres as $where) { $sqlQuery .= "AND " . $where . " "; } $sqlQuery .= "order by search_name ASC "; $resList = $this->relation->queryAsControlUser($sqlQuery); $list = []; while ($oneResult = $GLOBALS['dbi']->fetchArray($resList)) { $list[$oneResult['id']] = $oneResult['search_name']; } return $list; } }