I reviewed the observations
This commit is contained in:
@@ -1,14 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (isset($_REQUEST['actionAjax']) && $_REQUEST['actionAjax'] == "verifySession" ) {
|
||||||
if ((isset( $_POST['request'] )) && ($_POST['request'] == true)) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
$response = new stdclass();
|
if ((isset( $_POST['request'] )) && ($_POST['request'] == true)) {
|
||||||
$response->message = G::LoadTranslation('ID_LOGIN_AGAIN1');
|
$response = new stdclass();
|
||||||
$response->lostSession = true;
|
$response->message = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
print G::json_encode( $response );
|
$response->lostSession = true;
|
||||||
die();
|
print G::json_encode( $response );
|
||||||
|
die();
|
||||||
|
} else {
|
||||||
|
G::SendMessageText( G::LoadTranslation('ID_LOGIN_TO_SEE_OUTPUTDOCS'), "WARNING" );
|
||||||
|
G::header("location: " . "/");
|
||||||
|
die();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
G::SendMessageText( G::LoadTranslation('ID_LOGIN_TO_SEE_OUTPUTDOCS'), "WARNING" );
|
$response = new stdclass();
|
||||||
G::header("location: " . "/");
|
print G::json_encode( $response );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user