Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\nuevo\phpMyAdmin\js\ drwxrwxrwx |
Viewing file: Select action/file-type: /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * @fileoverview functions used in server privilege pages * @name Server Privileges * * @requires jQuery * @requires jQueryUI * @requires js/functions.js * */ /** * Validates the "add a user" form * * @return boolean whether the form is validated or not */ function checkAddUser(the_form) { if (the_form.elements.pred_hostname.value == 'userdefined' && the_form.elements.hostname.value === '') { alert(PMA_messages.strHostEmpty); the_form.elements.hostname.focus(); return false; } if (the_form.elements.pred_username.value == 'userdefined' && the_form.elements.username.value === '') { alert(PMA_messages.strUserEmpty); the_form.elements.username.focus(); return false; } return PMA_checkPassword($(the_form)); } // end of the 'checkAddUser()' function /** * When a new user is created and retrieved over Ajax, append the user's row to * the user's table * * @param new_user_string the html for the new user's row * @param new_user_initial the first alphabet of the user's name * @param new_user_initial_string html to replace the initial for pagination */ function appendNewUser(new_user_string, new_user_initial, new_user_initial_string) { //Append the newly retrieved user to the table now //Calculate the index for the new row var $curr_last_row = $("#usersForm").find('tbody').find('tr:last'); if ($curr_last_row.length) { // at least one tr exists inside the tbody var $curr_first_row = $("#usersForm").find('tbody').find('tr:first'); var first_row_initial = $curr_first_row.find('label').html().substr(0, 1).toUpperCase(); var curr_shown_initial = $curr_last_row.find('label').html().substr(0, 1).toUpperCase(); var curr_last_row_index_string = $curr_last_row.find('input:checkbox').attr('id').match(/\d+/)[0]; var curr_last_row_index = parseFloat(curr_last_row_index_string); var new_last_row_index = curr_last_row_index + 1; var is_show_all = (first_row_initial != curr_shown_initial) ? true : false; var $insert_position = $curr_last_row; var dummy_tr_inserted = false; } else { // no tr exists inside the tbody var $tbody = $("#usersForm").find('tbody'); // append a dummy tr $tbody.append(' |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |