Hackfut Security File Manager
Current Path:
/mnt/ceph/services/websiteos/phpmyadmin/phpMyAdmin-5.0.4-all-languages/js
mnt
/
ceph
/
services
/
websiteos
/
phpmyadmin
/
phpMyAdmin-5.0.4-all-languages
/
js
/
📁
..
📄
ajax.js
(35.97 KB)
📄
chart.js
(18.05 KB)
📁
codemirror
📄
common.js
(4.55 KB)
📄
config.js
(26.76 KB)
📄
console.js
(55.69 KB)
📄
cross_framing_protection.js
(465 B)
📁
database
📁
designer
📄
doclinks.js
(18.53 KB)
📄
drag_drop_import.js
(14.19 KB)
📄
error_report.js
(10.63 KB)
📄
export.js
(35.26 KB)
📄
export_output.js
(298 B)
📄
functions.js
(174.02 KB)
📄
gis_data_editor.js
(14.67 KB)
📄
import.js
(6.54 KB)
📄
indexes.js
(29.16 KB)
📁
jqplot
📄
keyhandler.js
(3.26 KB)
📄
makegrid.js
(96.45 KB)
📄
menu_resizer.js
(8.08 KB)
📄
messages.php
(41 KB)
📄
microhistory.js
(11.4 KB)
📄
multi_column_sort.js
(3.25 KB)
📄
navigation.js
(61.34 KB)
📄
normalization.js
(27.59 KB)
📄
page_settings.js
(1.71 KB)
📄
replication.js
(3.34 KB)
📄
rte.js
(46.97 KB)
📁
server
📁
setup
📄
shortcuts_handler.js
(3.75 KB)
📄
sql.js
(37.77 KB)
📁
table
📁
transformations
📄
u2f.js
(2.44 KB)
📁
vendor
📄
whitelist.php
(1.38 KB)
Editing: common.js
/* vim: set expandtab sw=4 ts=4 sts=4: */ $(function () { Functions.checkNumberOfFields(); }); /** * Holds common parameters such as server, db, table, etc * * The content for this is normally loaded from Header.php or * Response.php and executed by ajax.js */ var CommonParams = (function () { /** * @var hash params An associative array of key value pairs * @access private */ var params = {}; // The returned object is the public part of the module return { /** * Saves all the key value pair that * are provided in the input array * * @param obj hash The input array * * @return void */ setAll: function (obj) { var updateNavigation = false; for (var i in obj) { if (params[i] !== undefined && params[i] !== obj[i]) { if (i === 'db' || i === 'table') { updateNavigation = true; } } params[i] = obj[i]; } if (updateNavigation && $('#pma_navigation_tree').hasClass('synced') ) { Navigation.showCurrent(); } }, /** * Retrieves a value given its key * Returns empty string for undefined values * * @param name string The key * * @return string */ get: function (name) { return params[name]; }, /** * Saves a single key value pair * * @param name string The key * @param value string The value * * @return self For chainability */ set: function (name, value) { var updateNavigation = false; if (name === 'db' || name === 'table' && params[name] !== value ) { updateNavigation = true; } params[name] = value; if (updateNavigation && $('#pma_navigation_tree').hasClass('synced') ) { Navigation.showCurrent(); } return this; }, /** * Returns the url query string using the saved parameters * * @return string */ getUrlQuery: function () { var common = this.get('common_query'); var separator = '?'; var argsep = CommonParams.get('arg_separator'); if (common.length > 0) { separator = argsep; } return Functions.sprintf( '%s%sserver=%s' + argsep + 'db=%s' + argsep + 'table=%s', this.get('common_query'), separator, encodeURIComponent(this.get('server')), encodeURIComponent(this.get('db')), encodeURIComponent(this.get('table')) ); } }; }()); /** * Holds common parameters such as server, db, table, etc * * The content for this is normally loaded from Header.php or * Response.php and executed by ajax.js */ // eslint-disable-next-line no-unused-vars var CommonActions = { /** * Saves the database name when it's changed * and reloads the query window, if necessary * * @param newDb string new_db The name of the new database * * @return void */ setDb: function (newDb) { if (newDb !== CommonParams.get('db')) { CommonParams.setAll({ 'db': newDb, 'table': '' }); } }, /** * Opens a database in the main part of the page * * @param newDb string The name of the new database * * @return void */ openDb: function (newDb) { CommonParams .set('db', newDb) .set('table', ''); this.refreshMain( CommonParams.get('opendb_url') ); }, /** * Refreshes the main frame * * @param mixed url Undefined to refresh to the same page * String to go to a different page, e.g: 'index.php' * * @return void */ refreshMain: function (url, callback) { var newUrl = url; if (! newUrl) { newUrl = $('#selflink').find('a').attr('href') || window.location.pathname; newUrl = newUrl.substring(0, newUrl.indexOf('?')); } newUrl += CommonParams.getUrlQuery(); $('<a></a>', { href: newUrl }) .appendTo('body') .trigger('click') .remove(); AJAX.callback = callback; } };
Upload File
Create Folder