2013-10-02 Miguel de Dios <miguel.dedios@artica.es>

* include/javascript/jquery.pandora.js, index.php,
	general/login_page.php: fixed the show the warning trial enterprise
	message when fail login.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8841 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-10-02 10:08:45 +00:00
parent a72e3d3b43
commit d51cbff334
4 changed files with 42 additions and 29 deletions

View File

@ -1,3 +1,9 @@
2013-10-02 Miguel de Dios <miguel.dedios@artica.es>
* include/javascript/jquery.pandora.js, index.php,
general/login_page.php: fixed the show the warning trial enterprise
message when fail login.
2013-10-01 Sergio Martin <sergio.martin@artica.es>
* include/styles/menu.css: Fixed menus item height to

View File

@ -104,7 +104,7 @@ echo '
html_print_input_text_extended ("pass", '', "pass", '', '', '' ,false, '', 'class="login login_password"', false, true);
echo '</div>';
echo '<div class="login_button">';
html_print_submit_button(__("Login"), "login", false, 'class="sub next_login"');
html_print_submit_button(__("Login"), "login_button", false, 'class="sub next_login"');
echo '</div>';
break;
case 'logout':

View File

@ -85,32 +85,37 @@ $(document).ready (function () {
});
if ($('#license_error_msg_dialog').length) {
if (typeof(process_login_ok) == "undefined")
process_login_ok = 0;
$( "#license_error_msg_dialog" ).dialog({
dialogClass: "no-close",
resizable: true,
draggable: true,
modal: true,
height: 350,
width: 650,
overlay: {
opacity: 0.5,
background: "black"
},
open: function() {
setTimeout(function(){
$("#spinner_ok").hide();
$("#ok_buttom").show();
},
10000
);
}
});
if (process_login_ok) {
$("#submit-hide-license-error-msg").click (function () {
$("#license_error_msg_dialog" ).dialog('close')
});
$( "#license_error_msg_dialog" ).dialog({
dialogClass: "no-close",
resizable: true,
draggable: true,
modal: true,
height: 350,
width: 610,
overlay: {
opacity: 0.5,
background: "black"
},
open: function() {
setTimeout(function(){
$("#spinner_ok").hide();
$("#ok_buttom").show();
},
10000
);
}
});
$("#submit-hide-license-error-msg").click (function () {
$("#license_error_msg_dialog" ).dialog('close')
});
}
}

View File

@ -68,7 +68,7 @@ session_start ();
require_once ("include/config.php");
// If metaconsole activated, redirect to it
if($config['metaconsole'] == 1 && $config['enterprise_installed'] == 1) {
if ($config['metaconsole'] == 1 && $config['enterprise_installed'] == 1) {
header ("Location: " . $config['homeurl'] . "enterprise/meta");
}
@ -239,6 +239,8 @@ elseif (! isset ($config['id_user']) && isset ($_GET["login"])) {
//login ok and password has not expired
$process_login = true;
echo "<script type='text/javascript'>var process_login_ok = 1;</script>";
unset ($_GET["sec2"]);
$_GET["sec"] = "general/logon_ok";
$home_page ='';