@@ -34,6 +34,15 @@
|
|||||||
//require_once 'classes/model/Process.php';
|
//require_once 'classes/model/Process.php';
|
||||||
//require_once 'classes/model/Task.php';
|
//require_once 'classes/model/Task.php';
|
||||||
|
|
||||||
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
|
$responseObject = new stdclass();
|
||||||
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
|
$responseObject->success = true;
|
||||||
|
$responseObject->lostSession = true;
|
||||||
|
print G::json_encode( $responseObject );
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
G::LoadSystem('inputfilter');
|
G::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
|
$responseObject = new stdclass();
|
||||||
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
|
$responseObject->success = true;
|
||||||
|
$responseObject->lostSession = true;
|
||||||
|
print G::json_encode( $responseObject );
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
$actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
$actionAjax = isset( $_REQUEST['actionAjax'] ) ? $_REQUEST['actionAjax'] : null;
|
||||||
|
|
||||||
|
|||||||
@@ -22,18 +22,12 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
G::SendTemporalMessage( 'ID_LOGIN_AGAIN', 'warning', 'labels' );
|
$responseObject = new stdclass();
|
||||||
die( '<script type="text/javascript">
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
try
|
$responseObject->success = true;
|
||||||
{
|
$responseObject->lostSession = true;
|
||||||
prnt = parent.parent;
|
print G::json_encode( $responseObject );
|
||||||
top.location = top.location;
|
die();
|
||||||
}
|
|
||||||
catch (err)
|
|
||||||
{
|
|
||||||
parent.location = parent.location;
|
|
||||||
}
|
|
||||||
</script>');
|
|
||||||
}
|
}
|
||||||
/* Permissions */
|
/* Permissions */
|
||||||
switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||||
|
|||||||
@@ -23,8 +23,16 @@
|
|||||||
*/
|
*/
|
||||||
//validate the data post
|
//validate the data post
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
G::SendTemporalMessage( 'ID_LOGIN_AGAIN', 'warning', 'labels' );
|
if(!strpos($_SERVER['REQUEST_URI'], 'gmail')) {
|
||||||
die( '<script type="text/javascript">
|
$responseObject = new stdclass();
|
||||||
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
|
$responseObject->success = true;
|
||||||
|
$responseObject->lostSession = true;
|
||||||
|
print G::json_encode( $responseObject );
|
||||||
|
die();
|
||||||
|
} else {
|
||||||
|
G::SendTemporalMessage('ID_LOGIN_AGAIN', 'warning', 'labels');
|
||||||
|
die('<script type="text/javascript">
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var olink = document.location.href;
|
var olink = document.location.href;
|
||||||
@@ -58,6 +66,7 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
|||||||
parent.location = parent.location;
|
parent.location = parent.location;
|
||||||
}
|
}
|
||||||
</script>');
|
</script>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
G::SendTemporalMessage( 'ID_LOGIN_AGAIN', 'warning', 'labels' );
|
if(!strpos($_SERVER['REQUEST_URI'], 'gmail')) {
|
||||||
die( '<script type="text/javascript">
|
$responseObject = new stdclass();
|
||||||
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
|
$responseObject->success = true;
|
||||||
|
$responseObject->lostSession = true;
|
||||||
|
print G::json_encode( $responseObject );
|
||||||
|
die();
|
||||||
|
} else {
|
||||||
|
G::SendTemporalMessage( 'ID_LOGIN_AGAIN', 'warning', 'labels' );
|
||||||
|
die( '<script type="text/javascript">
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var olink = document.location.href;
|
var olink = document.location.href;
|
||||||
@@ -36,6 +44,7 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
|||||||
parent.location = parent.location;
|
parent.location = parent.location;
|
||||||
}
|
}
|
||||||
</script>');
|
</script>');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'classes/model/AppDelegation.php';
|
require_once 'classes/model/AppDelegation.php';
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
G::LoadSystem('inputfilter');
|
|
||||||
$filter = new InputFilter();
|
|
||||||
$_GET = $filter->xssFilterHard($_GET);
|
|
||||||
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
|
||||||
$_SESSION['USER_LOGGED'] = $filter->xssFilterHard($_SESSION['USER_LOGGED']);
|
|
||||||
|
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
$responseObject = new stdclass();
|
$responseObject = new stdclass();
|
||||||
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
@@ -14,6 +8,12 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$_GET = $filter->xssFilterHard($_GET);
|
||||||
|
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
||||||
|
$_SESSION['USER_LOGGED'] = $filter->xssFilterHard($_SESSION['USER_LOGGED']);
|
||||||
|
|
||||||
//Getting the extJs parameters
|
//Getting the extJs parameters
|
||||||
$callback = isset( $_REQUEST["callback"] ) ? $_REQUEST["callback"] : "stcCallback1001";
|
$callback = isset( $_REQUEST["callback"] ) ? $_REQUEST["callback"] : "stcCallback1001";
|
||||||
$dir = isset( $_REQUEST["dir"] ) ? $_REQUEST["dir"] : "DESC";
|
$dir = isset( $_REQUEST["dir"] ) ? $_REQUEST["dir"] : "DESC";
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
G::LoadSystem('inputfilter');
|
|
||||||
$filter = new InputFilter();
|
|
||||||
$_GET = $filter->xssFilterHard($_GET);
|
|
||||||
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
|
||||||
$_SESSION['USER_LOGGED'] = $filter->xssFilterHard($_SESSION['USER_LOGGED']);
|
|
||||||
|
|
||||||
if (!isset($_SESSION['USER_LOGGED'])) {
|
if (!isset($_SESSION['USER_LOGGED'])) {
|
||||||
$responseObject = new stdclass();
|
$responseObject = new stdclass();
|
||||||
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
$responseObject->error = G::LoadTranslation('ID_LOGIN_AGAIN');
|
||||||
@@ -14,6 +8,12 @@ if (!isset($_SESSION['USER_LOGGED'])) {
|
|||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$_GET = $filter->xssFilterHard($_GET);
|
||||||
|
$_REQUEST = $filter->xssFilterHard($_REQUEST);
|
||||||
|
$_SESSION['USER_LOGGED'] = $filter->xssFilterHard($_SESSION['USER_LOGGED']);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$userUid = $_SESSION['USER_LOGGED'];
|
$userUid = $_SESSION['USER_LOGGED'];
|
||||||
$filters['paged'] = isset( $_REQUEST["paged"] ) ? $filter->sanitizeInputValue($_REQUEST["paged"], 'nosql') : true;
|
$filters['paged'] = isset( $_REQUEST["paged"] ) ? $filter->sanitizeInputValue($_REQUEST["paged"], 'nosql') : true;
|
||||||
|
|||||||
Reference in New Issue
Block a user