HOR-1573
HOR-1573 HOR-1573 HOR-1573
This commit is contained in:
@@ -343,8 +343,6 @@ switch ($action) {
|
||||
}
|
||||
break;
|
||||
case 'showEncodes':
|
||||
//G::LoadThirdParty( 'pear/json', 'class.json' );
|
||||
//$oJSON =
|
||||
G::LoadSystem('inputfilter');
|
||||
$filter = new InputFilter();
|
||||
$engine = $_POST['engine'];
|
||||
@@ -352,10 +350,10 @@ switch ($action) {
|
||||
if ($engine != "0") {
|
||||
$dbs = new dbConnections();
|
||||
$var = Bootstrap::json_encode($dbs->getEncondeList($filter->xssFilterHard($engine)));
|
||||
echo $var;
|
||||
G::outRes($var);
|
||||
|
||||
} else {
|
||||
echo '[["0","..."]]';
|
||||
G::outRes('[["0","..."]]');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -174,7 +174,10 @@ if (isset( $_REQUEST['action'] )) {
|
||||
$varEcho = '{success: true}';
|
||||
G::outRes( $varEcho );
|
||||
} catch (Exception $ex) {
|
||||
echo '{success: false, error: ' . $ex->getMessage() . '}';
|
||||
$token = strtotime("now");
|
||||
PMException::registerErrorLog($ex, $token);
|
||||
$resJson = '{success: false, error: ' . G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) . '}';
|
||||
G::outRes( $resJson );
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -993,6 +993,9 @@ try {
|
||||
die($sOutput);
|
||||
}
|
||||
} catch (Exception $oException) {
|
||||
die($oException->getMessage() . "\n" . $oException->getTraceAsString());
|
||||
$token = strtotime("now");
|
||||
PMException::registerErrorLog($oException, $token);
|
||||
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
|
||||
die;
|
||||
}
|
||||
|
||||
|
||||
@@ -161,7 +161,9 @@ if (isset( $_FILES ) && $_FILES["ATTACH_FILE"]["error"] == 0) {
|
||||
}
|
||||
//End plugin
|
||||
} catch (Exception $e) {
|
||||
print ($e->getMessage()) ;
|
||||
$token = strtotime("now");
|
||||
PMException::registerErrorLog($e, $token);
|
||||
G::outRes( G::LoadTranslation("ID_EXCEPTION_LOG_INTERFAZ", array($token)) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -92,12 +92,12 @@ try {
|
||||
switch ((int) $_POST['TU_RELATION']) {
|
||||
case 1:
|
||||
$resh = htmlentities($oTasks->assignUser($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']), ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
echo $res;
|
||||
G::outRes($resh);
|
||||
G::auditlog("AssignUserTask","Assign a User to a Task -> ".$_POST['TAS_UID'].' User UID -> '.$_POST['USR_UID']);
|
||||
break;
|
||||
case 2:
|
||||
$resh = htmlentities($oTasks->assignGroup($_POST['TAS_UID'], $_POST['USR_UID'], $_POST['TU_TYPE']), ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
echo $resh;
|
||||
G::outRes($resh);
|
||||
G::auditlog("AssignGroupTask","Assign a Group to a Task -> ".$_POST['TAS_UID'].' User UID -> '.$_POST['USR_UID']);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user