Hackfut Security File Manager
Current Path:
/mnt/ceph/services/websiteos/phpmyadmin/phpMyAdmin-4.7.7-all-languages
mnt
/
ceph
/
services
/
websiteos
/
phpmyadmin
/
phpMyAdmin-4.7.7-all-languages
/
📁
..
📁
.svn
📄
CONTRIBUTING.md
(1.69 KB)
📄
ChangeLog
(15.43 KB)
📄
DCO
(1.77 KB)
📄
LICENSE
(17.67 KB)
📄
README
(1.48 KB)
📄
RELEASE-DATE-4.7.7
(29 B)
📄
ajax.php
(913 B)
📄
browse_foreigners.php
(1.49 KB)
📄
changelog.php
(4.99 KB)
📄
chk_rel.php
(772 B)
📄
composer.json
(2.05 KB)
📄
composer.lock
(92.65 KB)
📄
config.inc.php
(317 B)
📄
config.sample.inc.php
(4.41 KB)
📁
config_template
📄
db_central_columns.php
(5.21 KB)
📄
db_datadict.php
(5.69 KB)
📄
db_designer.php
(5.72 KB)
📄
db_events.php
(356 B)
📄
db_export.php
(4.88 KB)
📄
db_import.php
(1.02 KB)
📄
db_operations.php
(10.37 KB)
📄
db_qbe.php
(4.32 KB)
📄
db_routines.php
(416 B)
📄
db_search.php
(2.02 KB)
📄
db_sql.php
(1.08 KB)
📄
db_sql_autocomplete.php
(749 B)
📄
db_sql_format.php
(488 B)
📄
db_structure.php
(1.05 KB)
📄
db_tracking.php
(4.34 KB)
📄
db_triggers.php
(360 B)
📁
doc
📄
error_report.php
(4.43 KB)
📁
examples
📄
export.php
(15.27 KB)
📄
favicon.ico
(21.96 KB)
📄
gis_data_editor.php
(15.48 KB)
📄
htaccess.php
(3.07 KB)
📄
import.php
(23.29 KB)
📄
import_status.php
(3.32 KB)
📄
index.php
(19.29 KB)
📁
js
📁
libraries
📄
license.php
(897 B)
📄
lint.php
(1.38 KB)
📁
locale
📄
logout.php
(287 B)
📄
navigation.php
(2.14 KB)
📄
normalization.php
(3.94 KB)
📁
phpMyAdmin.bk
📄
phpinfo.php
(510 B)
📁
phpmyadmin.bk
📄
phpmyadmin.css.php
(746 B)
📄
prefs_forms.php
(2.7 KB)
📄
prefs_manage.php
(14.89 KB)
📄
print.css
(1.18 KB)
📄
robots.txt
(26 B)
📄
schema_export.php
(1.64 KB)
📄
server_binlog.php
(804 B)
📄
server_collations.php
(837 B)
📄
server_databases.php
(817 B)
📄
server_engines.php
(803 B)
📄
server_export.php
(1.2 KB)
📄
server_import.php
(779 B)
📄
server_plugins.php
(808 B)
📄
server_privileges.php
(13.56 KB)
📄
server_replication.php
(2.18 KB)
📄
server_sql.php
(847 B)
📄
server_status.php
(995 B)
📄
server_status_advisor.php
(954 B)
📄
server_status_monitor.php
(2.88 KB)
📄
server_status_processes.php
(1.9 KB)
📄
server_status_queries.php
(1.36 KB)
📄
server_status_variables.php
(1.59 KB)
📄
server_user_groups.php
(1.8 KB)
📄
server_variables.php
(817 B)
📁
setup
📄
show_config_errors.php
(1.02 KB)
📁
sql
📄
sql.php
(6.17 KB)
📄
tbl_addfield.php
(3.82 KB)
📄
tbl_change.php
(6.38 KB)
📄
tbl_chart.php
(990 B)
📄
tbl_create.php
(3.12 KB)
📄
tbl_export.php
(4.38 KB)
📄
tbl_find_replace.php
(1.02 KB)
📄
tbl_get_field.php
(1.39 KB)
📄
tbl_gis_visualization.php
(1.23 KB)
📄
tbl_import.php
(873 B)
📄
tbl_indexes.php
(1.4 KB)
📄
tbl_operations.php
(13.31 KB)
📄
tbl_recent_favorite.php
(455 B)
📄
tbl_relation.php
(2.31 KB)
📄
tbl_replace.php
(16.13 KB)
📄
tbl_row_action.php
(4.94 KB)
📄
tbl_select.php
(1.15 KB)
📄
tbl_sql.php
(1.25 KB)
📄
tbl_structure.php
(1.63 KB)
📄
tbl_tracking.php
(5.76 KB)
📄
tbl_triggers.php
(141 B)
📄
tbl_zoom_select.php
(1.07 KB)
📁
templates
📁
themes
📄
themes.php
(938 B)
📄
transformation_overview.php
(1.88 KB)
📄
transformation_wrapper.php
(4.39 KB)
📄
url.php
(1.26 KB)
📄
user_password.php
(9.03 KB)
📁
vendor
📄
version_check.php
(1.07 KB)
📄
view_create.php
(9.34 KB)
📄
view_operations.php
(3.91 KB)
Editing: sql.php
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * SQL executor * * @todo we must handle the case if sql.php is called directly with a query * that returns 0 rows - to prevent cyclic redirects or includes * @package PhpMyAdmin */ use PMA\libraries\config\PageSettings; use PMA\libraries\Response; use PMA\libraries\Util; use PMA\libraries\URL; /** * Gets some core libraries */ require_once 'libraries/common.inc.php'; require_once 'libraries/check_user_privileges.lib.php'; require_once 'libraries/sql.lib.php'; require_once 'libraries/config/user_preferences.forms.php'; require_once 'libraries/config/page_settings.forms.php'; PageSettings::showGroup('Browse'); $response = Response::getInstance(); $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('jquery/jquery-ui-timepicker-addon.js'); $scripts->addFile('jquery/jquery.uitablefilter.js'); $scripts->addFile('tbl_change.js'); $scripts->addFile('indexes.js'); $scripts->addFile('gis_data_editor.js'); $scripts->addFile('multi_column_sort.js'); /** * Set ajax_reload in the response if it was already set */ if (isset($ajax_reload) && $ajax_reload['reload'] === true) { $response->addJSON('ajax_reload', $ajax_reload); } /** * Defines the url to return to in case of error in a sql statement */ $is_gotofile = true; if (empty($goto)) { if (empty($table)) { $goto = Util::getScriptNameForOption( $GLOBALS['cfg']['DefaultTabDatabase'], 'database' ); } else { $goto = Util::getScriptNameForOption( $GLOBALS['cfg']['DefaultTabTable'], 'table' ); } } // end if if (! isset($err_url)) { $err_url = (! empty($back) ? $back : $goto) . '?' . URL::getCommon(array('db' => $GLOBALS['db'])) . ((mb_strpos(' ' . $goto, 'db_') != 1 && strlen($table) > 0) ? '&table=' . urlencode($table) : '' ); } // end if // Coming from a bookmark dialog if (isset($_POST['bkm_fields']['bkm_sql_query'])) { $sql_query = $_POST['bkm_fields']['bkm_sql_query']; } elseif (isset($_GET['sql_query'])) { $sql_query = $_GET['sql_query']; } // This one is just to fill $db if (isset($_POST['bkm_fields']['bkm_database'])) { $db = $_POST['bkm_fields']['bkm_database']; } // During grid edit, if we have a relational field, show the dropdown for it. if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_values'] == true ) { PMA_getRelationalValues($db, $table); // script has exited at this point } // Just like above, find possible values for enum fields during grid edit. if (isset($_REQUEST['get_enum_values']) && $_REQUEST['get_enum_values'] == true) { PMA_getEnumOrSetValues($db, $table, "enum"); // script has exited at this point } // Find possible values for set fields during grid edit. if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) { PMA_getEnumOrSetValues($db, $table, "set"); // script has exited at this point } if (isset($_REQUEST['get_default_fk_check_value']) && $_REQUEST['get_default_fk_check_value'] == true ) { $response = Response::getInstance(); $response->addJSON( 'default_fk_check_value', Util::isForeignKeyCheck() ); exit; } /** * Check ajax request to set the column order and visibility */ if (isset($_REQUEST['set_col_prefs']) && $_REQUEST['set_col_prefs'] == true) { PMA_setColumnOrderOrVisibility($table, $db); // script has exited at this point } // Default to browse if no query set and we have table // (needed for browsing from DefaultTabTable) if (empty($sql_query) && strlen($table) > 0 && strlen($db) > 0) { $sql_query = PMA_getDefaultSqlQueryForBrowse($db, $table); // set $goto to what will be displayed if query returns 0 rows $goto = ''; } else { // Now we can check the parameters Util::checkParameters(array('sql_query')); } /** * Parse and analyze the query */ require_once 'libraries/parse_analyze.lib.php'; list( $analyzed_sql_results, $db, $table_from_sql ) = PMA_parseAnalyze($sql_query, $db); // @todo: possibly refactor extract($analyzed_sql_results); if ($table != $table_from_sql && !empty($table_from_sql)) { $table = $table_from_sql; } /** * Check rights in case of DROP DATABASE * * This test may be bypassed if $is_js_confirmed = 1 (already checked with js) * but since a malicious user may pass this variable by url/form, we don't take * into account this case. */ if (PMA_hasNoRightsToDropDatabase( $analyzed_sql_results, $cfg['AllowUserDropDatabase'], $is_superuser )) { Util::mysqlDie( __('"DROP DATABASE" statements are disabled.'), '', false, $err_url ); } // end if /** * Need to find the real end of rows? */ if (isset($find_real_end) && $find_real_end) { $unlim_num_rows = PMA_findRealEndOfRows($db, $table); } /** * Bookmark add */ if (isset($_POST['store_bkm'])) { PMA_addBookmark($goto); // script has exited at this point } // end if /** * Sets or modifies the $goto variable if required */ if ($goto == 'sql.php') { $is_gotofile = false; $goto = 'sql.php' . URL::getCommon( array( 'db' => $db, 'table' => $table, 'sql_query' => $sql_query ) ); } // end if PMA_executeQueryAndSendQueryResponse( $analyzed_sql_results, // analyzed_sql_results $is_gotofile, // is_gotofile $db, // db $table, // table isset($find_real_end) ? $find_real_end : null, // find_real_end isset($import_text) ? $import_text : null, // sql_query_for_bookmark isset($extra_data) ? $extra_data : null, // extra_data isset($message_to_show) ? $message_to_show : null, // message_to_show isset($message) ? $message : null, // message isset($sql_data) ? $sql_data : null, // sql_data $goto, // goto $pmaThemeImage, // pmaThemeImage isset($disp_query) ? $display_query : null, // disp_query isset($disp_message) ? $disp_message : null, // disp_message isset($query_type) ? $query_type : null, // query_type $sql_query, // sql_query isset($selected) ? $selected : null, // selectedTables isset($complete_query) ? $complete_query : null // complete_query );
Upload File
Create Folder