Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
htdocs /
phpMyAdmin /
libraries /
[ HOME SHELL ]
Name
Size
Permission
Action
certs
[ DIR ]
drwxrwxr-x
config
[ DIR ]
drwxrwxr-x
controllers
[ DIR ]
drwxrwxr-x
dbi
[ DIR ]
drwxrwxr-x
di
[ DIR ]
drwxrwxr-x
engines
[ DIR ]
drwxrwxr-x
gis
[ DIR ]
drwxrwxr-x
navigation
[ DIR ]
drwxrwxr-x
plugins
[ DIR ]
drwxrwxr-x
properties
[ DIR ]
drwxrwxr-x
rte
[ DIR ]
drwxrwxr-x
.1724597954
0
B
-rwxrwxr-x
.1724621370
0
B
-rwxrwxr-x
.1724621595
0
B
-rwxrwxr-x
.1724693108
0
B
-rwxrwxr-x
.1724693161
0
B
-rwxrwxr-x
.1724693163
0
B
-rwxrwxr-x
.1724716554
0
B
-rwxrwxr-x
.1724716619
0
B
-rwxrwxr-x
.1724995546
0
B
-rwxrwxr-x
.1725018452
0
B
-rwxrwxr-x
.1725018571
0
B
-rwxrwxr-x
.1725018746
0
B
-rwxrwxr-x
.1725030833
0
B
-rwxrwxr-x
.1725030838
0
B
-rwxrwxr-x
.1725030897
0
B
-rwxrwxr-x
.1725030901
0
B
-rwxrwxr-x
advisor.lib.php
1.58
KB
-rwxrwxr-x
Advisor.php
16.32
KB
-rwxrwxr-x
advisory_rules.txt
25.94
KB
-rwxrwxr-x
Bookmark.php
9.76
KB
-rwxrwxr-x
browse_foreigners.lib.php
9.63
KB
-rwxrwxr-x
central_columns.lib.php
49.24
KB
-rwxrwxr-x
Charsets.php
22.67
KB
-rwxrwxr-x
check_user_privileges.lib.php
11
KB
-rwxrwxr-x
common.inc.php
29.21
KB
-rwxrwxr-x
config.default.php
65.5
KB
-rwxrwxr-x
Config.php
55.12
KB
-rwxrwxr-x
config.values.php
10.24
KB
-rwxrwxr-x
Console.php
3.38
KB
-rwxrwxr-x
core.lib.php
29.45
KB
-rwxrwxr-x
create_addfield.lib.php
15.7
KB
-rwxrwxr-x
database_interface.inc.php
2.63
KB
-rwxrwxr-x
DatabaseInterface.php
95.6
KB
-rwxrwxr-x
db_common.inc.php
3.04
KB
-rwxrwxr-x
db_designer.lib.php
10.77
KB
-rwxrwxr-x
DbList.php
1.91
KB
-rwxrwxr-x
DbQbe.php
68.78
KB
-rwxrwxr-x
DbSearch.php
17.06
KB
-rwxrwxr-x
display_change_password.lib.php
6.15
KB
-rwxrwxr-x
display_create_table.lib.php
1.53
KB
-rwxrwxr-x
display_export.lib.php
35.53
KB
-rwxrwxr-x
display_git_revision.lib.php
2.88
KB
-rwxrwxr-x
display_import_ajax.lib.php
3.13
KB
-rwxrwxr-x
display_import.lib.php
24.38
KB
-rwxrwxr-x
DisplayResults.php
206.87
KB
-rwxrwxr-x
Encoding.php
8.93
KB
-rwxrwxr-x
ErrorHandler.php
16.41
KB
-rwxrwxr-x
error.inc.php
1.27
KB
-rwxrwxr-x
Error.php
12.87
KB
-rwxrwxr-x
error_report.lib.php
9.25
KB
-rwxrwxr-x
file_listing.lib.php
2.37
KB
-rwxrwxr-x
File.php
20.62
KB
-rwxrwxr-x
Font.php
4.24
KB
-rwxrwxr-x
Footer.php
10.29
KB
-rwxrwxr-x
Header.php
25.21
KB
-rwxrwxr-x
import.lib.php
49.9
KB
-rwxrwxr-x
inc.php
30.99
KB
-rwxrwxr-x
IndexColumn.php
4.46
KB
-rwxrwxr-x
index.lib.php
1.13
KB
-rwxrwxr-x
Index.php
23.38
KB
-rwxrwxr-x
information_schema_relations.lib.php
10.95
KB
-rwxrwxr-x
insert_edit.lib.php
112.42
KB
-rwxrwxr-x
ip_allow_deny.lib.php
8.09
KB
-rwxrwxr-x
LanguageManager.php
22.63
KB
-rwxrwxr-x
Language.php
4.21
KB
-rwxrwxr-x
language_stats.inc.php
1.5
KB
-rwxrwxr-x
Linter.php
5.09
KB
-rwxrwxr-x
ListAbstract.php
3.15
KB
-rwxrwxr-x
ListDatabase.php
4.63
KB
-rwxrwxr-x
Logging.php
1023
B
-rwxrwxr-x
Menu.php
21.36
KB
-rwxrwxr-x
Message.php
19.14
KB
-rwxrwxr-x
mime.lib.php
704
B
-rwxrwxr-x
mult_submits.inc.php
10.46
KB
-rwxrwxr-x
mult_submits.lib.php
20.45
KB
-rwxrwxr-x
normalization.lib.php
33.97
KB
-rwxrwxr-x
OpenDocument.php
8.52
KB
-rwxrwxr-x
operations.lib.php
71.3
KB
-rwxrwxr-x
OutputBuffering.php
3.59
KB
-rwxrwxr-x
parse_analyze.lib.php
2.18
KB
-rwxrwxr-x
Partition.php
9
KB
-rwxrwxr-x
PDF.php
3.92
KB
-rwxrwxr-x
plugin_interface.lib.php
19.69
KB
-rwxrwxr-x
pmd_common.php
24.1
KB
-rwxrwxr-x
RecentFavoriteTable.php
11.79
KB
-rwxrwxr-x
relation_cleanup.lib.php
13.84
KB
-rwxrwxr-x
relation.lib.php
68.74
KB
-rwxrwxr-x
replication_gui.lib.php
37.24
KB
-rwxrwxr-x
replication.inc.php
9.33
KB
-rwxrwxr-x
Response.php
12.05
KB
-rwxrwxr-x
Sanitize.php
14.1
KB
-rwxrwxr-x
SavedSearches.php
11.67
KB
-rwxrwxr-x
Scripts.php
6.59
KB
-rwxrwxr-x
select_server.lib.php
3.52
KB
-rwxrwxr-x
server_common.inc.php
1.24
KB
-rwxrwxr-x
server_common.lib.php
1.92
KB
-rwxrwxr-x
server_privileges.lib.php
171.6
KB
-rwxrwxr-x
server_status_advisor.lib.php
1.89
KB
-rwxrwxr-x
ServerStatusData.php
15.7
KB
-rwxrwxr-x
server_status.lib.php
9.84
KB
-rwxrwxr-x
server_status_monitor.lib.php
26.31
KB
-rwxrwxr-x
server_status_processes.lib.php
9.4
KB
-rwxrwxr-x
server_status_queries.lib.php
4.9
KB
-rwxrwxr-x
server_status_variables.lib.php
28.85
KB
-rwxrwxr-x
server_user_groups.lib.php
12.71
KB
-rwxrwxr-x
server_users.lib.php
1.32
KB
-rwxrwxr-x
session.lib.php
1.11
KB
-rwxrwxr-x
special_schema_links.lib.php
17.51
KB
-rwxrwxr-x
sql.lib.php
77.55
KB
-rwxrwxr-x
sql_query_form.lib.php
15.78
KB
-rwxrwxr-x
StorageEngine.php
13.51
KB
-rwxrwxr-x
string.lib.php
800
B
-rwxrwxr-x
stringMb.lib.php
1.85
KB
-rwxrwxr-x
stringNative.lib.php
6.82
KB
-rwxrwxr-x
SubPartition.php
3.52
KB
-rwxrwxr-x
sysinfo.lib.php
1.35
KB
-rwxrwxr-x
SysInfoLinux.php
1.92
KB
-rwxrwxr-x
SysInfo.php
800
B
-rwxrwxr-x
SysInfoSunOS.php
1.86
KB
-rwxrwxr-x
SysInfoWINNT.php
3.08
KB
-rwxrwxr-x
SystemDatabase.php
3.66
KB
-rwxrwxr-x
Table.php
86.78
KB
-rwxrwxr-x
tbl_columns_definition_form.inc.php
13.84
KB
-rwxrwxr-x
tbl_common.inc.php
1.71
KB
-rwxrwxr-x
tbl_info.inc.php
3.54
KB
-rwxrwxr-x
Template.php
4.42
KB
-rwxrwxr-x
ThemeManager.php
12.25
KB
-rwxrwxr-x
Theme.php
12.68
KB
-rwxrwxr-x
Tracker.php
28.76
KB
-rwxrwxr-x
tracking.lib.php
54.52
KB
-rwxrwxr-x
tracking.php
393
B
-rwxrwxr-x
transformations.lib.php
14.62
KB
-rwxrwxr-x
TypesMySQL.php
17.26
KB
-rwxrwxr-x
Types.php
6.08
KB
-rwxrwxr-x
URL.php
8.42
KB
-rwxrwxr-x
user_preferences.inc.php
2.41
KB
-rwxrwxr-x
user_preferences.lib.php
8.28
KB
-rwxrwxr-x
util.lib.php
749
B
-rwxrwxr-x
Util.php
169.69
KB
-rwxrwxr-x
vendor_config.php
2.07
KB
-rwxrwxr-x
VersionInformation.php
6.34
KB
-rwxrwxr-x
zip_extension.lib.php
5.81
KB
-rwxrwxr-x
ZipFile.php
6.63
KB
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Message.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Holds class Message * * @package PhpMyAdmin */ namespace PMA\libraries; use PMA\libraries\Sanitize; /** * a single message * * simple usage examples: * <code> * // display simple error message 'Error' * Message::error()->display(); * * // get simple success message 'Success' * $message = Message::success(); * * // get special notice * $message = Message::notice(__('This is a localized notice')); * </code> * * more advanced usage example: * <code> * // create another message, a hint, with a localized string which expects * $hint = Message::notice('Read the %smanual%s'); * // replace placeholders with the following params * $hint->addParam('[doc@cfg_Example]'); * $hint->addParam('[/doc]'); * // add this hint as a tooltip * $hint = showHint($hint); * * // add the retrieved tooltip reference to the original message * $message->addMessage($hint); * </code> * * @package PhpMyAdmin */ class Message { const SUCCESS = 1; // 0001 const NOTICE = 2; // 0010 const ERROR = 8; // 1000 const SANITIZE_NONE = 0; // 0000 0000 const SANITIZE_STRING = 16; // 0001 0000 const SANITIZE_PARAMS = 32; // 0010 0000 const SANITIZE_BOOTH = 48; // 0011 0000 /** * message levels * * @var array */ static public $level = array ( Message::SUCCESS => 'success', Message::NOTICE => 'notice', Message::ERROR => 'error', ); /** * The message number * * @access protected * @var integer */ protected $number = Message::NOTICE; /** * The locale string identifier * * @access protected * @var string */ protected $string = ''; /** * The formatted message * * @access protected * @var string */ protected $message = ''; /** * Whether the message was already displayed * * @access protected * @var boolean */ protected $isDisplayed = false; /** * Whether to use BB code when displaying. * * @access protected * @var boolean */ protected $useBBCode = true; /** * Unique id * * @access protected * @var string */ protected $hash = null; /** * holds parameters * * @access protected * @var array */ protected $params = array(); /** * holds additional messages * * @access protected * @var array */ protected $addedMessages = array(); /** * Constructor * * @param string $string The message to be displayed * @param integer $number A numeric representation of the type of message * @param array $params An array of parameters to use in the message * @param integer $sanitize A flag to indicate what to sanitize, see * constant definitions above */ public function __construct($string = '', $number = Message::NOTICE, $params = array(), $sanitize = Message::SANITIZE_NONE ) { $this->setString($string, $sanitize & Message::SANITIZE_STRING); $this->setNumber($number); $this->setParams($params, $sanitize & Message::SANITIZE_PARAMS); } /** * magic method: return string representation for this object * * @return string */ public function __toString() { return $this->getMessage(); } /** * get Message of type success * * shorthand for getting a simple success message * * @param string $string A localized string * e.g. __('Your SQL query has been * executed successfully') * * @return Message * @static */ static public function success($string = '') { if (empty($string)) { $string = __('Your SQL query has been executed successfully.'); } return new Message($string, Message::SUCCESS); } /** * get Message of type error * * shorthand for getting a simple error message * * @param string $string A localized string e.g. __('Error') * * @return Message * @static */ static public function error($string = '') { if (empty($string)) { $string = __('Error'); } return new Message($string, Message::ERROR); } /** * get Message of type notice * * shorthand for getting a simple notice message * * @param string $string A localized string * e.g. __('The additional features for working with * linked tables have been deactivated. To find out * why click %shere%s.') * * @return Message * @static */ static public function notice($string) { return new Message($string, Message::NOTICE); } /** * get Message with customized content * * shorthand for getting a customized message * * @param string $message A localized string * @param integer $type A numeric representation of the type of message * * @return Message * @static */ static public function raw($message, $type = Message::NOTICE) { $r = new Message('', $type); $r->setMessage($message); $r->setBBCode(false); return $r; } /** * get Message for number of affected rows * * shorthand for getting a customized message * * @param integer $rows Number of rows * * @return Message * @static */ static public function getMessageForAffectedRows($rows) { $message = Message::success( _ngettext('%1$d row affected.', '%1$d rows affected.', $rows) ); $message->addParam($rows); return $message; } /** * get Message for number of deleted rows * * shorthand for getting a customized message * * @param integer $rows Number of rows * * @return Message * @static */ static public function getMessageForDeletedRows($rows) { $message = Message::success( _ngettext('%1$d row deleted.', '%1$d rows deleted.', $rows) ); $message->addParam($rows); return $message; } /** * get Message for number of inserted rows * * shorthand for getting a customized message * * @param integer $rows Number of rows * * @return Message * @static */ static public function getMessageForInsertedRows($rows) { $message = Message::success( _ngettext('%1$d row inserted.', '%1$d rows inserted.', $rows) ); $message->addParam($rows); return $message; } /** * get Message of type error with custom content * * shorthand for getting a customized error message * * @param string $message A localized string * * @return Message * @static */ static public function rawError($message) { return Message::raw($message, Message::ERROR); } /** * get Message of type notice with custom content * * shorthand for getting a customized notice message * * @param string $message A localized string * * @return Message * @static */ static public function rawNotice($message) { return Message::raw($message, Message::NOTICE); } /** * get Message of type success with custom content * * shorthand for getting a customized success message * * @param string $message A localized string * * @return Message * @static */ static public function rawSuccess($message) { return Message::raw($message, Message::SUCCESS); } /** * returns whether this message is a success message or not * and optionally makes this message a success message * * @param boolean $set Whether to make this message of SUCCESS type * * @return boolean whether this is a success message or not */ public function isSuccess($set = false) { if ($set) { $this->setNumber(Message::SUCCESS); } return $this->getNumber() === Message::SUCCESS; } /** * returns whether this message is a notice message or not * and optionally makes this message a notice message * * @param boolean $set Whether to make this message of NOTICE type * * @return boolean whether this is a notice message or not */ public function isNotice($set = false) { if ($set) { $this->setNumber(Message::NOTICE); } return $this->getNumber() === Message::NOTICE; } /** * returns whether this message is an error message or not * and optionally makes this message an error message * * @param boolean $set Whether to make this message of ERROR type * * @return boolean Whether this is an error message or not */ public function isError($set = false) { if ($set) { $this->setNumber(Message::ERROR); } return $this->getNumber() === Message::ERROR; } /** * Set whether we should use BB Code when rendering. * * @param boolean $useBBCode Use BB Code? * * @return void */ public function setBBCode($useBBCode) { $this->useBBCode = $useBBCode; } /** * set raw message (overrides string) * * @param string $message A localized string * @param boolean $sanitize Whether to sanitize $message or not * * @return void */ public function setMessage($message, $sanitize = false) { if ($sanitize) { $message = Message::sanitize($message); } $this->message = $message; } /** * set string (does not take effect if raw message is set) * * @param string $string string to set * @param boolean $sanitize whether to sanitize $string or not * * @return void */ public function setString($string, $sanitize = true) { if ($sanitize) { $string = Message::sanitize($string); } $this->string = $string; } /** * set message type number * * @param integer $number message type number to set * * @return void */ public function setNumber($number) { $this->number = $number; } /** * add string or Message parameter * * usage * <code> * $message->addParam('[em]some string[/em]'); * </code> * * @param mixed $param parameter to add * * @return void */ public function addParam($param) { if ($param instanceof Message) { $this->params[] = $param; } else { $this->params[] = htmlspecialchars($param); } } /** * add parameter as raw HTML, usually in conjunction with strings * * usage * <code> * $message->addParamHtml('<img src="img" />'); * </code> * * @param string $param parameter to add * * @return void */ public function addParamHtml($param) { $this->params[] = Message::notice($param); } /** * add a bunch of messages at once * * @param Message[] $messages to be added * @param string $separator to use between this and previous string/message * * @return void */ public function addMessages($messages, $separator = ' ') { foreach ($messages as $message) { $this->addMessage($message, $separator); } } /** * add a bunch of messages at once * * @param string[] $messages to be added * @param string $separator to use between this and previous string/message * * @return void */ public function addMessagesString($messages, $separator = ' ') { foreach ($messages as $message) { $this->addText($message, $separator); } } /** * Real implementation of adding message * * @param mixed $message to be added * @param string $separator to use between this and previous string/message * * @return void */ private function _addMessage($message, $separator) { if (!empty($separator)) { $this->addedMessages[] = $separator; } $this->addedMessages[] = $message; } /** * add another raw message to be concatenated on displaying * * @param Message $message to be added * @param string $separator to use between this and previous string/message * * @return void */ public function addMessage($message, $separator = ' ') { if (!($message instanceof Message)) { trigger_error('Invalid parameter passed to addMessage'); } $this->_addMessage($message, $separator); } /** * add another raw message to be concatenated on displaying * * @param string $message to be added * @param string $separator to use between this and previous string/message * * @return void */ public function addText($message, $separator = ' ') { if (!is_string($message)) { trigger_error('Invalid parameter passed to addMessage'); } $this->_addMessage(Message::notice(htmlspecialchars($message)), $separator); } /** * add another html message to be concatenated on displaying * * @param string $message to be added * @param string $separator to use between this and previous string/message * * @return void */ public function addHtml($message, $separator = ' ') { if (!is_string($message)) { trigger_error('Invalid parameter passed to addMessage'); } $this->_addMessage(Message::rawNotice($message), $separator); } /** * set all params at once, usually used in conjunction with string * * @param array|string $params parameters to set * @param boolean $sanitize whether to sanitize params * * @return void */ public function setParams($params, $sanitize = false) { if ($sanitize) { $params = Message::sanitize($params); } $this->params = $params; } /** * return all parameters * * @return array */ public function getParams() { return $this->params; } /** * return all added messages * * @return array */ public function getAddedMessages() { return $this->addedMessages; } /** * Sanitizes $message * * @param mixed $message the message(s) * * @return mixed the sanitized message(s) * @access public * @static */ static public function sanitize($message) { if (is_array($message)) { foreach ($message as $key => $val) { $message[$key] = Message::sanitize($val); } return $message; } return htmlspecialchars($message); } /** * decode $message, taking into account our special codes * for formatting * * @param string $message the message * * @return string the decoded message * @access public * @static */ static public function decodeBB($message) { return Sanitize::sanitize($message, false, true); } /** * wrapper for sprintf() * * @return string formatted */ static public function format() { $params = func_get_args(); if (isset($params[1]) && is_array($params[1])) { array_unshift($params[1], $params[0]); $params = $params[1]; } return call_user_func_array('sprintf', $params); } /** * returns unique Message::$hash, if not exists it will be created * * @return string Message::$hash */ public function getHash() { if (null === $this->hash) { $this->hash = md5( $this->getNumber() . $this->string . $this->message ); } return $this->hash; } /** * returns compiled message * * @return string complete message */ public function getMessage() { $message = $this->message; if (strlen($message) === 0) { $string = $this->getString(); if (strlen($string) === 0) { $message = ''; } else { $message = $string; } } if ($this->isDisplayed()) { $message = $this->getMessageWithIcon($message); } if (count($this->getParams()) > 0) { $message = Message::format($message, $this->getParams()); } if ($this->useBBCode) { $message = Message::decodeBB($message); } foreach ($this->getAddedMessages() as $add_message) { $message .= $add_message; } return $message; } /** * Returns only message string without image & other HTML. * * @return string */ public function getOnlyMessage() { return $this->message; } /** * returns Message::$string * * @return string Message::$string */ public function getString() { return $this->string; } /** * returns Message::$number * * @return integer Message::$number */ public function getNumber() { return $this->number; } /** * returns level of message * * @return string level of message */ public function getLevel() { return Message::$level[$this->getNumber()]; } /** * Displays the message in HTML * * @return void */ public function display() { echo $this->getDisplay(); $this->isDisplayed(true); } /** * returns HTML code for displaying this message * * @return string whole message box */ public function getDisplay() { $this->isDisplayed(true); return '<div class="' . $this->getLevel() . '">' . $this->getMessage() . '</div>'; } /** * sets and returns whether the message was displayed or not * * @param boolean $isDisplayed whether to set displayed flag * * @return boolean Message::$isDisplayed */ public function isDisplayed($isDisplayed = false) { if ($isDisplayed) { $this->isDisplayed = true; } return $this->isDisplayed; } /** * Returns the message with corresponding image icon * * @param string $message the message(s) * * @return string message with icon */ public function getMessageWithIcon($message) { if ('error' == $this->getLevel()) { $image = 's_error.png'; } elseif ('success' == $this->getLevel()) { $image = 's_success.png'; } else { $image = 's_notice.png'; } $message = Message::notice(Util::getImage($image)) . " " . $message; return $message; } }
Close