One Hat Cyber Team
Your IP :
216.73.216.80
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
backup
/
oldserver
/
6
/
www
/
html
/
horde
/
js
/
View File Name :
login.js
/** * Provides the javascript for the login.php script. * * @author Michael Slusarz <slusarz@horde.org> * @copyright 2006-2015 Horde LLC * @license LGPL-2 (http://www.horde.org/licenses/lgpl) */ var HordeLogin = { // Variables set by outside code: user_error, pass_error submit: function() { if ($('horde_user') && !$F('horde_user')) { alert(HordeLogin.user_error); $('horde_user').focus(); } else if ($('horde_pass') && !$F('horde_pass')) { alert(HordeLogin.pass_error); $('horde_pass').focus(); } else { $('login-button').disable(); $('login_post').setValue(1); $('horde_login').submit(); } }, selectLang: function() { // We need to reload the login page here, but only if the user hasn't // already entered a username and password. if ((!$('horde_user') || !$F('horde_user')) && (!$('horde_pass') || !$F('horde_pass'))) { var params = { new_lang: $F('new_lang') }; self.location = 'login.php?' + Object.toQueryString(params); } }, loginButton: function(e) { if (e.isRightClick()) { return; } if (!e.element().readAttribute('disabled')) { this.submit(); } e.stop(); }, keypressPassword: function(e) { var kc = e.keyCode || e.charCode; if (((kc >= 65 & kc <= 90) && !e.shiftKey) || ((kc >= 97 & kc <= 122) && e.shiftKey)) { $('horde-login-pass-capslock').show(); } else { $('horde-login-pass-capslock').hide(); } }, /* Removes any leading hash that might be on a location string. */ _removeHash: function(h) { return (Object.isString(h) && h.startsWith("#")) ? h.substring(1) : h; }, onDomLoad: function() { var s = $('horde_select_view'); // Need to capture hash information if it exists in URL if (location.hash) { $('anchor_string').setValue(this._removeHash(location.hash)); } if ($('horde_user') && !$F('horde_user')) { $('horde_user').focus(); } else if ($('horde_pass') && !$F('horde_pass')) { $('horde_pass').focus(); } else { $('login-button').focus(); } /* Programatically activate views that require javascript. */ if (s) { s.down('option[value=mobile_nojs]').remove(); if (this.pre_sel) { s.selectedIndex = s.down('option[value=' + this.pre_sel + ']').index; } $('horde_select_view_div').show(); } } }; document.observe('dom:loaded', HordeLogin.onDomLoad.bind(HordeLogin)); document.on('change', '#new_lang', HordeLogin.selectLang.bind(HordeLogin)); document.on('click', '#login-button', HordeLogin.loginButton.bind(HordeLogin)); document.on('keypress', '#horde_pass', HordeLogin.keypressPassword.bind(HordeLogin));