Hackfut Security File Manager
Current Path:
/mnt/ceph/services/websiteos/phpmyadmin/phpMyAdmin-4.0.6-all-languages
mnt
/
ceph
/
services
/
websiteos
/
phpmyadmin
/
phpMyAdmin-4.0.6-all-languages
/
📄
!TASK.php
(753 B)
📁
..
📄
.htaccess
(0 B)
📄
ChangeLog
(15.49 KB)
📄
LICENSE
(17.59 KB)
📄
README
(2.04 KB)
📄
RELEASE-DATE-4.0.6
(29 B)
📄
browse_foreigners.php
(11.23 KB)
📄
changelog.php
(4.69 KB)
📄
chk_rel.php
(308 B)
📄
composer.json
(777 B)
📄
config.inc.php
(317 B)
📄
config.sample.inc.php
(3.8 KB)
📁
config_template
📄
db_create.php
(4.16 KB)
📄
db_datadict.php
(8.74 KB)
📄
db_events.php
(401 B)
📄
db_export.php
(2.63 KB)
📄
db_import.php
(493 B)
📄
db_operations.php
(9 KB)
📄
db_printview.php
(6.94 KB)
📄
db_qbe.php
(1.56 KB)
📄
db_routines.php
(454 B)
📄
db_search.php
(1.6 KB)
📄
db_sql.php
(1.3 KB)
📄
db_structure.php
(9.78 KB)
📄
db_tracking.php
(7.98 KB)
📄
db_triggers.php
(364 B)
📁
doc
📁
examples
📄
export.php
(33.23 KB)
📄
favicon.ico
(18.46 KB)
📄
file_echo.php
(2.09 KB)
📄
gis_data_editor.php
(15.17 KB)
📄
htaccess.php
(3.08 KB)
📄
import.php
(20.25 KB)
📄
import_status.php
(2.82 KB)
📄
index.php
(18.39 KB)
📁
js
📁
libraries
📄
license.php
(728 B)
📁
locale
📄
navigation.php
(696 B)
📁
nbproject
📄
phpinfo.php
(389 B)
📄
phpmyadmin.css.php
(746 B)
📄
phpunit.xml.nocoverage
(1.62 KB)
📄
pmd_display_field.php
(2.1 KB)
📄
pmd_general.php
(36.01 KB)
📄
pmd_pdf.php
(4.83 KB)
📄
pmd_relation_new.php
(4.22 KB)
📄
pmd_relation_upd.php
(2.3 KB)
📄
pmd_save_pos.php
(2.39 KB)
📄
prefs_forms.php
(2.5 KB)
📄
prefs_manage.php
(13.99 KB)
📄
print.css
(1.18 KB)
📄
querywindow.php
(6.08 KB)
📄
robots.txt
(26 B)
📄
schema_edit.php
(3.87 KB)
📄
schema_export.php
(1.67 KB)
📄
server_binlog.php
(6.06 KB)
📄
server_collations.php
(2.25 KB)
📄
server_databases.php
(11.15 KB)
📄
server_engines.php
(3.96 KB)
📄
server_export.php
(2.21 KB)
📄
server_import.php
(431 B)
📄
server_plugins.php
(6.44 KB)
📄
server_privileges.php
(15.55 KB)
📄
server_replication.php
(14.35 KB)
📄
server_sql.php
(524 B)
📄
server_status.php
(16.33 KB)
📄
server_status_advisor.php
(2.14 KB)
📄
server_status_monitor.php
(28.93 KB)
📄
server_status_queries.php
(5.59 KB)
📄
server_status_variables.php
(29.34 KB)
📄
server_variables.php
(7.66 KB)
📁
setup
📄
show_config_errors.php
(1.01 KB)
📄
sql.php
(58.48 KB)
📄
tbl_addfield.php
(8.46 KB)
📄
tbl_change.php
(13.37 KB)
📄
tbl_chart.php
(9.25 KB)
📄
tbl_create.php
(15.5 KB)
📄
tbl_export.php
(2.79 KB)
📄
tbl_get_field.php
(1.42 KB)
📄
tbl_gis_visualization.php
(7.14 KB)
📄
tbl_import.php
(574 B)
📄
tbl_indexes.php
(10.57 KB)
📄
tbl_move_copy.php
(2.73 KB)
📄
tbl_operations.php
(11.2 KB)
📄
tbl_printview.php
(15.58 KB)
📄
tbl_relation.php
(26.75 KB)
📄
tbl_replace.php
(13.03 KB)
📄
tbl_row_action.php
(3.91 KB)
📄
tbl_select.php
(1.92 KB)
📄
tbl_sql.php
(928 B)
📄
tbl_structure.php
(13.27 KB)
📄
tbl_tracking.php
(30.85 KB)
📄
tbl_triggers.php
(144 B)
📄
tbl_zoom_select.php
(5.84 KB)
📁
themes
📄
themes.php
(835 B)
📄
transformation_overview.php
(1.28 KB)
📄
transformation_wrapper.php
(3.68 KB)
📄
url.php
(471 B)
📄
user_password.php
(6.6 KB)
📄
version_check.php
(1.42 KB)
📄
view_create.php
(6.9 KB)
📄
view_operations.php
(2.61 KB)
📄
webapp.php
(1.1 KB)
Editing: server_status.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * object the server status page: processes, connections and traffic * * @package PhpMyAdmin */ require_once 'libraries/common.inc.php'; require_once 'libraries/server_common.inc.php'; require_once 'libraries/ServerStatusData.class.php'; /** * Replication library */ if (PMA_DRIZZLE) { $server_master_status = false; $server_slave_status = false; } else { include_once 'libraries/replication.inc.php'; include_once 'libraries/replication_gui.lib.php'; } $ServerStatusData = new PMA_ServerStatusData(); /** * Kills a selected process */ if (! empty($_REQUEST['kill'])) { if (PMA_DBI_try_query('KILL ' . $_REQUEST['kill'] . ';')) { $message = PMA_Message::success(__('Thread %s was successfully killed.')); } else { $message = PMA_Message::error( __( 'phpMyAdmin was unable to kill thread %s.' . ' It probably has already been closed.' ) ); } $message->addParam($_REQUEST['kill']); } /** * start output */ $response = PMA_Response::getInstance(); $response->addHTML('<div>'); $response->addHTML($ServerStatusData->getMenuHtml()); $response->addHTML(getServerTrafficHtml($ServerStatusData)); $response->addHTML('</div>'); exit; /** * Prints server traffic information * * @param Object $ServerStatusData An instance of the PMA_ServerStatusData class * * @return string */ function getServerTrafficHtml($ServerStatusData) { $hour_factor = 3600 / $ServerStatusData->status['Uptime']; $start_time = PMA_DBI_fetch_value( 'SELECT UNIX_TIMESTAMP() - ' . $ServerStatusData->status['Uptime'] ); $retval = '<h3>'; $retval .= sprintf( __('Network traffic since startup: %s'), implode( ' ', PMA_Util::formatByteDown( $ServerStatusData->status['Bytes_received'] + $ServerStatusData->status['Bytes_sent'], 3, 1 ) ) ); $retval .= '</h3>'; $retval .= '<p>'; $retval .= sprintf( __('This MySQL server has been running for %1$s. It started up on %2$s.'), PMA_Util::timespanFormat($ServerStatusData->status['Uptime']), PMA_Util::localisedDate($start_time) ) . "\n"; $retval .= '</p>'; if ($GLOBALS['server_master_status'] || $GLOBALS['server_slave_status']) { $retval .= '<p class="notice">'; if ($GLOBALS['server_master_status'] && $GLOBALS['server_slave_status']) { $retval .= __( 'This MySQL server works as <b>master</b> and ' . '<b>slave</b> in <b>replication</b> process.' ); } elseif ($GLOBALS['server_master_status']) { $retval .= __( 'This MySQL server works as <b>master</b> ' . 'in <b>replication</b> process.' ); } elseif ($GLOBALS['server_slave_status']) { $retval .= __( 'This MySQL server works as <b>slave</b> ' . 'in <b>replication</b> process.' ); } $retval .= ' '; $retval .= __( 'For further information about replication status on the server, ' . 'please visit the <a href="#replication">replication section</a>.' ); $retval .= '</p>'; } /* * if the server works as master or slave in replication process, * display useful information */ if ($GLOBALS['server_master_status'] || $GLOBALS['server_slave_status']) { $retval .= '<hr class="clearfloat" />'; $retval .= '<h3><a name="replication">'; $retval .= __('Replication status'); $retval .= '</a></h3>'; foreach ($GLOBALS['replication_types'] as $type) { if (isset(${"server_{$type}_status"}) && ${"server_{$type}_status"}) { PMA_replication_print_status_table($type); } } } $retval .= '<table id="serverstatustraffic" class="data noclick">'; $retval .= '<thead>'; $retval .= '<tr>'; $retval .= '<th colspan="2">'; $retval .= __('Traffic') . ' '; $retval .= PMA_Util::showHint( __( 'On a busy server, the byte counters may overrun, so those statistics ' . 'as reported by the MySQL server may be incorrect.' ) ); $retval .= '</th>'; $retval .= '<th>ø ' . __('per hour') . '</th>'; $retval .= '</tr>'; $retval .= '</thead>'; $retval .= '<tbody>'; $retval .= '<tr class="odd">'; $retval .= '<th class="name">' . __('Received') . '</th>'; $retval .= '<td class="value">'; $retval .= implode( ' ', PMA_Util::formatByteDown( $ServerStatusData->status['Bytes_received'], 3, 1 ) ); $retval .= '</td>'; $retval .= '<td class="value">'; $retval .= implode( ' ', PMA_Util::formatByteDown( $ServerStatusData->status['Bytes_received'] * $hour_factor, 3, 1 ) ); $retval .= '</td>'; $retval .= '</tr>'; $retval .= '<tr class="even">'; $retval .= '<th class="name">' . __('Sent') . '</th>'; $retval .= '<td class="value">'; $retval .= implode( ' ', PMA_Util::formatByteDown( $ServerStatusData->status['Bytes_sent'], 3, 1 ) ); $retval .= '</td>'; $retval .= '<td class="value"><?php echo'; $retval .= implode( ' ', PMA_Util::formatByteDown( $ServerStatusData->status['Bytes_sent'] * $hour_factor, 3, 1 ) ); $retval .= '</td>'; $retval .= '</tr>'; $retval .= '<tr class="odd">'; $retval .= '<th class="name">' . __('Total') . '</th>'; $retval .= '<td class="value">'; $retval .= implode( ' ', PMA_Util::formatByteDown( $ServerStatusData->status['Bytes_received'] + $ServerStatusData->status['Bytes_sent'], 3, 1 ) ); $retval .= '</td>'; $retval .= '<td class="value">'; $retval .= implode( ' ', PMA_Util::formatByteDown( ($ServerStatusData->status['Bytes_received'] + $ServerStatusData->status['Bytes_sent']) * $hour_factor, 3, 1 ) ); $retval .= '</td>'; $retval .= '</tr>'; $retval .= '</tbody>'; $retval .= '</table>'; $retval .= '<table id="serverstatusconnections" class="data noclick">'; $retval .= '<thead>'; $retval .= '<tr>'; $retval .= '<th colspan="2">' . __('Connections') . '</th>'; $retval .= '<th>ø ' . __('per hour') . '</th>'; $retval .= '<th>%</th>'; $retval .= '</tr>'; $retval .= '</thead>'; $retval .= '<tbody>'; $retval .= '<tr class="odd">'; $retval .= '<th class="name">' . __('max. concurrent connections') . '</th>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Max_used_connections'], 0 ); $retval .= '</td>'; $retval .= '<td class="value">--- </td>'; $retval .= '<td class="value">--- </td>'; $retval .= '</tr>'; $retval .= '<tr class="even">'; $retval .= '<th class="name">' . __('Failed attempts') . '</th>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Aborted_connects'], 4, 1, true ); $retval .= '</td>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Aborted_connects'] * $hour_factor, 4, 2, true ); $retval .= '</td>'; $retval .= '<td class="value">'; if ($ServerStatusData->status['Connections'] > 0) { $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Aborted_connects'] * 100 / $ServerStatusData->status['Connections'], 0, 2, true ); $retval .= '%'; } else { $retval .= '--- '; } $retval .= '</td>'; $retval .= '</tr>'; $retval .= '<tr class="odd">'; $retval .= '<th class="name">' . __('Aborted') . '</th>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Aborted_clients'], 4, 1, true ); $retval .= '</td>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Aborted_clients'] * $hour_factor, 4, 2, true ); $retval .= '</td>'; $retval .= '<td class="value">'; if ($ServerStatusData->status['Connections'] > 0) { $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Aborted_clients'] * 100 / $ServerStatusData->status['Connections'], 0, 2, true ); $retval .= '%'; } else { $retval .= '--- '; } $retval .= '</td>'; $retval .= '</tr>'; $retval .= '<tr class="even">'; $retval .= '<th class="name">' . __('Total') . '</th>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Connections'], 4, 0 ); $retval .= '</td>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber( $ServerStatusData->status['Connections'] * $hour_factor, 4, 2 ); $retval .= '</td>'; $retval .= '<td class="value">'; $retval .= PMA_Util::formatNumber(100, 0, 2); $retval .= '%</td>'; $retval .= '</tr>'; $retval .= '</tbody>'; $retval .= '</table>'; $url_params = array(); $show_full_sql = ! empty($_REQUEST['full']); if ($show_full_sql) { $url_params['full'] = 1; $full_text_link = 'server_status.php' . PMA_generate_common_url( array(), 'html', '?' ); } else { $full_text_link = 'server_status.php' . PMA_generate_common_url( array('full' => 1) ); } // This array contains display name and real column name of each // sortable column in the table $sortable_columns = array( array( 'column_name' => __('ID'), 'order_by_field' => 'Id' ), array( 'column_name' => __('User'), 'order_by_field' => 'User' ), array( 'column_name' => __('Host'), 'order_by_field' => 'Host' ), array( 'column_name' => __('Database'), 'order_by_field' => 'db' ), array( 'column_name' => __('Command'), 'order_by_field' => 'Command' ), array( 'column_name' => __('Time'), 'order_by_field' => 'Time' ), array( 'column_name' => __('Status'), 'order_by_field' => 'State' ), array( 'column_name' => __('SQL query'), 'order_by_field' => 'Info' ) ); $sortable_columns_count = count($sortable_columns); if (PMA_DRIZZLE) { $sql_query = "SELECT p.id AS Id, p.username AS User, p.host AS Host, p.db AS db, p.command AS Command, p.time AS Time, p.state AS State, " . ($show_full_sql ? 's.query' : 'left(p.info, ' . (int)$GLOBALS['cfg']['MaxCharactersInDisplayedSQL'] . ')') . " AS Info FROM data_dictionary.PROCESSLIST p " . ($show_full_sql ? 'LEFT JOIN data_dictionary.SESSIONS s ON s.session_id = p.id' : ''); if (! empty($_REQUEST['order_by_field']) && ! empty($_REQUEST['sort_order']) ) { $sql_query .= ' ORDER BY p.' . $_REQUEST['order_by_field'] . ' ' . $_REQUEST['sort_order']; } } else { $sql_query = $show_full_sql ? 'SHOW FULL PROCESSLIST' : 'SHOW PROCESSLIST'; if (! empty($_REQUEST['order_by_field']) && ! empty($_REQUEST['sort_order']) ) { $sql_query = 'SELECT * FROM `INFORMATION_SCHEMA`.`PROCESSLIST` ORDER BY `' . $_REQUEST['order_by_field'] . '` ' . $_REQUEST['sort_order']; } } $result = PMA_DBI_query($sql_query); /** * Displays the page */ $retval .= '<table id="tableprocesslist" class="data clearfloat noclick sortable">'; $retval .= '<thead>'; $retval .= '<tr>'; $retval .= '<th>' . __('Processes') . '</th>'; foreach ($sortable_columns as $column) { $is_sorted = ! empty($_REQUEST['order_by_field']) && ! empty($_REQUEST['sort_order']) && ($_REQUEST['order_by_field'] == $column['order_by_field']); $column['sort_order'] = 'ASC'; if ($is_sorted && $_REQUEST['sort_order'] === 'ASC') { $column['sort_order'] = 'DESC'; } if ($is_sorted) { if ($_REQUEST['sort_order'] == 'ASC') { $asc_display_style = 'inline'; $desc_display_style = 'none'; } elseif ($_REQUEST['sort_order'] == 'DESC') { $desc_display_style = 'inline'; $asc_display_style = 'none'; } } $retval .= '<th>'; $retval .= '<a href="server_status.php' . PMA_generate_common_url($column) . '" '; if ($is_sorted) { $retval .= 'onmouseout="$(\'.soimg\').toggle()" ' . 'onmouseover="$(\'.soimg\').toggle()"'; } $retval .= '>'; $retval .= $column['column_name']; if ($is_sorted) { $retval .= '<img class="icon ic_s_desc soimg" alt="' . __('Descending') . '" title="" src="themes/dot.gif" ' . 'style="display: ' . $desc_display_style . '" />'; $retval .= '<img class="icon ic_s_asc soimg hide" alt="' . __('Ascending') . '" title="" src="themes/dot.gif" ' . 'style="display: ' . $asc_display_style . '" />'; } $retval .= '</a>'; if (! PMA_DRIZZLE && (0 === --$sortable_columns_count)) { $retval .= '<a href="' . $full_text_link . '">'; if ($show_full_sql) { $retval .= PMA_Util::getImage( 's_partialtext.png', __('Truncate Shown Queries') ); } else { $retval .= PMA_Util::getImage( 's_fulltext.png', __('Show Full Queries') ); } $retval .= '</a>'; } $retval .= '</th>'; } $retval .= '</tr>'; $retval .= '</thead>'; $retval .= '<tbody>'; $odd_row = true; while ($process = PMA_DBI_fetch_assoc($result)) { // Array keys need to modify due to the way it has used // to display column values if (! empty($_REQUEST['order_by_field']) && ! empty($_REQUEST['sort_order']) ) { foreach (array_keys($process) as $key) { $new_key = ucfirst(strtolower($key)); $process[$new_key] = $process[$key]; unset($process[$key]); } } $url_params['kill'] = $process['Id']; $kill_process = 'server_status.php' . PMA_generate_common_url($url_params); $retval .= '<tr class="' . ($odd_row ? 'odd' : 'even') . '">'; $retval .= '<td><a href="' . $kill_process . '">' . __('Kill') . '</a></td>'; $retval .= '<td class="value">' . $process['Id'] . '</td>'; $retval .= '<td>' . htmlspecialchars($process['User']) . '</td>'; $retval .= '<td>' . htmlspecialchars($process['Host']) . '</td>'; $retval .= '<td>' . ((! isset($process['db']) || ! strlen($process['db'])) ? '<i>' . __('None') . '</i>' : htmlspecialchars($process['db'])) . '</td>'; $retval .= '<td>' . htmlspecialchars($process['Command']) . '</td>'; $retval .= '<td class="value">' . $process['Time'] . '</td>'; $retval .= '<td>' . (empty($process['State']) ? '---' : $process['State']) . '</td>'; $retval .= '<td>'; if (empty($process['Info'])) { $retval .= '---'; } else { if (! $show_full_sql && strlen($process['Info']) > $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) { $retval .= htmlspecialchars(substr($process['Info'], 0, $GLOBALS['cfg']['MaxCharactersInDisplayedSQL'])) . '[...]'; } else { $retval .= PMA_SQP_formatHtml(PMA_SQP_parse($process['Info'])); } } $retval .= '</td>'; $retval .= '</tr>'; $odd_row = ! $odd_row; } $retval .= '</tbody>'; $retval .= '</table>'; return $retval; } ?>
Upload File
Create Folder