Hackfut Security File Manager
Current Path:
/mnt/ceph/services/websiteos/phpmyadmin/phpMyAdmin-3.5.7-all-languages
mnt
/
ceph
/
services
/
websiteos
/
phpmyadmin
/
phpMyAdmin-3.5.7-all-languages
/
📁
..
📄
.htaccess
(44 B)
📄
.travis.yml
(139 B)
📄
ChangeLog
(30.44 KB)
📄
Documentation.html
(251.47 KB)
📄
Documentation.txt
(175.88 KB)
📄
LICENSE
(17.59 KB)
📄
README
(2.05 KB)
📄
README.VENDOR
(1.18 KB)
📄
RELEASE-DATE-3.5.7
(29 B)
📄
browse_foreigners.php
(11.1 KB)
📄
bs_disp_as_mime_type.php
(1.27 KB)
📄
bs_play_media.php
(2.01 KB)
📄
changelog.php
(3.89 KB)
📄
chk_rel.php
(363 B)
📄
config.inc.php
(2.83 KB)
📄
config.sample.inc.php
(3.82 KB)
📁
config_template
📄
db_create.php
(4 KB)
📄
db_datadict.php
(8.35 KB)
📄
db_events.php
(773 B)
📄
db_export.php
(2.64 KB)
📄
db_import.php
(466 B)
📄
db_operations.php
(21.85 KB)
📄
db_printview.php
(6.91 KB)
📄
db_qbe.php
(30.43 KB)
📄
db_routines.php
(964 B)
📄
db_search.php
(13.24 KB)
📄
db_sql.php
(1.17 KB)
📄
db_structure.php
(23.54 KB)
📄
db_tracking.php
(7.84 KB)
📄
db_triggers.php
(728 B)
📄
docs.css
(2.76 KB)
📄
enum_editor.php
(5.11 KB)
📁
examples
📄
export.php
(27.87 KB)
📄
favicon.ico
(18.46 KB)
📄
file_echo.php
(2.03 KB)
📄
gis_data_editor.php
(16.79 KB)
📄
htaccess.php
(2.24 KB)
📄
import.php
(17.47 KB)
📄
import_status.php
(953 B)
📄
index.php
(5.67 KB)
📁
js
📁
libraries
📄
license.php
(730 B)
📁
locale
📄
main.php
(16.67 KB)
📄
navigation.php
(25.14 KB)
📄
phpinfo.php
(349 B)
📄
phpmyadmin.css.php
(1.08 KB)
📄
phpunit.xml.nocoverage
(1.78 KB)
📄
pmd_display_field.php
(1.74 KB)
📄
pmd_general.php
(34.7 KB)
📄
pmd_pdf.php
(4.16 KB)
📄
pmd_relation_new.php
(3.85 KB)
📄
pmd_relation_upd.php
(2.11 KB)
📄
pmd_save_pos.php
(2.03 KB)
📄
prefs_forms.php
(2.54 KB)
📄
prefs_manage.php
(14.44 KB)
📄
print.css
(1.09 KB)
📄
querywindow.php
(6.3 KB)
📄
robots.txt
(26 B)
📄
schema_edit.php
(4.06 KB)
📄
schema_export.php
(1.21 KB)
📄
server_binlog.php
(6.06 KB)
📄
server_collations.php
(2.54 KB)
📄
server_databases.php
(9.87 KB)
📄
server_engines.php
(4.88 KB)
📄
server_export.php
(2.03 KB)
📄
server_import.php
(477 B)
📄
server_plugins.php
(7.04 KB)
📄
server_privileges.php
(107.3 KB)
📄
server_replication.php
(16.67 KB)
📄
server_sql.php
(743 B)
📄
server_status.php
(77.78 KB)
📄
server_synchronize.php
(55.94 KB)
📄
server_variables.php
(5.67 KB)
📁
setup
📄
show_config_errors.php
(574 B)
📄
sql.php
(37.2 KB)
📄
tbl_addfield.php
(8.04 KB)
📄
tbl_alter.php
(6.92 KB)
📄
tbl_change.php
(48.74 KB)
📄
tbl_chart.php
(7.66 KB)
📄
tbl_create.php
(13.93 KB)
📄
tbl_export.php
(2.53 KB)
📄
tbl_get_field.php
(1.12 KB)
📄
tbl_gis_visualization.php
(7.29 KB)
📄
tbl_import.php
(624 B)
📄
tbl_indexes.php
(9.46 KB)
📄
tbl_move_copy.php
(2.51 KB)
📄
tbl_operations.php
(31.95 KB)
📄
tbl_printview.php
(14.04 KB)
📄
tbl_relation.php
(23.14 KB)
📄
tbl_replace.php
(23.06 KB)
📄
tbl_row_action.php
(4.57 KB)
📄
tbl_select.php
(10.57 KB)
📄
tbl_sql.php
(1.11 KB)
📄
tbl_structure.php
(39.23 KB)
📄
tbl_tracking.php
(28.56 KB)
📄
tbl_triggers.php
(144 B)
📄
tbl_zoom_select.php
(16.86 KB)
📁
themes
📄
themes.php
(822 B)
📄
transformation_overview.php
(1.52 KB)
📄
transformation_wrapper.php
(3.29 KB)
📄
url.php
(398 B)
📄
user_password.php
(4.32 KB)
📄
version_check.php
(358 B)
📄
view_create.php
(5.23 KB)
📄
view_operations.php
(2.74 KB)
📄
webapp.php
(1.06 KB)
Editing: db_tracking.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * @package PhpMyAdmin */ /** * Run common work */ require_once './libraries/common.inc.php'; //Get some js files needed for Ajax requests $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js'; $GLOBALS['js_include'][] = 'db_structure.js'; /** * If we are not in an Ajax request, then do the common work and show the links etc. */ if ($GLOBALS['is_ajax_request'] != true) { include './libraries/db_common.inc.php'; } $url_query .= '&goto=tbl_tracking.php&back=db_tracking.php'; // Get the database structure $sub_part = '_structure'; require './libraries/db_info.inc.php'; // Work to do? // (here, do not use $_REQUEST['db] as it can be crafted) if (isset($_REQUEST['delete_tracking']) && isset($_REQUEST['table'])) { PMA_Tracker::deleteTracking($GLOBALS['db'], $_REQUEST['table']); /** * If in an Ajax request, generate the success message and use * {@link PMA_ajaxResponse()} to send the output */ if ($GLOBALS['is_ajax_request'] == true) { $message = PMA_Message::success(); PMA_ajaxResponse($message, true); } } // Get tracked data about the database $data = PMA_Tracker::getTrackedData($_REQUEST['db'], '', '1'); // No tables present and no log exist if ($num_tables == 0 && count($data['ddlog']) == 0) { echo '<p>' . __('No tables found in database.') . '</p>' . "\n"; if (empty($db_is_information_schema)) { include './libraries/display_create_table.lib.php'; } // Display the footer include './libraries/footer.inc.php'; exit; } // --------------------------------------------------------------------------- /* * Display top menu links */ require_once './libraries/db_links.inc.php'; // Prepare statement to get HEAD version $all_tables_query = ' SELECT table_name, MAX(version) as version FROM ' . PMA_backquote($GLOBALS['cfg']['Server']['pmadb']) . '.' . PMA_backquote($GLOBALS['cfg']['Server']['tracking']) . ' WHERE db_name = \'' . PMA_sqlAddSlashes($_REQUEST['db']) . '\' ' . ' GROUP BY table_name' . ' ORDER BY table_name ASC'; $all_tables_result = PMA_query_as_controluser($all_tables_query); // If a HEAD version exists if (PMA_DBI_num_rows($all_tables_result) > 0) { ?> <div id="tracked_tables"> <h3><?php echo __('Tracked tables');?></h3> <table id="versions" class="data"> <thead> <tr> <th><?php echo __('Database');?></th> <th><?php echo __('Table');?></th> <th><?php echo __('Last version');?></th> <th><?php echo __('Created');?></th> <th><?php echo __('Updated');?></th> <th><?php echo __('Status');?></th> <th><?php echo __('Action');?></th> <th><?php echo __('Show');?></th> </tr> </thead> <tbody> <?php // Print out information about versions $drop_image_or_text = ''; if (true == $GLOBALS['cfg']['PropertiesIconic']) { $drop_image_or_text .= PMA_getImage('b_drop.png', __('Delete tracking data for this table')); } if ('both' === $GLOBALS['cfg']['PropertiesIconic'] || false === $GLOBALS['cfg']['PropertiesIconic']) { $drop_image_or_text .= __('Drop'); } $style = 'odd'; while ($one_result = PMA_DBI_fetch_array($all_tables_result)) { list($table_name, $version_number) = $one_result; $table_query = ' SELECT * FROM ' . PMA_backquote($GLOBALS['cfg']['Server']['pmadb']) . '.' . PMA_backquote($GLOBALS['cfg']['Server']['tracking']) . ' WHERE `db_name` = \'' . PMA_sqlAddSlashes($_REQUEST['db']) . '\' AND `table_name` = \'' . PMA_sqlAddSlashes($table_name) . '\' AND `version` = \'' . $version_number . '\''; $table_result = PMA_query_as_controluser($table_query); $version_data = PMA_DBI_fetch_array($table_result); if ($version_data['tracking_active'] == 1) { $version_status = __('active'); } else { $version_status = __('not active'); } $tmp_link = 'tbl_tracking.php?' . $url_query . '&table=' . htmlspecialchars($version_data['table_name']); $delete_link = 'db_tracking.php?' . $url_query . '&table=' . htmlspecialchars($version_data['table_name']) . '&delete_tracking=true&'; ?> <tr class="noclick <?php echo $style;?>"> <td><?php echo htmlspecialchars($version_data['db_name']);?></td> <td><?php echo htmlspecialchars($version_data['table_name']);?></td> <td><?php echo $version_data['version'];?></td> <td><?php echo $version_data['date_created'];?></td> <td><?php echo $version_data['date_updated'];?></td> <td><?php echo $version_status;?></td> <td><a <?php echo ($GLOBALS['cfg']['AjaxEnable'] ? 'class="drop_tracking_anchor"' : ''); ?> href="<?php echo $delete_link;?>" ><?php echo $drop_image_or_text; ?></a></td> <td> <a href="<?php echo $tmp_link; ?>"><?php echo __('Versions');?></a> | <a href="<?php echo $tmp_link; ?>&report=true&version=<?php echo $version_data['version'];?>"><?php echo __('Tracking report');?></a> | <a href="<?php echo $tmp_link; ?>&snapshot=true&version=<?php echo $version_data['version'];?>"><?php echo __('Structure snapshot');?></a></td> </tr> <?php if ($style == 'even') { $style = 'odd'; } else { $style = 'even'; } } unset($tmp_link); ?> </tbody> </table> </div> <?php } $sep = $GLOBALS['cfg']['LeftFrameTableSeparator']; // Get list of tables $table_list = PMA_getTableList($GLOBALS['db']); // For each table try to get the tracking version foreach ($table_list as $key => $value) { // If $value is a table group. if (array_key_exists(('is' . $sep . 'group'), $value) && $value['is' . $sep . 'group']) { foreach ($value as $temp_table) { // If $temp_table is a table with the value for 'Name' is set, // rather than a propery of the table group. if (is_array($temp_table) && array_key_exists('Name', $temp_table)) { if (PMA_Tracker::getVersion($GLOBALS['db'], $temp_table['Name']) == -1) { $my_tables[] = $temp_table['Name']; } } } // If $value is a table. } else { if (PMA_Tracker::getVersion($GLOBALS['db'], $value['Name']) == -1) { $my_tables[] = $value['Name']; } } } // If untracked tables exist if (isset($my_tables)) { ?> <h3><?php echo __('Untracked tables');?></h3> <table id="noversions" class="data"> <thead> <tr> <th width="300"><?php echo __('Table');?></th> <th></th> </tr> </thead> <tbody> <?php // Print out list of untracked tables $style = 'odd'; foreach ($my_tables as $key => $tablename) { if (PMA_Tracker::getVersion($GLOBALS['db'], $tablename) == -1) { $my_link = '<a href="tbl_tracking.php?' . $url_query . '&table=' . htmlspecialchars($tablename) .'">'; $my_link .= PMA_getIcon('eye.png', __('Track table')) . '</a>'; ?> <tr class="noclick <?php echo $style;?>"> <td><?php echo htmlspecialchars($tablename);?></td> <td><?php echo $my_link;?></td> </tr> <?php if ($style == 'even') { $style = 'odd'; } else { $style = 'even'; } } } ?> </tbody> </table> <?php } // If available print out database log if (count($data['ddlog']) > 0) { $log = ''; foreach ($data['ddlog'] as $entry) { $log .= '# ' . $entry['date'] . ' ' . $entry['username'] . "\n" . $entry['statement'] . "\n"; } PMA_showMessage(__('Database Log'), $log); } /** * Display the footer */ require './libraries/footer.inc.php'; ?>
Upload File
Create Folder