Merge branch '2379-Entrar-a-consola-sin-licencia-mobile' into 'develop'
Implemented license validation for mobile console See merge request artica/pandorafms!1712
This commit is contained in:
commit
df4c61d673
|
@ -42,6 +42,8 @@ $enterpriseHook = enterprise_include('mobile/include/enterprise.class.php');
|
||||||
$enterpriseHook = enterprise_include('mobile/operation/dashboard.php');
|
$enterpriseHook = enterprise_include('mobile/operation/dashboard.php');
|
||||||
$enterpriseHook = enterprise_include('mobile/operation/home.php');
|
$enterpriseHook = enterprise_include('mobile/operation/home.php');
|
||||||
|
|
||||||
|
$is_mobile=true;
|
||||||
|
|
||||||
if (!empty ($config["https"]) && empty ($_SERVER['HTTPS'])) {
|
if (!empty ($config["https"]) && empty ($_SERVER['HTTPS'])) {
|
||||||
$query = '';
|
$query = '';
|
||||||
if (sizeof ($_REQUEST))
|
if (sizeof ($_REQUEST))
|
||||||
|
@ -116,6 +118,13 @@ if ($action != "ajax") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($user->isLogged()) {
|
||||||
|
|
||||||
|
if (file_exists ("../enterprise/load_enterprise.php")) {
|
||||||
|
include_once ("../enterprise/load_enterprise.php");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'ajax':
|
case 'ajax':
|
||||||
$parameter1 = $system->getRequest('parameter1', false);
|
$parameter1 = $system->getRequest('parameter1', false);
|
||||||
|
@ -169,6 +178,11 @@ switch ($action) {
|
||||||
break;
|
break;
|
||||||
case 'login':
|
case 'login':
|
||||||
if ($user->login() && $user->isLogged()) {
|
if ($user->login() && $user->isLogged()) {
|
||||||
|
|
||||||
|
if (file_exists ("../enterprise/load_enterprise.php")) {
|
||||||
|
include_once ("../enterprise/load_enterprise.php");
|
||||||
|
}
|
||||||
|
|
||||||
if ($user->isWaitingDoubleAuth()) {
|
if ($user->isWaitingDoubleAuth()) {
|
||||||
if ($user->validateDoubleAuthCode()) {
|
if ($user->validateDoubleAuthCode()) {
|
||||||
// Logged. Refresh the page
|
// Logged. Refresh the page
|
||||||
|
@ -192,6 +206,12 @@ switch ($action) {
|
||||||
break;
|
break;
|
||||||
case 'double_auth':
|
case 'double_auth':
|
||||||
if ($user->isLogged()) {
|
if ($user->isLogged()) {
|
||||||
|
|
||||||
|
if (file_exists ("../enterprise/load_enterprise.php")) {
|
||||||
|
include_once ("../enterprise/load_enterprise.php");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($user->validateDoubleAuthCode()) {
|
if ($user->validateDoubleAuthCode()) {
|
||||||
$user_language = get_user_language ($system->getConfig('id_user'));
|
$user_language = get_user_language ($system->getConfig('id_user'));
|
||||||
if (file_exists ('../include/languages/'.$user_language.'.mo')) {
|
if (file_exists ('../include/languages/'.$user_language.'.mo')) {
|
||||||
|
@ -358,4 +378,8 @@ switch ($action) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue