Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
server_privileges.js
Содержимое
/* vim: set expandtab sw=4 ts=4 sts=4: */ /** * function used in server privilege pages * * @version $Id$ */ /** * Validates the password field in a form * * @param object the form * * @return boolean whether the field value is valid or not */ function checkPassword(the_form) { // Did the user select 'no password'? if (typeof(the_form.elements['nopass']) != 'undefined' && the_form.elements['nopass'][0].checked) { return true; } else if (typeof(the_form.elements['pred_password']) != 'undefined' && (the_form.elements['pred_password'].value == 'none' || the_form.elements['pred_password'].value == 'keep')) { return true; } // Validates if (the_form.elements['pma_pw'].value == '') { alert(jsPasswordEmpty); the_form.elements['pma_pw2'].value = ''; the_form.elements['pma_pw'].focus(); return false; } else if (the_form.elements['pma_pw'].value != the_form.elements['pma_pw2'].value) { alert(jsPasswordNotSame); the_form.elements['pma_pw'].value = ''; the_form.elements['pma_pw2'].value = ''; the_form.elements['pma_pw'].focus(); return false; } // end if...else if return true; } // end of the 'checkPassword()' function /** * 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(jsHostEmpty); the_form.elements['hostname'].focus(); return false; } if (the_form.elements['pred_username'].value == 'userdefined' && the_form.elements['username'].value == '') { alert(jsUserEmpty); the_form.elements['username'].focus(); return false; } return checkPassword(the_form); } // end of the 'checkAddUser()' function /** * Generate a new password, which may then be copied to the form * with suggestPasswordCopy(). * * @param string the form name * * @return boolean always true */ function suggestPassword() { // restrict the password to just letters and numbers to avoid problems: // "editors and viewers regard the password as multiple words and // things like double click no longer work" var pwchars = "abcdefhjmnpqrstuvwxyz23456789ABCDEFGHJKLMNPQRSTUVWYXZ"; var passwordlength = 16; // do we want that to be dynamic? no, keep it simple :) var passwd = document.getElementById('generated_pw'); passwd.value = ''; for ( i = 0; i < passwordlength; i++ ) { passwd.value += pwchars.charAt( Math.floor( Math.random() * pwchars.length ) ) } return passwd.value; } /** * Copy the generated password (or anything in the field) to the form * * @param string the form name * * @return boolean always true */ function suggestPasswordCopy() { document.getElementById('text_pma_pw').value = document.getElementById('generated_pw').value; document.getElementById('text_pma_pw2').value = document.getElementById('generated_pw').value; return true; }
/admin/myadmin2/js/
Имя
Дата
Размер
..
2013-06-28
dom-drag.js
2013-06-28
4 кб.
functions.js
2013-06-28
40 кб.
indexes.js
2013-06-28
2 кб.
keyhandler.js
2013-06-28
2 кб.
navigation.js
2013-06-28
4 кб.
querywindow.js
2013-06-28
11 кб.
server_privileges.js
2013-06-28
3 кб.
tbl_change.js
2013-06-28
11 кб.
tooltip.js
2013-06-28
5 кб.
user_password.js
2013-06-28
6 кб.
/admin/myadmin2/js
Загрузить файлы
Файл 1
Файл 2
Файл 3