Merged colosa/processmaker into master
This commit is contained in:
@@ -115,7 +115,7 @@ BarChart.prototype.drawBars = function(data, canvas, param) {
|
|||||||
.attr("x", graphDim.left*2 + graphDim.width/2)
|
.attr("x", graphDim.left*2 + graphDim.width/2)
|
||||||
.attr("dy", "1.5em")
|
.attr("dy", "1.5em")
|
||||||
.style("text-anchor", "end")
|
.style("text-anchor", "end")
|
||||||
.text("No data to draw...");
|
.text(param.canvas.noDataText);
|
||||||
data = [ {"value":"0", "datalabel":"None"} ];
|
data = [ {"value":"0", "datalabel":"None"} ];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1097,7 +1097,7 @@ PieChart.prototype.drawChart = function () {
|
|||||||
|
|
||||||
PieChart.prototype.drawPie2D = function (dataset, canvas, param) {
|
PieChart.prototype.drawPie2D = function (dataset, canvas, param) {
|
||||||
if (dataset == null || dataset.length == 0) {
|
if (dataset == null || dataset.length == 0) {
|
||||||
this.$container.html( "<div class='pm-charts-no-draw'>No data to draw ...</div>" );
|
this.$container.html( "<div class='pm-charts-no-draw'>"+param.canvas.noDataText+"</div>" );
|
||||||
}
|
}
|
||||||
|
|
||||||
var parameter = createDefaultParamsForGraphPie(param);
|
var parameter = createDefaultParamsForGraphPie(param);
|
||||||
@@ -1443,7 +1443,7 @@ Pie3DChart.prototype.drawChart = function () {
|
|||||||
Pie3DChart.prototype.drawPie3D = function (data, canvas, param) {
|
Pie3DChart.prototype.drawPie3D = function (data, canvas, param) {
|
||||||
|
|
||||||
if (data == null || data.length == 0) {
|
if (data == null || data.length == 0) {
|
||||||
this.$container.html( "<div class='pm-charts-no-draw'>No data to draw ...</div>" );
|
this.$container.html( "<div class='pm-charts-no-draw'>"+param.canvas.noDataText+"</div>" );
|
||||||
}
|
}
|
||||||
|
|
||||||
var duration_transition = 0;
|
var duration_transition = 0;
|
||||||
@@ -1613,7 +1613,7 @@ RingChart.prototype.drawChart = function () {
|
|||||||
|
|
||||||
RingChart.prototype.drawRing = function(data, canvas, param){
|
RingChart.prototype.drawRing = function(data, canvas, param){
|
||||||
if (data == null || data.length == 0) {
|
if (data == null || data.length == 0) {
|
||||||
this.$container.html( "<div class='pm-charts-no-draw'>No data to draw ...</div>" );
|
this.$container.html( "<div class='pm-charts-no-draw'>"+param.canvas.noDataText+"</div>" );
|
||||||
}
|
}
|
||||||
|
|
||||||
//d3.select('#'+parent).select('svg').remove();
|
//d3.select('#'+parent).select('svg').remove();
|
||||||
|
|||||||
@@ -670,10 +670,18 @@ class Bootstrap
|
|||||||
*/
|
*/
|
||||||
public static function LoadClass($strClass)
|
public static function LoadClass($strClass)
|
||||||
{
|
{
|
||||||
|
Bootstrap::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
|
||||||
|
$path = PATH_GULLIVER . 'class.' . $strClass . '.php';
|
||||||
|
$path = $filter->validateInput($path, "path");
|
||||||
|
|
||||||
$classfile = Bootstrap::ExpandPath("classes") . 'class.' . $strClass . '.php';
|
$classfile = Bootstrap::ExpandPath("classes") . 'class.' . $strClass . '.php';
|
||||||
|
$classfile = $filter->validateInput($classfile, "path");
|
||||||
|
|
||||||
if (!file_exists($classfile)) {
|
if (!file_exists($classfile)) {
|
||||||
if (file_exists(PATH_GULLIVER . 'class.' . $strClass . '.php')) {
|
if (file_exists($path)) {
|
||||||
return require_once (PATH_GULLIVER . 'class.' . $strClass . '.php');
|
return require_once ($path);
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2653,6 +2653,7 @@ class G
|
|||||||
G::LoadSystem('inputfilter');
|
G::LoadSystem('inputfilter');
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$file = $filter->validateInput($file, "path");
|
$file = $filter->validateInput($file, "path");
|
||||||
|
$path = $filter->validateInput($path, "path");
|
||||||
|
|
||||||
move_uploaded_file( $file, $path . "/" . $nameToSave );
|
move_uploaded_file( $file, $path . "/" . $nameToSave );
|
||||||
@chmod( $path . "/" . $nameToSave, $permission );
|
@chmod( $path . "/" . $nameToSave, $permission );
|
||||||
|
|||||||
@@ -83,6 +83,21 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac
|
|||||||
if (!file_exists($file)) {
|
if (!file_exists($file)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$file = $filter->validateInput($file,"path");
|
||||||
|
|
||||||
return unlink($file);
|
return unlink($file);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,6 +197,20 @@ class HTMLPurifier_DefinitionCache_Serializer extends HTMLPurifier_DefinitionCac
|
|||||||
*/
|
*/
|
||||||
private function _write($file, $data, $config)
|
private function _write($file, $data, $config)
|
||||||
{
|
{
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$file = $filter->validateInput($file,"path");
|
||||||
|
|
||||||
if(is_file($file)) {
|
if(is_file($file)) {
|
||||||
$result = file_put_contents($file, $data);
|
$result = file_put_contents($file, $data);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Archive/Zip.php
vendored
11
gulliver/thirdparty/pear/Archive/Zip.php
vendored
@@ -3602,7 +3602,16 @@ class Archive_Zip
|
|||||||
|
|
||||||
public function encryptCrc32($string)
|
public function encryptCrc32($string)
|
||||||
{
|
{
|
||||||
return crc32($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptCrc32($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Log/syslog.php
vendored
11
gulliver/thirdparty/pear/Log/syslog.php
vendored
@@ -178,7 +178,16 @@ class Log_syslog extends Log
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/Log/win.php
vendored
11
gulliver/thirdparty/pear/Log/win.php
vendored
@@ -268,7 +268,16 @@ EOT;
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
29
gulliver/thirdparty/pear/PEAR/Builder.php
vendored
29
gulliver/thirdparty/pear/PEAR/Builder.php
vendored
@@ -107,7 +107,20 @@ class PEAR_Builder extends PEAR_Common
|
|||||||
} else {
|
} else {
|
||||||
return $this->raiseError("Did not understand the completion status returned from msdev.exe.");
|
return $this->raiseError("Did not understand the completion status returned from msdev.exe.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$dsp = $filter->validateInput($dsp,"path");
|
||||||
// msdev doesn't tell us the output directory :/
|
// msdev doesn't tell us the output directory :/
|
||||||
// open the dsp, find /out and use that directory
|
// open the dsp, find /out and use that directory
|
||||||
$dsptext = join(file($dsp),'');
|
$dsptext = join(file($dsp),'');
|
||||||
@@ -347,6 +360,20 @@ class PEAR_Builder extends PEAR_Common
|
|||||||
*/
|
*/
|
||||||
function _runCommand($command, $callback = null)
|
function _runCommand($command, $callback = null)
|
||||||
{
|
{
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$command = $filter->validateInput($command);
|
||||||
|
|
||||||
$this->log(1, "running: $command");
|
$this->log(1, "running: $command");
|
||||||
$pp = @popen("$command 2>&1", "r");
|
$pp = @popen("$command 2>&1", "r");
|
||||||
if (!$pp) {
|
if (!$pp) {
|
||||||
|
|||||||
@@ -358,6 +358,21 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
|
|||||||
$this->output .= "+ $command\n";
|
$this->output .= "+ $command\n";
|
||||||
}
|
}
|
||||||
$this->output .= "+ $command\n";
|
$this->output .= "+ $command\n";
|
||||||
|
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$command = $filter->validateInput($command);
|
||||||
|
|
||||||
if (empty($options['dry-run'])) {
|
if (empty($options['dry-run'])) {
|
||||||
$fp = popen($command, "r");
|
$fp = popen($command, "r");
|
||||||
while ($line = fgets($fp, 1024)) {
|
while ($line = fgets($fp, 1024)) {
|
||||||
|
|||||||
28
gulliver/thirdparty/pear/PEAR/Common.php
vendored
28
gulliver/thirdparty/pear/PEAR/Common.php
vendored
@@ -1218,6 +1218,20 @@ class PEAR_Common extends PEAR
|
|||||||
*/
|
*/
|
||||||
function analyzeSourceCode($file)
|
function analyzeSourceCode($file)
|
||||||
{
|
{
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$file = $filter->validateInput($file,"path");
|
||||||
|
|
||||||
if (!function_exists("token_get_all")) {
|
if (!function_exists("token_get_all")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1631,6 +1645,20 @@ class PEAR_Common extends PEAR
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$dest_file = $save_dir . DIRECTORY_SEPARATOR . $save_as;
|
$dest_file = $save_dir . DIRECTORY_SEPARATOR . $save_as;
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$dest_file = $filter->validateInput($dest_file,"path");
|
||||||
|
|
||||||
if (!$wp = @fopen($dest_file, 'wb')) {
|
if (!$wp = @fopen($dest_file, 'wb')) {
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
if ($callback) {
|
if ($callback) {
|
||||||
|
|||||||
37
gulliver/thirdparty/pear/PEAR/Installer.php
vendored
37
gulliver/thirdparty/pear/PEAR/Installer.php
vendored
@@ -232,23 +232,28 @@ class PEAR_Installer extends PEAR_Common
|
|||||||
$fp = fopen($orig_file, "r");
|
$fp = fopen($orig_file, "r");
|
||||||
$contents = fread($fp, filesize($orig_file));
|
$contents = fread($fp, filesize($orig_file));
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
if(!class_exists('G')){
|
if(!class_exists('G')){
|
||||||
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
$docuroot = explode( '/', $realdocuroot );
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathhome = implode( '/', $docuroot ) . '/';
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathTrunk = implode( '/', $docuroot ) . '/';
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
require_once($pathTrunk.'gulliver/system/class.g.php');
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
}
|
}
|
||||||
if (isset($atts['md5sum'])) {
|
if (isset($atts['md5sum'])) {
|
||||||
$md5sum = G::encryptOld($contents);
|
$md5sum = G::encryptOld($contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
|
||||||
$subst_from = $subst_to = array();
|
$subst_from = $subst_to = array();
|
||||||
foreach ($atts['replacements'] as $a) {
|
foreach ($atts['replacements'] as $a) {
|
||||||
$to = '';
|
$to = '';
|
||||||
if ($a['type'] == 'php-const') {
|
if ($a['type'] == 'php-const') {
|
||||||
if (preg_match('/^[a-z0-9_]+$/i', $a['to'])) {
|
if (preg_match('/^[a-z0-9_]+$/i', $a['to'])) {
|
||||||
|
$a['to'] = $filter->validateInput($a['to']);
|
||||||
eval("\$to = $a[to];");
|
eval("\$to = $a[to];");
|
||||||
} else {
|
} else {
|
||||||
$this->log(0, "invalid php-const replacement: $a[to]");
|
$this->log(0, "invalid php-const replacement: $a[to]");
|
||||||
@@ -872,14 +877,14 @@ class PEAR_Installer extends PEAR_Common
|
|||||||
|
|
||||||
if (!function_exists("md5_file")) {
|
if (!function_exists("md5_file")) {
|
||||||
function md5_file($filename) {
|
function md5_file($filename) {
|
||||||
if(!class_exists('G')){
|
if(!class_exists('G')){
|
||||||
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
$docuroot = explode( '/', $realdocuroot );
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathhome = implode( '/', $docuroot ) . '/';
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
array_pop( $docuroot );
|
array_pop( $docuroot );
|
||||||
$pathTrunk = implode( '/', $docuroot ) . '/';
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
require_once($pathTrunk.'gulliver/system/class.g.php');
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
}
|
}
|
||||||
$fp = fopen($filename, "r");
|
$fp = fopen($filename, "r");
|
||||||
if (!$fp) return null;
|
if (!$fp) return null;
|
||||||
|
|||||||
27
gulliver/thirdparty/pear/PEAR/Registry.php
vendored
27
gulliver/thirdparty/pear/PEAR/Registry.php
vendored
@@ -165,6 +165,19 @@ class PEAR_Registry extends PEAR
|
|||||||
{
|
{
|
||||||
$this->_assertStateDir();
|
$this->_assertStateDir();
|
||||||
$file = $this->_packageFileName($package);
|
$file = $this->_packageFileName($package);
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$file = $filter->validateInput($file,"path");
|
||||||
|
|
||||||
$fp = @fopen($file, $mode);
|
$fp = @fopen($file, $mode);
|
||||||
if (!$fp) {
|
if (!$fp) {
|
||||||
return null;
|
return null;
|
||||||
@@ -425,6 +438,20 @@ class PEAR_Registry extends PEAR
|
|||||||
return $e;
|
return $e;
|
||||||
}
|
}
|
||||||
$file = $this->_packageFileName($package);
|
$file = $this->_packageFileName($package);
|
||||||
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$file = $filter->validateInput($file,"path");
|
||||||
|
|
||||||
$ret = @unlink($file);
|
$ret = @unlink($file);
|
||||||
$this->rebuildFileMap();
|
$this->rebuildFileMap();
|
||||||
$this->_unlock();
|
$this->_unlock();
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/SOAP/Value.php
vendored
11
gulliver/thirdparty/pear/SOAP/Value.php
vendored
@@ -237,7 +237,16 @@ class SOAP_Attachment extends SOAP_Value
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/pear/SOAP/WSDL.php
vendored
11
gulliver/thirdparty/pear/SOAP/WSDL.php
vendored
@@ -1106,7 +1106,16 @@ class SOAP_WSDL_Cache extends SOAP_Base
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
12
gulliver/thirdparty/phing/lib/Capsule.php
vendored
12
gulliver/thirdparty/phing/lib/Capsule.php
vendored
@@ -122,8 +122,16 @@ class Capsule {
|
|||||||
// so that include "path/relative/to/templates"; can be used within templates
|
// so that include "path/relative/to/templates"; can be used within templates
|
||||||
$__old_inc_path = ini_get('include_path');
|
$__old_inc_path = ini_get('include_path');
|
||||||
|
|
||||||
if(is_dir($this->templatePath . PATH_SEPARATOR . $__old_inc_path)) {
|
$path = $this->templatePath . PATH_SEPARATOR . $__old_inc_path;
|
||||||
ini_set('include_path', $this->templatePath . PATH_SEPARATOR . $__old_inc_path);
|
if(strpos($path,":")>0){
|
||||||
|
$firstPath = explode(":", $this->templatePath . PATH_SEPARATOR . $__old_inc_path);
|
||||||
|
if (is_dir($firstPath[0])) {
|
||||||
|
ini_set('include_path', $this->templatePath . PATH_SEPARATOR . $__old_inc_path);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if(is_dir($this->templatePath . PATH_SEPARATOR . $__old_inc_path)) {
|
||||||
|
ini_set('include_path', $this->templatePath . PATH_SEPARATOR . $__old_inc_path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ini_set('track_errors', true);
|
@ini_set('track_errors', true);
|
||||||
|
|||||||
11
gulliver/thirdparty/phing/lib/Zip.php
vendored
11
gulliver/thirdparty/phing/lib/Zip.php
vendored
@@ -3584,7 +3584,16 @@ class Archive_Zip
|
|||||||
|
|
||||||
public function encryptCrc32($string)
|
public function encryptCrc32($string)
|
||||||
{
|
{
|
||||||
return crc32($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptCrc32($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
gulliver/thirdparty/tcpdf/tcpdf.php
vendored
11
gulliver/thirdparty/tcpdf/tcpdf.php
vendored
@@ -29708,7 +29708,16 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
|||||||
|
|
||||||
public function encryptOld($string)
|
public function encryptOld($string)
|
||||||
{
|
{
|
||||||
return md5($string);
|
if (!class_exists('G')) {
|
||||||
|
$realdocuroot = str_replace( '\\', '/', $_SERVER['DOCUMENT_ROOT'] );
|
||||||
|
$docuroot = explode( '/', $realdocuroot );
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathhome = implode( '/', $docuroot ) . '/';
|
||||||
|
array_pop( $docuroot );
|
||||||
|
$pathTrunk = implode( '/', $docuroot ) . '/';
|
||||||
|
require_once($pathTrunk.'gulliver/system/class.g.php');
|
||||||
|
}
|
||||||
|
return G::encryptOld($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // END OF TCPDF CLASS
|
} // END OF TCPDF CLASS
|
||||||
|
|||||||
@@ -33,6 +33,12 @@ $e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL;
|
|||||||
$e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all;
|
$e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all;
|
||||||
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$config['debug'] = $filter->validateInput($config['debug']);
|
||||||
|
$config['memory_limit'] = $filter->validateInput($config['memory_limit']);
|
||||||
|
$config['wsdl_cache'] = $filter->validateInput($config['wsdl_cache'],'int');
|
||||||
|
$config['time_zone'] = $filter->validateInput($config['time_zone']);
|
||||||
// Do not change any of these settings directly, use env.ini instead
|
// Do not change any of these settings directly, use env.ini instead
|
||||||
ini_set('display_errors', $config['debug']);
|
ini_set('display_errors', $config['debug']);
|
||||||
ini_set('error_reporting', $e_all);
|
ini_set('error_reporting', $e_all);
|
||||||
|
|||||||
@@ -90,6 +90,12 @@ if (!defined('PATH_HOME')) {
|
|||||||
$e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all;
|
$e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all;
|
||||||
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$config['debug'] = $filter->validateInput($config['debug']);
|
||||||
|
$config['memory_limit'] = $filter->validateInput($config['memory_limit']);
|
||||||
|
$config['wsdl_cache'] = $filter->validateInput($config['wsdl_cache'],'int');
|
||||||
|
$config['time_zone'] = $filter->validateInput($config['time_zone']);
|
||||||
// Do not change any of these settings directly, use env.ini instead
|
// Do not change any of these settings directly, use env.ini instead
|
||||||
ini_set('display_errors', $config['debug']);
|
ini_set('display_errors', $config['debug']);
|
||||||
ini_set('error_reporting', $e_all);
|
ini_set('error_reporting', $e_all);
|
||||||
@@ -355,8 +361,8 @@ Bootstrap::registerClass('wsResponse', PATH_HOME . "engine/classes/clas
|
|||||||
|
|
||||||
Bootstrap::registerClass("PMLicensedFeatures", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.licensedFeatures.php");
|
Bootstrap::registerClass("PMLicensedFeatures", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.licensedFeatures.php");
|
||||||
Bootstrap::registerClass("AddonsManagerPeer", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "AddonsManagerPeer.php");
|
Bootstrap::registerClass("AddonsManagerPeer", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "AddonsManagerPeer.php");
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
Bootstrap::registerClass('dashboards', PATH_HOME . "engine/classes/class.dashboards.php");
|
Bootstrap::registerClass('dashboards', PATH_HOME . "engine/classes/class.dashboards.php");
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
$arrayClass = array("Configuration", "EmailServer", "ListInbox", "ListParticipatedHistory");
|
$arrayClass = array("Configuration", "EmailServer", "ListInbox", "ListParticipatedHistory");
|
||||||
@@ -371,18 +377,18 @@ foreach ($arrayClass as $value) {
|
|||||||
G::LoadClass("serverConfiguration");
|
G::LoadClass("serverConfiguration");
|
||||||
G::LoadClass("dates"); //Load Criteria
|
G::LoadClass("dates"); //Load Criteria
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
global $dateInit;
|
global $dateInit;
|
||||||
global $dateFinish;
|
global $dateFinish;
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
if (!defined('SYS_SYS')) {
|
if (!defined('SYS_SYS')) {
|
||||||
$sObject = $argv[1];
|
$sObject = $argv[1];
|
||||||
$sNow = $argv[2];
|
$sNow = $argv[2];
|
||||||
$dateSystem = $argv[3];
|
$dateSystem = $argv[3];
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
$dateInit = null;
|
$dateInit = null;
|
||||||
$dateFinish = null;
|
$dateFinish = null;
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
$sFilter = '';
|
$sFilter = '';
|
||||||
|
|
||||||
@@ -527,17 +533,17 @@ function processWorkspace()
|
|||||||
resendEmails();
|
resendEmails();
|
||||||
unpauseApplications();
|
unpauseApplications();
|
||||||
calculateDuration();
|
calculateDuration();
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
calculateAppDuration();
|
calculateAppDuration();
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
executeEvents($sLastExecution);
|
executeEvents($sLastExecution);
|
||||||
executeScheduledCases();
|
executeScheduledCases();
|
||||||
executeUpdateAppTitle();
|
executeUpdateAppTitle();
|
||||||
executeCaseSelfService();
|
executeCaseSelfService();
|
||||||
executePlugins();
|
executePlugins();
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
fillReportByUser();
|
fillReportByUser();
|
||||||
fillReportByProcess();
|
fillReportByProcess();
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
} catch (Exception $oError) {
|
} catch (Exception $oError) {
|
||||||
saveLog("main", "error", "Error processing workspace : " . $oError->getMessage() . "\n");
|
saveLog("main", "error", "Error processing workspace : " . $oError->getMessage() . "\n");
|
||||||
@@ -728,29 +734,29 @@ function calculateDuration()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
function calculateAppDuration()
|
function calculateAppDuration()
|
||||||
{
|
{
|
||||||
global $sFilter;
|
global $sFilter;
|
||||||
|
|
||||||
if ($sFilter != '' && strpos($sFilter, 'calculateapp') === false) {
|
if ($sFilter != '' && strpos($sFilter, 'calculateapp') === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
setExecutionMessage("Calculating Duration by Application");
|
setExecutionMessage("Calculating Duration by Application");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$oApplication = new Application();
|
$oApplication = new Application();
|
||||||
$oApplication->calculateAppDuration(1);
|
$oApplication->calculateAppDuration(1);
|
||||||
|
|
||||||
setExecutionResultMessage('DONE');
|
setExecutionResultMessage('DONE');
|
||||||
saveLog('calculateDurationByApp', 'action', 'Calculating Duration by Application');
|
saveLog('calculateDurationByApp', 'action', 'Calculating Duration by Application');
|
||||||
} catch (Exception $oError) {
|
} catch (Exception $oError) {
|
||||||
setExecutionResultMessage('WITH ERRORS', 'error');
|
setExecutionResultMessage('WITH ERRORS', 'error');
|
||||||
eprintln(" '-".$oError->getMessage(), 'red');
|
eprintln(" '-".$oError->getMessage(), 'red');
|
||||||
saveLog('calculateDurationByApp', 'error', 'Error Calculating Duration: ' . $oError->getMessage());
|
saveLog('calculateDurationByApp', 'error', 'Error Calculating Duration: ' . $oError->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
function executeEvents($sLastExecution, $sNow=null)
|
function executeEvents($sLastExecution, $sNow=null)
|
||||||
@@ -1095,66 +1101,66 @@ function setExecutionResultMessage($m, $t='')
|
|||||||
eprintln("[$m]", $c);
|
eprintln("[$m]", $c);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
function fillReportByUser ()
|
function fillReportByUser ()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
global $sFilter;
|
global $sFilter;
|
||||||
global $dateInit;
|
global $dateInit;
|
||||||
global $dateFinish;
|
global $dateFinish;
|
||||||
|
|
||||||
if (strpos($sFilter, 'report_by_user') === false) {
|
if (strpos($sFilter, 'report_by_user') === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($dateInit == null) {
|
if ($dateInit == null) {
|
||||||
eprintln("You must enter the starting date.", "red");
|
eprintln("You must enter the starting date.", "red");
|
||||||
eprintln('Example: +init-date"YYYY-MM-DD HH:MM:SS" +finish-date"YYYY-MM-DD HH:MM:SS"', "red");
|
eprintln('Example: +init-date"YYYY-MM-DD HH:MM:SS" +finish-date"YYYY-MM-DD HH:MM:SS"', "red");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dateFinish = ($dateFinish != null) ? $dateFinish : date("Y-m-d H:i:s");
|
$dateFinish = ($dateFinish != null) ? $dateFinish : date("Y-m-d H:i:s");
|
||||||
|
|
||||||
$appcv = new AppCacheView();
|
$appcv = new AppCacheView();
|
||||||
$appcv->setPathToAppCacheFiles( PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP );
|
$appcv->setPathToAppCacheFiles( PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP );
|
||||||
setExecutionMessage("Calculating data to fill the 'User Reporting'...");
|
setExecutionMessage("Calculating data to fill the 'User Reporting'...");
|
||||||
$appcv->fillReportByUser($dateInit, $dateFinish);
|
$appcv->fillReportByUser($dateInit, $dateFinish);
|
||||||
setExecutionResultMessage("DONE");
|
setExecutionResultMessage("DONE");
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
setExecutionResultMessage("WITH ERRORS", "error");
|
setExecutionResultMessage("WITH ERRORS", "error");
|
||||||
eprintln(" '-" . $e->getMessage(), "red");
|
eprintln(" '-" . $e->getMessage(), "red");
|
||||||
saveLog("fillReportByUser", "error", "Error in fill report by user: " . $e->getMessage());
|
saveLog("fillReportByUser", "error", "Error in fill report by user: " . $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function fillReportByProcess ()
|
function fillReportByProcess ()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
global $sFilter;
|
global $sFilter;
|
||||||
global $dateInit;
|
global $dateInit;
|
||||||
global $dateFinish;
|
global $dateFinish;
|
||||||
|
|
||||||
if (strpos($sFilter, 'report_by_process') === false) {
|
if (strpos($sFilter, 'report_by_process') === false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dateInit == null) {
|
if ($dateInit == null) {
|
||||||
eprintln("You must enter the starting date.", "red");
|
eprintln("You must enter the starting date.", "red");
|
||||||
eprintln('Example: +init-date"YYYY-MM-DD HH:MM:SS" +finish-date"YYYY-MM-DD HH:MM:SS"', "red");
|
eprintln('Example: +init-date"YYYY-MM-DD HH:MM:SS" +finish-date"YYYY-MM-DD HH:MM:SS"', "red");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$dateFinish = ($dateFinish != null) ? $dateFinish : date("Y-m-d H:i:s");
|
$dateFinish = ($dateFinish != null) ? $dateFinish : date("Y-m-d H:i:s");
|
||||||
$appcv = new AppCacheView();
|
$appcv = new AppCacheView();
|
||||||
$appcv->setPathToAppCacheFiles( PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP );
|
$appcv->setPathToAppCacheFiles( PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP );
|
||||||
|
|
||||||
setExecutionMessage("Calculating data to fill the 'Process Reporting'...");
|
setExecutionMessage("Calculating data to fill the 'Process Reporting'...");
|
||||||
$appcv->fillReportByProcess($dateInit, $dateFinish);
|
$appcv->fillReportByProcess($dateInit, $dateFinish);
|
||||||
setExecutionResultMessage("DONE");
|
setExecutionResultMessage("DONE");
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
setExecutionResultMessage("WITH ERRORS", "error");
|
setExecutionResultMessage("WITH ERRORS", "error");
|
||||||
eprintln(" '-" . $e->getMessage(), "red");
|
eprintln(" '-" . $e->getMessage(), "red");
|
||||||
saveLog("fillReportByProcess", "error", "Error in fill report by process: " . $e->getMessage());
|
saveLog("fillReportByProcess", "error", "Error in fill report by process: " . $e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,11 @@ try {
|
|||||||
G::LoadClass("system");
|
G::LoadClass("system");
|
||||||
|
|
||||||
$config = System::getSystemConfiguration();
|
$config = System::getSystemConfiguration();
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$config['time_zone'] = $filter->validateInput($config['time_zone']);
|
||||||
|
|
||||||
ini_set("date.timezone", $config["time_zone"]);
|
ini_set("date.timezone", $config["time_zone"]);
|
||||||
|
|
||||||
//CRON command options
|
//CRON command options
|
||||||
|
|||||||
@@ -91,6 +91,11 @@ try {
|
|||||||
$e_all = (defined("E_STRICT"))? $e_all & ~E_STRICT : $e_all;
|
$e_all = (defined("E_STRICT"))? $e_all & ~E_STRICT : $e_all;
|
||||||
$e_all = ($config["debug"])? $e_all : $e_all & ~E_NOTICE;
|
$e_all = ($config["debug"])? $e_all : $e_all & ~E_NOTICE;
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$config['debug'] = $filter->validateInput($config['debug']);
|
||||||
|
$config['wsdl_cache'] = $filter->validateInput($config['wsdl_cache'],'int');
|
||||||
|
$config['time_zone'] = $filter->validateInput($config['time_zone']);
|
||||||
//Do not change any of these settings directly, use env.ini instead
|
//Do not change any of these settings directly, use env.ini instead
|
||||||
ini_set("display_errors", $config["debug"]);
|
ini_set("display_errors", $config["debug"]);
|
||||||
ini_set("error_reporting", $e_all);
|
ini_set("error_reporting", $e_all);
|
||||||
|
|||||||
@@ -207,9 +207,16 @@ if (! defined ('SYS_SYS')) {
|
|||||||
define ('TIME_ZONE', $config ['time_zone']);
|
define ('TIME_ZONE', $config ['time_zone']);
|
||||||
|
|
||||||
date_default_timezone_set (TIME_ZONE);
|
date_default_timezone_set (TIME_ZONE);
|
||||||
print "TIME_ZONE: " . TIME_ZONE . "\n";
|
|
||||||
print "MEMCACHED_ENABLED: " . MEMCACHED_ENABLED . "\n";
|
G::LoadSystem('inputfilter');
|
||||||
print "MEMCACHED_SERVER: " . MEMCACHED_SERVER . "\n";
|
$filter = new InputFilter();
|
||||||
|
$TIME_ZONE = $filter->xssFilterHard(TIME_ZONE);
|
||||||
|
$MEMCACHED_ENABLED = $filter->xssFilterHard(MEMCACHED_ENABLED);
|
||||||
|
$MEMCACHED_SERVER = $filter->xssFilterHard(MEMCACHED_SERVER);
|
||||||
|
|
||||||
|
print "TIME_ZONE: " . $TIME_ZONE . "\n";
|
||||||
|
print "MEMCACHED_ENABLED: " . $MEMCACHED_ENABLED . "\n";
|
||||||
|
print "MEMCACHED_SERVER: " . $MEMCACHED_SERVER . "\n";
|
||||||
// ****************************************
|
// ****************************************
|
||||||
|
|
||||||
include_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php');
|
include_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php');
|
||||||
|
|||||||
@@ -139,13 +139,21 @@ if (! defined ('SYS_SYS')) {
|
|||||||
define ('TIME_ZONE', $config ['time_zone']);
|
define ('TIME_ZONE', $config ['time_zone']);
|
||||||
|
|
||||||
date_default_timezone_set (TIME_ZONE);
|
date_default_timezone_set (TIME_ZONE);
|
||||||
print "TIME_ZONE: " . TIME_ZONE . "\n";
|
|
||||||
print "MEMCACHED_ENABLED: " . MEMCACHED_ENABLED . "\n";
|
|
||||||
print "MEMCACHED_SERVER: " . MEMCACHED_SERVER . "\n";
|
|
||||||
// ****************************************
|
// ****************************************
|
||||||
|
|
||||||
include_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php');
|
include_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths_installed.php');
|
||||||
include_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php');
|
include_once (PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php');
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$TIME_ZONE = $filter->xssFilterHard(TIME_ZONE);
|
||||||
|
$MEMCACHED_ENABLED = $filter->xssFilterHard(MEMCACHED_ENABLED);
|
||||||
|
$MEMCACHED_SERVER = $filter->xssFilterHard(MEMCACHED_SERVER);
|
||||||
|
|
||||||
|
print "TIME_ZONE: " . $TIME_ZONE . "\n";
|
||||||
|
print "MEMCACHED_ENABLED: " . $MEMCACHED_ENABLED . "\n";
|
||||||
|
print "MEMCACHED_SERVER: " . $MEMCACHED_SERVER . "\n";
|
||||||
|
|
||||||
// ***************** PM Paths DATA **************************
|
// ***************** PM Paths DATA **************************
|
||||||
define ('PATH_DATA_SITE', PATH_DATA . 'sites/' . SYS_SYS . '/');
|
define ('PATH_DATA_SITE', PATH_DATA . 'sites/' . SYS_SYS . '/');
|
||||||
|
|||||||
@@ -513,9 +513,9 @@ class indicatorsCalculator
|
|||||||
$params[':usrUid'] = $usrUid;
|
$params[':usrUid'] = $usrUid;
|
||||||
|
|
||||||
$sqlString = "SELECT
|
$sqlString = "SELECT
|
||||||
COALESCE( SUM( DATEDIFF( DEL_DUE_DATE , NOW( ) ) < 0 ) , 0 ) AS OVERDUE,
|
COALESCE( SUM( TIMEDIFF( DEL_DUE_DATE , NOW( ) ) < 0 ) , 0 ) AS OVERDUE,
|
||||||
COALESCE( SUM( DATEDIFF( DEL_DUE_DATE , NOW( ) ) > 0 ) , 0 ) AS ONTIME,
|
COALESCE( SUM( TIMEDIFF( DEL_RISK_DATE , NOW( ) ) > 0 ) , 0 ) AS ONTIME,
|
||||||
COALESCE( SUM( DATEDIFF( DEL_RISK_DATE , NOW( ) ) < 0 ) , 0 ) AS ATRISK
|
COALESCE( SUM( TIMEDIFF( DEL_RISK_DATE , NOW( ) ) < 0 && TIMEDIFF( DEL_DUE_DATE , NOW( ) ) > 0) , 0 ) AS ATRISK
|
||||||
FROM LIST_INBOX
|
FROM LIST_INBOX
|
||||||
WHERE USR_UID = :usrUid
|
WHERE USR_UID = :usrUid
|
||||||
AND APP_STATUS = 'TO_DO'
|
AND APP_STATUS = 'TO_DO'
|
||||||
@@ -534,9 +534,9 @@ class indicatorsCalculator
|
|||||||
APP_TAS_TITLE AS taskTitle,
|
APP_TAS_TITLE AS taskTitle,
|
||||||
APP_PRO_TITLE AS proTitle,
|
APP_PRO_TITLE AS proTitle,
|
||||||
|
|
||||||
COALESCE( SUM( DATEDIFF( DEL_DUE_DATE , NOW( ) ) < 0 ) , 0 ) AS overdue,
|
COALESCE( SUM( TIMEDIFF( DEL_DUE_DATE , NOW( ) ) < 0 ) , 0 ) AS overdue,
|
||||||
COALESCE( SUM( DATEDIFF( DEL_DUE_DATE , NOW( ) ) > 0 ) , 0 ) AS onTime,
|
COALESCE( SUM( TIMEDIFF( DEL_RISK_DATE , NOW( ) ) > 0 ) , 0 ) AS onTime,
|
||||||
COALESCE( SUM( DATEDIFF( DEL_RISK_DATE , NOW( ) ) < 0 ) , 0 ) AS atRisk
|
COALESCE( SUM( TIMEDIFF( DEL_RISK_DATE , NOW( ) ) < 0 && TIMEDIFF( DEL_DUE_DATE , NOW( ) ) > 0) , 0 ) AS atRisk
|
||||||
FROM LIST_INBOX
|
FROM LIST_INBOX
|
||||||
WHERE USR_UID = :usrUid
|
WHERE USR_UID = :usrUid
|
||||||
AND APP_STATUS = 'TO_DO'
|
AND APP_STATUS = 'TO_DO'
|
||||||
@@ -561,8 +561,8 @@ class indicatorsCalculator
|
|||||||
|
|
||||||
if (is_array($result) && isset($result[0])) {
|
if (is_array($result) && isset($result[0])) {
|
||||||
$response['overdue'] = $result[0]['OVERDUE'];
|
$response['overdue'] = $result[0]['OVERDUE'];
|
||||||
$response['atRisk'] = $result[0]['ONTIME'];
|
$response['atRisk'] = $result[0]['ATRISK'];
|
||||||
$response['onTime'] = $result[0]['ATRISK'];
|
$response['onTime'] = $result[0]['ONTIME'];
|
||||||
|
|
||||||
$total = $response['overdue'] + $response['atRisk'] + $response['onTime'];
|
$total = $response['overdue'] + $response['atRisk'] + $response['onTime'];
|
||||||
if ($total != 0) {
|
if ($total != 0) {
|
||||||
@@ -578,20 +578,20 @@ class indicatorsCalculator
|
|||||||
$result[$key]['overdue'] = $value['overdue'];
|
$result[$key]['overdue'] = $value['overdue'];
|
||||||
$result[$key]['atRisk'] = $value['atRisk'];
|
$result[$key]['atRisk'] = $value['atRisk'];
|
||||||
$result[$key]['onTime'] = $value['onTime'];
|
$result[$key]['onTime'] = $value['onTime'];
|
||||||
$result[$key]['percentageOverdue'] = 0;
|
$result[$key]['percentageOverdue'] = 0;
|
||||||
$result[$key]['percentageAtRisk'] = 0;
|
$result[$key]['percentageAtRisk'] = 0;
|
||||||
$result[$key]['percentageOnTime'] = 0;
|
$result[$key]['percentageOnTime'] = 0;
|
||||||
$result[$key]['percentageTotalOverdue'] = 0;
|
$result[$key]['percentageTotalOverdue'] = 0;
|
||||||
$result[$key]['percentageTotalAtRisk'] = 0;
|
$result[$key]['percentageTotalAtRisk'] = 0;
|
||||||
$result[$key]['percentageTotalOnTime'] = 0;
|
$result[$key]['percentageTotalOnTime'] = 0;
|
||||||
$total = $value['overdue'] + $value['onTime'] + $value['atRisk'];
|
$total = $value['overdue'] + $value['onTime'] + $value['atRisk'];
|
||||||
if ($total != 0) {
|
if ($total != 0) {
|
||||||
$result[$key]['percentageOverdue'] = ($value['overdue']*100)/$total;
|
$result[$key]['percentageOverdue'] = ($value['overdue']*100)/$total;
|
||||||
$result[$key]['percentageAtRisk'] = ($value['atRisk']*100)/$total;
|
$result[$key]['percentageAtRisk'] = ($value['atRisk']*100)/$total;
|
||||||
$result[$key]['percentageOnTime'] = ($value['onTime']*100)/$total;
|
$result[$key]['percentageOnTime'] = ($value['onTime']*100)/$total;
|
||||||
$result[$key]['percentageTotalOverdue'] = $response['overdue'] != 0 ? ($value['overdue']*100)/$response['overdue']: 0;
|
$result[$key]['percentageTotalOverdue'] = $response['overdue'] != 0 ? ($value['overdue']*100)/$response['overdue']: 0;
|
||||||
$result[$key]['percentageTotalAtRisk'] = $response['atRisk'] != 0 ? ($value['atRisk']*100)/$response['atRisk'] : 0;
|
$result[$key]['percentageTotalAtRisk'] = $response['atRisk'] != 0 ? ($value['atRisk']*100)/$response['atRisk'] : 0;
|
||||||
$result[$key]['percentageTotalOnTime'] = $response['onTime'] != 0 ? ($value['onTime']*100)/$response['onTime']: 0;
|
$result[$key]['percentageTotalOnTime'] = $response['onTime'] != 0 ? ($value['onTime']*100)/$response['onTime']: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$response['dataList'] = $result;
|
$response['dataList'] = $result;
|
||||||
|
|||||||
@@ -451,17 +451,18 @@ class AdditionalTables extends BaseAdditionalTables
|
|||||||
|
|
||||||
if (isset($_POST['sort'])) {
|
if (isset($_POST['sort'])) {
|
||||||
$_POST['sort'] = $filter->validateInput($_POST['sort']);
|
$_POST['sort'] = $filter->validateInput($_POST['sort']);
|
||||||
|
$_POST['dir'] = $filter->validateInput($_POST['dir']);
|
||||||
if ($_POST['dir'] == 'ASC') {
|
if ($_POST['dir'] == 'ASC') {
|
||||||
if ($keyOrderUppercase) {
|
if ($keyOrderUppercase) {
|
||||||
eval('$oCriteria->addAscendingOrderByColumn("' . $sort . '");');
|
eval('$oCriteria->addAscendingOrderByColumn("' . $_POST['sort'] . '");');
|
||||||
} else {
|
} else {
|
||||||
eval('$oCriteria->addAscendingOrderByColumn(' . $sClassPeerName . '::' . $sort . ');');
|
eval('$oCriteria->addAscendingOrderByColumn(' . $sClassPeerName . '::' . $_POST['sort'] . ');');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($keyOrderUppercase) {
|
if ($keyOrderUppercase) {
|
||||||
eval('$oCriteria->addDescendingOrderByColumn("' . $sort . '");');
|
eval('$oCriteria->addDescendingOrderByColumn("' . $_POST['sort'] . '");');
|
||||||
} else {
|
} else {
|
||||||
eval('$oCriteria->addDescendingOrderByColumn(' . $sClassPeerName . '::' . $sort . ');');
|
eval('$oCriteria->addDescendingOrderByColumn(' . $sClassPeerName . '::' . $_POST['sort'] . ');');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -404,7 +404,7 @@ class AppDelegation extends BaseAppDelegation
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Risk date
|
//Risk date
|
||||||
$riskDate = $calendar->dashCalculateDate($this->getDelDelegateDate(), round($riskTime), $data['TAS_TIMEUNIT'], $arrayCalendarData);
|
$riskDate = $calendar->dashCalculateDate($this->getDelDelegateDate(), $riskTime, $data['TAS_TIMEUNIT'], $arrayCalendarData);
|
||||||
|
|
||||||
return $riskDate;
|
return $riskDate;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
@@ -65,14 +65,18 @@ class DashboardIndicator extends BaseDashboardIndicator
|
|||||||
$oldValue = current(reset($calculator->peiHistoric($uid, $compareDate, $compareDate, \ReportingPeriodicityEnum::NONE)));
|
$oldValue = current(reset($calculator->peiHistoric($uid, $compareDate, $compareDate, \ReportingPeriodicityEnum::NONE)));
|
||||||
$row['DAS_IND_VARIATION'] = $value - $oldValue;
|
$row['DAS_IND_VARIATION'] = $value - $oldValue;
|
||||||
$row['DAS_IND_OLD_VALUE'] = $oldValue;
|
$row['DAS_IND_OLD_VALUE'] = $oldValue;
|
||||||
$row['DAS_IND_PERCENT_VARIATION'] = round(($value - $oldValue) * 100 / (($oldValue == 0) ? 1 : $oldValue), 1);
|
$row['DAS_IND_PERCENT_VARIATION'] = $oldValue != 0
|
||||||
|
? round(($value - $oldValue) * 100 / $oldValue)
|
||||||
|
: "--";
|
||||||
break;
|
break;
|
||||||
case '1030':
|
case '1030':
|
||||||
$value = current(reset($calculator->ueiHistoric(null, $measureDate, $measureDate, \ReportingPeriodicityEnum::NONE)));
|
$value = current(reset($calculator->ueiHistoric(null, $measureDate, $measureDate, \ReportingPeriodicityEnum::NONE)));
|
||||||
$oldValue = current(reset($calculator->ueiHistoric($uid, $compareDate, $compareDate, \ReportingPeriodicityEnum::NONE)));
|
$oldValue = current(reset($calculator->ueiHistoric($uid, $compareDate, $compareDate, \ReportingPeriodicityEnum::NONE)));
|
||||||
$row['DAS_IND_VARIATION'] = $value - $oldValue;
|
$row['DAS_IND_VARIATION'] = $value - $oldValue;
|
||||||
$row['DAS_IND_OLD_VALUE'] = $oldValue;
|
$row['DAS_IND_OLD_VALUE'] = $oldValue;
|
||||||
$row['DAS_IND_PERCENT_VARIATION'] = round(($value - $oldValue) * 100 / (($oldValue == 0) ? 1 : $oldValue), 1);
|
$row['DAS_IND_PERCENT_VARIATION'] = $oldValue != 0
|
||||||
|
? round(($value - $oldValue) * 100 / $oldValue)
|
||||||
|
: "--";
|
||||||
break;
|
break;
|
||||||
case '1050':
|
case '1050':
|
||||||
$value = $calculator->statusIndicatorGeneral($userUid);
|
$value = $calculator->statusIndicatorGeneral($userUid);
|
||||||
|
|||||||
@@ -180,6 +180,10 @@ class Dynaform extends BaseDynaform
|
|||||||
$aData['DYN_VERSION'] = 0;
|
$aData['DYN_VERSION'] = 0;
|
||||||
}
|
}
|
||||||
$this->setDynVersion( $aData['DYN_VERSION'] );
|
$this->setDynVersion( $aData['DYN_VERSION'] );
|
||||||
|
if (!isset($aData['DYN_CONTENT'])) {
|
||||||
|
$aData['DYN_CONTENT'] = "{}";
|
||||||
|
}
|
||||||
|
$this->setDynContent( $aData['DYN_CONTENT'] );
|
||||||
if ($this->validate()) {
|
if ($this->validate()) {
|
||||||
$con->begin();
|
$con->begin();
|
||||||
$res = $this->save();
|
$res = $this->save();
|
||||||
|
|||||||
@@ -25,6 +25,15 @@ class ListCompleted extends BaseListCompleted
|
|||||||
*/
|
*/
|
||||||
public function create($data)
|
public function create($data)
|
||||||
{
|
{
|
||||||
|
$criteria = new Criteria();
|
||||||
|
$criteria->addSelectColumn(ListCompletedPeer::APP_UID);
|
||||||
|
$criteria->add( ListCompletedPeer::APP_UID, $data['APP_UID'], Criteria::EQUAL );
|
||||||
|
$dataset = ListCompletedPeer::doSelectRS($criteria);
|
||||||
|
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
|
if ($dataset->next()) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
$criteria = new Criteria();
|
$criteria = new Criteria();
|
||||||
$criteria->addSelectColumn(ContentPeer::CON_VALUE);
|
$criteria->addSelectColumn(ContentPeer::CON_VALUE);
|
||||||
$criteria->add( ContentPeer::CON_ID, $data['APP_UID'], Criteria::EQUAL );
|
$criteria->add( ContentPeer::CON_ID, $data['APP_UID'], Criteria::EQUAL );
|
||||||
@@ -97,9 +106,27 @@ class ListCompleted extends BaseListCompleted
|
|||||||
$users = new Users();
|
$users = new Users();
|
||||||
$users->refreshTotal($data['USR_UID'], 'add', 'completed');
|
$users->refreshTotal($data['USR_UID'], 'add', 'completed');
|
||||||
if ($data['DEL_PREVIOUS'] != 0) {
|
if ($data['DEL_PREVIOUS'] != 0) {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
$criteria = new Criteria();
|
||||||
|
$criteria->addSelectColumn(TaskPeer::TAS_TYPE);
|
||||||
|
$criteria->add( TaskPeer::TAS_UID, $data['TAS_UID'], Criteria::EQUAL );
|
||||||
|
$dataset = TaskPeer::doSelectRS($criteria);
|
||||||
|
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
|
$dataset->next();
|
||||||
|
$aRow = $dataset->getRow();
|
||||||
|
if ($aRow['TAS_TYPE'] != 'SUBPROCESS') {
|
||||||
|
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$users->refreshTotal($data['USR_UID'], 'remove', 'draft');
|
$criteria = new Criteria();
|
||||||
|
$criteria->addSelectColumn(SubApplicationPeer::APP_UID);
|
||||||
|
$criteria->add( SubApplicationPeer::APP_UID, $data['APP_UID'], Criteria::EQUAL );
|
||||||
|
$dataset = SubApplicationPeer::doSelectRS($criteria);
|
||||||
|
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
|
if ($dataset->next()) {
|
||||||
|
$users->refreshTotal($data['USR_UID'], 'remove', 'inbox');
|
||||||
|
} else {
|
||||||
|
$users->refreshTotal($data['USR_UID'], 'remove', 'draft');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$con = Propel::getConnection( ListCompletedPeer::DATABASE_NAME );
|
$con = Propel::getConnection( ListCompletedPeer::DATABASE_NAME );
|
||||||
|
|||||||
@@ -699,6 +699,9 @@ class Installer extends Controller
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||||
|
$db_host = $filter->validateInput($db_host);
|
||||||
|
$db_username = $filter->validateInput($db_username);
|
||||||
|
$db_password = $filter->validateInput($db_password);
|
||||||
$this->link = @mysql_connect( $db_host, $db_username, $db_password );
|
$this->link = @mysql_connect( $db_host, $db_username, $db_password );
|
||||||
$this->installLog( G::LoadTranslation('ID_CONNECT_TO_SERVER', SYS_LANG, Array($db_hostname, $db_port, $db_username ) ));
|
$this->installLog( G::LoadTranslation('ID_CONNECT_TO_SERVER', SYS_LANG, Array($db_hostname, $db_port, $db_username ) ));
|
||||||
|
|
||||||
@@ -1032,6 +1035,9 @@ class Installer extends Controller
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$db_host = ($db_port != '' && $db_port != 1433) ? $db_hostname . ':' . $db_port : $db_hostname;
|
$db_host = ($db_port != '' && $db_port != 1433) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||||
|
$db_host = $filter->validateInput($db_host);
|
||||||
|
$db_username = $filter->validateInput($db_username);
|
||||||
|
$db_password = $filter->validateInput($db_password);
|
||||||
$this->link = @mssql_connect( $db_host, $db_username, $db_password );
|
$this->link = @mssql_connect( $db_host, $db_username, $db_password );
|
||||||
$this->installLog( G::LoadTranslation('ID_CONNECT_TO_SERVER', SYS_LANG, Array( $db_hostname, $db_port, $db_username )) );
|
$this->installLog( G::LoadTranslation('ID_CONNECT_TO_SERVER', SYS_LANG, Array( $db_hostname, $db_port, $db_username )) );
|
||||||
|
|
||||||
@@ -1231,6 +1237,9 @@ class Installer extends Controller
|
|||||||
$info = new stdclass();
|
$info = new stdclass();
|
||||||
|
|
||||||
if ($_REQUEST['db_engine'] == 'mysql') {
|
if ($_REQUEST['db_engine'] == 'mysql') {
|
||||||
|
$_REQUEST['db_hostname'] = $filter->validateInput($_REQUEST['db_hostname']);
|
||||||
|
$_REQUEST['db_username'] = $filter->validateInput($_REQUEST['db_username']);
|
||||||
|
$_REQUEST['db_password'] = $filter->validateInput($_REQUEST['db_password']);
|
||||||
$link = @mysql_connect( $_REQUEST['db_hostname'], $_REQUEST['db_username'], $_REQUEST['db_password'] );
|
$link = @mysql_connect( $_REQUEST['db_hostname'], $_REQUEST['db_username'], $_REQUEST['db_password'] );
|
||||||
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
$_REQUEST['wfDatabase'] = $filter->validateInput($_REQUEST['wfDatabase'], 'nosql');
|
||||||
$query = "show databases like '%s' ";
|
$query = "show databases like '%s' ";
|
||||||
@@ -1296,6 +1305,7 @@ class Installer extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$db_host = ($db_port != '' && $db_port != 1433) ? $db_hostname . ':' . $db_port : $db_hostname;
|
$db_host = ($db_port != '' && $db_port != 1433) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||||
|
|
||||||
$link = @mysql_connect( $db_host, $db_username, $db_password );
|
$link = @mysql_connect( $db_host, $db_username, $db_password );
|
||||||
if (! $link) {
|
if (! $link) {
|
||||||
$info->message .= G::LoadTranslation('ID_MYSQL_CREDENTIALS_WRONG');
|
$info->message .= G::LoadTranslation('ID_MYSQL_CREDENTIALS_WRONG');
|
||||||
@@ -1348,6 +1358,7 @@ class Installer extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$db_host = ($db_port != '' && $db_port != 1433) ? $db_hostname . ':' . $db_port : $db_hostname;
|
$db_host = ($db_port != '' && $db_port != 1433) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||||
|
|
||||||
$link = @mssql_connect( $db_host, $db_username, $db_password );
|
$link = @mssql_connect( $db_host, $db_username, $db_password );
|
||||||
if (! $link) {
|
if (! $link) {
|
||||||
$info->message .= G::LoadTranslation('ID_MYSQL_CREDENTIALS_WRONG');
|
$info->message .= G::LoadTranslation('ID_MYSQL_CREDENTIALS_WRONG');
|
||||||
@@ -1661,6 +1672,7 @@ class Installer extends Controller
|
|||||||
$wf = trim( $_REQUEST['wfDatabase'] );
|
$wf = trim( $_REQUEST['wfDatabase'] );
|
||||||
|
|
||||||
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
$db_host = ($db_port != '' && $db_port != 3306) ? $db_hostname . ':' . $db_port : $db_hostname;
|
||||||
|
|
||||||
$link = @mysql_connect( $db_host, $db_username, $db_password );
|
$link = @mysql_connect( $db_host, $db_username, $db_password );
|
||||||
@mysql_select_db($wf, $link);
|
@mysql_select_db($wf, $link);
|
||||||
$res = mysql_query( "SELECT STORE_ID FROM ADDONS_MANAGER WHERE ADDON_NAME = '" . $namePlugin . "'", $link );
|
$res = mysql_query( "SELECT STORE_ID FROM ADDONS_MANAGER WHERE ADDON_NAME = '" . $namePlugin . "'", $link );
|
||||||
|
|||||||
@@ -78,7 +78,6 @@ ViewDashboardModel.prototype.getPositionIndicator = function(callBack) {
|
|||||||
"y" : originalObject.y,
|
"y" : originalObject.y,
|
||||||
"width" : originalObject.width,
|
"width" : originalObject.width,
|
||||||
"height" : originalObject.height
|
"height" : originalObject.height
|
||||||
|
|
||||||
};
|
};
|
||||||
graphData.push(map);
|
graphData.push(map);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -90,18 +90,37 @@ ViewDashboardPresenter.prototype.dashboardIndicatorsViewModel = function(data) {
|
|||||||
newObject.comparative = Math.round(newObject.comparative*1000)/1000;
|
newObject.comparative = Math.round(newObject.comparative*1000)/1000;
|
||||||
newObject.comparative = ((newObject.comparative > 0)? "+": "") + newObject.comparative;
|
newObject.comparative = ((newObject.comparative > 0)? "+": "") + newObject.comparative;
|
||||||
|
|
||||||
|
newObject.percentComparative = (newObject.percentComparative != '--')
|
||||||
|
? '(' + newObject.percentComparative + '%)'
|
||||||
|
: "";
|
||||||
|
|
||||||
|
|
||||||
newObject.value = (newObject.category == "normal")
|
newObject.value = (newObject.category == "normal")
|
||||||
? Math.round(newObject.value) + ""
|
? Math.round(newObject.value) + ""
|
||||||
: Math.round(newObject.value*100)/100 + ""
|
: Math.round(newObject.value*100)/100 + ""
|
||||||
|
|
||||||
newObject.favorite = 0;
|
newObject.favorite = 0;
|
||||||
newObject.percentageOverdue = Math.round(newObject.percentageOverdue);
|
|
||||||
newObject.percentageAtRisk = Math.round(newObject.percentageAtRisk);
|
newObject.percentageOverdueWidth = Math.round(newObject.percentageOverdue);
|
||||||
//to be sure that percentages sum up to 100 (the rounding will lost decimals)%
|
newObject.percentageAtRiskWidth = Math.round(newObject.percentageAtRisk);
|
||||||
newObject.percentageOnTime = 100 - newObject.percentageOverdue - newObject.percentageAtRisk;
|
//to be sure that percentages sum up to 100 (the rounding will lose decimals)%
|
||||||
newObject.overdueVisibility = (newObject.percentageOverdue > 0)? "visible" : "hidden";
|
newObject.percentageOnTimeWidth = 100 - newObject.percentageOverdueWidth - newObject.percentageAtRiskWidth;
|
||||||
newObject.atRiskVisibility = (newObject.percentageAtRisk > 0)? "visible" : "hidden";
|
|
||||||
newObject.onTimeVisibility = (newObject.percentageOnTime > 0)? "visible" : "hidden";
|
newObject.percentageOverdueToShow = ((newObject.percentageOverdue == 0 ||newObject.percentageOverdue == null )
|
||||||
|
? ""
|
||||||
|
: newObject.percentageOverdueWidth + "%");
|
||||||
|
|
||||||
|
newObject.percentageAtRiskToShow = ((newObject.percentageAtRisk == 0 || newObject.percentageAtRisk == null)
|
||||||
|
? ""
|
||||||
|
: newObject.percentageAtRiskWidth + "%");
|
||||||
|
|
||||||
|
newObject.percentageOnTimeToShow = ((newObject.percentageOnTime == 0 || newObject.percentageOnTime == 0)
|
||||||
|
? G_STRING['ID_INBOX'] + ' ' + G_STRING['ID_EMPTY']
|
||||||
|
: newObject.percentageOnTimeWidth + "%");
|
||||||
|
|
||||||
|
newObject.overdueVisibility = (newObject.percentageOverdueWidth > 0) ? "visible" : "hidden";
|
||||||
|
newObject.atRiskVisibility = (newObject.percentageAtRiskWidth > 0) ? "visible" : "hidden";
|
||||||
|
newObject.onTimeVisibility = (newObject.percentageOnTimeWidth > 0) ? "visible" : "hidden";
|
||||||
returnList.push(newObject);
|
returnList.push(newObject);
|
||||||
i++;
|
i++;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -353,20 +353,17 @@ $(document).ready(function() {
|
|||||||
presenter.getDashboardIndicators(dashboardId, defaultInitDate(), defaultEndDate())
|
presenter.getDashboardIndicators(dashboardId, defaultInitDate(), defaultEndDate())
|
||||||
.done(function(indicatorsVM) {
|
.done(function(indicatorsVM) {
|
||||||
fillIndicatorWidgets(indicatorsVM);
|
fillIndicatorWidgets(indicatorsVM);
|
||||||
//TODO use real data
|
|
||||||
loadIndicator(getFavoriteIndicator().id, defaultInitDate(), defaultEndDate());
|
loadIndicator(getFavoriteIndicator().id, defaultInitDate(), defaultEndDate());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#indicatorsGridStack').on('click','.ind-button-selector', function() {
|
$('#indicatorsGridStack').on('click','.ind-button-selector', function() {
|
||||||
var indicatorId = $(this).data('indicator-id');
|
var indicatorId = $(this).data('indicator-id');
|
||||||
//TODO use real data
|
|
||||||
loadIndicator(indicatorId, defaultInitDate(), defaultEndDate());
|
loadIndicator(indicatorId, defaultInitDate(), defaultEndDate());
|
||||||
});
|
});
|
||||||
|
|
||||||
$('body').on('click','.bread-back-selector', function() {
|
$('body').on('click','.bread-back-selector', function() {
|
||||||
var indicatorId = window.currentIndicator.id;
|
var indicatorId = window.currentIndicator.id;
|
||||||
//TODO use real data
|
|
||||||
loadIndicator(indicatorId, defaultInitDate(), defaultEndDate());
|
loadIndicator(indicatorId, defaultInitDate(), defaultEndDate());
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@@ -380,7 +377,6 @@ $(document).ready(function() {
|
|||||||
"inefficiencyCost":$(this).data('detail-cost'),
|
"inefficiencyCost":$(this).data('detail-cost'),
|
||||||
"name":$(this).data('detail-name')
|
"name":$(this).data('detail-name')
|
||||||
};
|
};
|
||||||
//TODO PASS REAL VALUES
|
|
||||||
presenter.getSpecialIndicatorSecondLevel(detailId, window.currentIndicator.type, defaultInitDate(), defaultEndDate())
|
presenter.getSpecialIndicatorSecondLevel(detailId, window.currentIndicator.type, defaultInitDate(), defaultEndDate())
|
||||||
.done(function (viewModel) {
|
.done(function (viewModel) {
|
||||||
fillSpecialIndicatorSecondView(viewModel);
|
fillSpecialIndicatorSecondView(viewModel);
|
||||||
@@ -406,8 +402,15 @@ var hideTitleAndSortDiv = function(){
|
|||||||
switch (window.currentIndicator.type) {
|
switch (window.currentIndicator.type) {
|
||||||
case "1010":
|
case "1010":
|
||||||
case "1030":
|
case "1030":
|
||||||
$('#relatedLabel').css('visibility', 'visible');
|
if($('.detail-button-selector').length == 0) {
|
||||||
$('#relatedLabel').show();
|
$('#relatedLabel').hide();
|
||||||
|
//$('#relatedLabel').find('h3').text(G_STRING['ID_NO_DATA_TO_DISPLAY']);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$('#relatedLabel').css('visibility', 'visible');
|
||||||
|
$('#relatedLabel').show();
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$('#relatedLabel').hide();
|
$('#relatedLabel').hide();
|
||||||
@@ -419,7 +422,17 @@ var selectedOrderOfDetailList = function () {
|
|||||||
return ($('#sortListButton').hasClass('fa-chevron-up') ? "up" : "down");
|
return ($('#sortListButton').hasClass('fa-chevron-up') ? "up" : "down");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var selectDefaultMonthAndYear = function () {
|
||||||
|
var compareDate = new Date();
|
||||||
|
compareDate.setMonth(compareDate.getMonth() - 1);
|
||||||
|
var compareMonth = compareDate.getMonth() + 1;
|
||||||
|
var compareYear = compareDate.getYear();
|
||||||
|
$('#month').val(compareMonth);
|
||||||
|
$('#year').val(compareYear);
|
||||||
|
}
|
||||||
|
|
||||||
var initialDraw = function () {
|
var initialDraw = function () {
|
||||||
|
selectDefaultMonthAndYear();
|
||||||
presenter.getUserDashboards(pageUserId)
|
presenter.getUserDashboards(pageUserId)
|
||||||
.then(function(dashboardsVM) {
|
.then(function(dashboardsVM) {
|
||||||
fillDashboardsList(dashboardsVM);
|
fillDashboardsList(dashboardsVM);
|
||||||
@@ -523,10 +536,6 @@ var fillIndicatorWidgets = function (presenterData) {
|
|||||||
$.each(presenterData, function(key, indicator) {
|
$.each(presenterData, function(key, indicator) {
|
||||||
var $widget = widgetBuilder.getIndicatorWidget(indicator);
|
var $widget = widgetBuilder.getIndicatorWidget(indicator);
|
||||||
grid.add_widget($widget, indicator.toDrawX, indicator.toDrawY, indicator.toDrawWidth, indicator.toDrawHeight, true);
|
grid.add_widget($widget, indicator.toDrawX, indicator.toDrawY, indicator.toDrawWidth, indicator.toDrawHeight, true);
|
||||||
//TODO will exist animation?
|
|
||||||
/*if (indicator.category == "normal") {
|
|
||||||
animateProgress(indicator, $widget);
|
|
||||||
}*/
|
|
||||||
var $title = $widget.find('.ind-title-selector');
|
var $title = $widget.find('.ind-title-selector');
|
||||||
if (indicator.favorite == "1") {
|
if (indicator.favorite == "1") {
|
||||||
$title.addClass("panel-active");
|
$title.addClass("panel-active");
|
||||||
@@ -548,7 +557,8 @@ var fillStatusIndicatorFirstView = function (presenterData) {
|
|||||||
containerId:'graph1',
|
containerId:'graph1',
|
||||||
width:300,
|
width:300,
|
||||||
height:300,
|
height:300,
|
||||||
stretch:true
|
stretch:true,
|
||||||
|
noDataText: G_STRING.ID_DISPLAY_EMPTY
|
||||||
},
|
},
|
||||||
graph: {
|
graph: {
|
||||||
|
|
||||||
@@ -608,7 +618,8 @@ var fillSpecialIndicatorFirstView = function(presenterData) {
|
|||||||
containerId:'specialIndicatorGraph',
|
containerId:'specialIndicatorGraph',
|
||||||
width:300,
|
width:300,
|
||||||
height:300,
|
height:300,
|
||||||
stretch:true
|
stretch:true,
|
||||||
|
noDataText: G_STRING.ID_NO_INEFFICIENT_PROCESSES
|
||||||
},
|
},
|
||||||
graph: {
|
graph: {
|
||||||
allowDrillDown:false,
|
allowDrillDown:false,
|
||||||
@@ -627,7 +638,8 @@ var fillSpecialIndicatorFirstView = function(presenterData) {
|
|||||||
containerId:'specialIndicatorGraph',
|
containerId:'specialIndicatorGraph',
|
||||||
width:500,
|
width:500,
|
||||||
height:300,
|
height:300,
|
||||||
stretch:true
|
stretch:true,
|
||||||
|
noDataText: G_STRING.ID_NO_INEFFICIENT_USER_GROUPS
|
||||||
},
|
},
|
||||||
graph: {
|
graph: {
|
||||||
allowDrillDown:false,
|
allowDrillDown:false,
|
||||||
@@ -725,11 +737,13 @@ var fillSpecialIndicatorSecondView = function(presenterData) {
|
|||||||
|
|
||||||
if (window.currentIndicator.type == "1010") {
|
if (window.currentIndicator.type == "1010") {
|
||||||
detailParams.graph.axisX.label = G_STRING['ID_TASK'] ;
|
detailParams.graph.axisX.label = G_STRING['ID_TASK'] ;
|
||||||
|
detailParams.canvas.noDataText = G_STRING['ID_NO_INEFFICIENT_TASKS'] ;
|
||||||
var graph = new BarChart(presenterData.dataToDraw, detailParams, null, null);
|
var graph = new BarChart(presenterData.dataToDraw, detailParams, null, null);
|
||||||
graph.drawChart();
|
graph.drawChart();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.currentIndicator.type == "1030") {
|
if (window.currentIndicator.type == "1030") {
|
||||||
|
detailParams.canvas.noDataText = G_STRING['ID_NO_INEFFICIENT_USERS'] ;
|
||||||
var graph = new BarChart(presenterData.dataToDraw, detailParams, null, null);
|
var graph = new BarChart(presenterData.dataToDraw, detailParams, null, null);
|
||||||
graph.drawChart();
|
graph.drawChart();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,5 +156,5 @@ if ($RBAC->userCanAccess("PM_SETUP") == 1) {
|
|||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
$G_TMP_MENU->AddIdRawOption("PMENTERPRISE", "../enterprise/addonsStore", G::LoadTranslation('ID_MENU_NAME') . $licStatusMsg, "", "", "plugins");
|
$G_TMP_MENU->AddIdRawOption("PMENTERPRISE", "../enterprise/addonsStore", G::LoadTranslation('ID_MENU_NAME') . $licStatusMsg, "", "", "plugins");
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
$G_TMP_MENU->AddIdRawOption("CASES_LIST_SETUP", "../cases/casesListSetup", G::LoadTranslation('ID_CASES_LIST'), "", "", "settings");
|
$G_TMP_MENU->AddIdRawOption("CASES_LIST_SETUP", "../cases/casesListSetup", G::LoadTranslation("ID_CUSTOM_CASES_LISTS"), "", "", "settings");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ G::LoadSystem('inputfilter');
|
|||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$_GET['i18'] = $filter->xssFilterHard($_GET['i18']);
|
$_GET['i18'] = $filter->xssFilterHard($_GET['i18']);
|
||||||
$_GET['newSite'] = $filter->xssFilterHard($_GET['newSite']);
|
$_GET['newSite'] = $filter->xssFilterHard($_GET['newSite']);
|
||||||
$_GET['module'] = $filter->xssFilterHard($_GET['module']);
|
|
||||||
|
|
||||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||||
return $RBAC_Response;
|
return $RBAC_Response;
|
||||||
@@ -78,10 +77,10 @@ foreach ($toolItems as $item) {
|
|||||||
$G_PUBLISH->AddContent( 'template', '', '', '', $template );
|
$G_PUBLISH->AddContent( 'template', '', '', '', $template );
|
||||||
G::RenderPage( 'publish' );
|
G::RenderPage( 'publish' );
|
||||||
if (isset( $_GET['module'] )) {
|
if (isset( $_GET['module'] )) {
|
||||||
|
$module = $filter->xssFilterHard($_GET['module']);
|
||||||
print "
|
print "
|
||||||
<script>
|
<script>
|
||||||
admToolsContent.location='" . $_GET['module'] . "';
|
admToolsContent.location='" . $module . "';
|
||||||
</script>
|
</script>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -319,9 +319,9 @@ function importSkin ()
|
|||||||
|
|
||||||
function exportSkin ($skinToExport = "")
|
function exportSkin ($skinToExport = "")
|
||||||
{
|
{
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
try {
|
try {
|
||||||
G::LoadSystem('inputfilter');
|
|
||||||
$filter = new InputFilter();
|
|
||||||
if (! isset( $_REQUEST['SKIN_FOLDER_ID'] )) {
|
if (! isset( $_REQUEST['SKIN_FOLDER_ID'] )) {
|
||||||
throw (new Exception( G::LoadTranslation( 'ID_SKIN_NAME_REQUIRED' ) ));
|
throw (new Exception( G::LoadTranslation( 'ID_SKIN_NAME_REQUIRED' ) ));
|
||||||
}
|
}
|
||||||
@@ -356,19 +356,23 @@ function exportSkin ($skinToExport = "")
|
|||||||
$response['success'] = true;
|
$response['success'] = true;
|
||||||
$response['message'] = $skinTar;
|
$response['message'] = $skinTar;
|
||||||
G::auditLog("ExportSkin", "Skin Name: ".$skinName);
|
G::auditLog("ExportSkin", "Skin Name: ".$skinName);
|
||||||
|
|
||||||
|
$response = $filter->xssFilterHard($response);
|
||||||
|
|
||||||
print_r( G::json_encode( $response ) );
|
print_r( G::json_encode( $response ) );
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$response['success'] = false;
|
$response['success'] = false;
|
||||||
$response['message'] = $e->getMessage();
|
$response['message'] = $e->getMessage();
|
||||||
|
$response = $filter->xssFilterHard($response);
|
||||||
print_r( G::json_encode( $response ) );
|
print_r( G::json_encode( $response ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteSkin ()
|
function deleteSkin ()
|
||||||
{
|
{
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
try {
|
try {
|
||||||
G::LoadSystem('inputfilter');
|
|
||||||
$filter = new InputFilter();
|
|
||||||
$_REQUEST['SKIN_FOLDER_ID'] = $filter->xssFilterHard($_REQUEST['SKIN_FOLDER_ID']);
|
$_REQUEST['SKIN_FOLDER_ID'] = $filter->xssFilterHard($_REQUEST['SKIN_FOLDER_ID']);
|
||||||
|
|
||||||
if (! (isset( $_REQUEST['SKIN_FOLDER_ID'] ))) {
|
if (! (isset( $_REQUEST['SKIN_FOLDER_ID'] ))) {
|
||||||
@@ -389,6 +393,7 @@ function deleteSkin ()
|
|||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$response['success'] = false;
|
$response['success'] = false;
|
||||||
$response['error'] = $response['message'] = $e->getMessage();
|
$response['error'] = $response['message'] = $e->getMessage();
|
||||||
|
$response = $filter->xssFilterHard($response);
|
||||||
print_r( G::json_encode( $response ) );
|
print_r( G::json_encode( $response ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,11 +323,15 @@ class Consolidated
|
|||||||
$oCriteria->add($oCriteria->getNewCriterion(AppCacheViewPeer::APP_NUMBER, $search, Criteria::LIKE));
|
$oCriteria->add($oCriteria->getNewCriterion(AppCacheViewPeer::APP_NUMBER, $search, Criteria::LIKE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new \InputFilter();
|
||||||
|
|
||||||
if ($sort != "") {
|
if ($sort != "") {
|
||||||
$reportTable = new ReportTables();
|
$reportTable = new ReportTables();
|
||||||
$arrayReportTableVar = $reportTable->getTableVars($tableUid);
|
$arrayReportTableVar = $reportTable->getTableVars($tableUid);
|
||||||
|
$tableName = $filter->validateInput($tableName);
|
||||||
|
$sort = $filter->validateInput($sort);
|
||||||
if (in_array($sort, $arrayReportTableVar)) {
|
if (in_array($sort, $arrayReportTableVar)) {
|
||||||
$sort = strtoupper($sort);
|
$sort = strtoupper($sort);
|
||||||
eval("\$field = " . $tableName . "Peer::" . $sort . ";");
|
eval("\$field = " . $tableName . "Peer::" . $sort . ";");
|
||||||
|
|||||||
@@ -47,10 +47,6 @@ class DynaForm extends Api
|
|||||||
$dynaForm->setArrayFieldNameForException(array("processUid" => "prj_uid"));
|
$dynaForm->setArrayFieldNameForException(array("processUid" => "prj_uid"));
|
||||||
|
|
||||||
$arrayData = $dynaForm->executeCreate($prj_uid, $request_data);
|
$arrayData = $dynaForm->executeCreate($prj_uid, $request_data);
|
||||||
if (!array_key_exists('dyn_content', $request_data)) {
|
|
||||||
$request_data['dyn_content']="{}";
|
|
||||||
}
|
|
||||||
$arrayData = $dynaForm->update($arrayData['dyn_uid'], $request_data);
|
|
||||||
|
|
||||||
$response = $arrayData;
|
$response = $arrayData;
|
||||||
|
|
||||||
|
|||||||
@@ -88,9 +88,9 @@
|
|||||||
<li class="mafe-save-process"><a href="#" class="mafe-button-save"></a></li>
|
<li class="mafe-save-process"><a href="#" class="mafe-button-save"></a></li>
|
||||||
<li><a href="#" class="mafe-button-export-process"></a></li>
|
<li><a href="#" class="mafe-button-export-process"></a></li>
|
||||||
<li><a class="mafe-button-export-bpmn-process"></a></li>
|
<li><a class="mafe-button-export-bpmn-process"></a></li>
|
||||||
<li></li>
|
<li><span class="mafe-zoom-options"></span></li>
|
||||||
<li class="mafe-undo"><a href="#"><span class="mafe-button-undo"></span></a></li>
|
<li class="mafe-undo"><a href="#"><span class="mafe-button-undo"></span></a></li>
|
||||||
<li class="mafe-redo"><a href="#"><span class="mafe-button-redo"></span></a></li>
|
<li class="mafe-redo"><a href="#"><span class="mafe-button-redo"></span></a></li>
|
||||||
<li><a href="#" title="" class="mafe-button-fullscreen"></a></li>
|
<li><a href="#" title="" class="mafe-button-fullscreen"></a></li>
|
||||||
<li></li>
|
<li></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ var frmDashboard;
|
|||||||
var addTabButton;
|
var addTabButton;
|
||||||
var tabPanel;
|
var tabPanel;
|
||||||
var dashboardIndicatorFields;
|
var dashboardIndicatorFields;
|
||||||
var dashboardIndicatorPanel;
|
|
||||||
var store;
|
var store;
|
||||||
|
|
||||||
var indexTab = 0;
|
var indexTab = 0;
|
||||||
@@ -49,12 +48,11 @@ var comboPageSize = 10;
|
|||||||
var resultTpl;
|
var resultTpl;
|
||||||
var storeIndicatorType;
|
var storeIndicatorType;
|
||||||
var storeGraphic;
|
var storeGraphic;
|
||||||
var storeFrecuency;
|
var storeFrequency;
|
||||||
var storeProject;
|
var storeProject;
|
||||||
var storeGroup;
|
var storeGroup;
|
||||||
var storeUsers;
|
var storeUsers;
|
||||||
var dataUserGroup;
|
var dataUserGroup;
|
||||||
var dasIndUid;
|
|
||||||
var flag = true;
|
var flag = true;
|
||||||
var myMask;
|
var myMask;
|
||||||
var dataIndicator = '';
|
var dataIndicator = '';
|
||||||
@@ -63,13 +61,13 @@ var tabActivate = [];
|
|||||||
Ext.onReady( function() {
|
Ext.onReady( function() {
|
||||||
|
|
||||||
myMask = new Ext.LoadMask(Ext.getBody(), {msg:_('ID_LOADING')});
|
myMask = new Ext.LoadMask(Ext.getBody(), {msg:_('ID_LOADING')});
|
||||||
|
|
||||||
|
|
||||||
Ext.QuickTips.init();
|
Ext.QuickTips.init();
|
||||||
|
|
||||||
resultTpl = new Ext.XTemplate(
|
resultTpl = new Ext.XTemplate(
|
||||||
'<tpl for="."><div class="x-combo-list-item" style="white-space:normal !important;word-wrap: break-word;">',
|
'<tpl for="."><div class="x-combo-list-item" style="white-space:normal !important;word-wrap: break-word;">',
|
||||||
'<span> {APP_PRO_TITLE}</span>',
|
'<span> {APP_PRO_TITLE}</span>',
|
||||||
'</div></tpl>'
|
'</div></tpl>'
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -79,21 +77,22 @@ Ext.onReady( function() {
|
|||||||
items : [
|
items : [
|
||||||
{
|
{
|
||||||
id : 'DAS_TITLE',
|
id : 'DAS_TITLE',
|
||||||
fieldLabel : _('ID_DASHBOARD_TITLE'),
|
fieldLabel : '<span style=\"color:red;\" ext:qtip="'+ _('ID_FIELD_REQUIRED', _('ID_DASHBOARD_TITLE')) +'"> * </span>' + _('ID_DASHBOARD_TITLE'),
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
anchor : '85%',
|
anchor : '85%',
|
||||||
maxLength : 250,
|
maxLength : 250,
|
||||||
maskRe : /([a-zA-Z0-9\s]+)$/,
|
maskRe : /([a-zA-Z0-9_'\s]+)$/,
|
||||||
|
regex : /([a-zA-Z0-9_'\s]+)$/,
|
||||||
|
regexText : _('ID_INVALID_VALUE', _('ID_DASHBOARD_TITLE')),
|
||||||
allowBlank : false
|
allowBlank : false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype : 'textarea',
|
xtype : 'textarea',
|
||||||
id : 'DAS_DESCRIPTION',
|
id : 'DAS_DESCRIPTION',
|
||||||
fieldLabel : _('ID_DESCRIPTION'),
|
fieldLabel : _('ID_DESCRIPTION'),
|
||||||
labelSeparator : '',
|
|
||||||
anchor : '85%',
|
anchor : '85%',
|
||||||
maskRe : /([a-zA-Z0-9\s]+)$/,
|
maskRe : /([a-zA-Z0-9_'\s]+)$/,
|
||||||
height : 50,
|
height : 50
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
@@ -238,7 +237,7 @@ Ext.onReady( function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
storeIndicatorType = new Ext.data.GroupingStore( {
|
storeIndicatorType = new Ext.data.GroupingStore( {
|
||||||
proxy : new Ext.data.HttpProxy({
|
proxy : new Ext.data.HttpProxy({
|
||||||
api: {
|
api: {
|
||||||
@@ -295,7 +294,7 @@ Ext.onReady( function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
storeFrecuency = new Ext.data.GroupingStore( {
|
storeFrequency = new Ext.data.GroupingStore( {
|
||||||
proxy : new Ext.data.HttpProxy({
|
proxy : new Ext.data.HttpProxy({
|
||||||
api: {
|
api: {
|
||||||
read : urlProxy + 'catalog/periodicity'
|
read : urlProxy + 'catalog/periodicity'
|
||||||
@@ -448,7 +447,7 @@ Ext.onReady( function() {
|
|||||||
return '<div class="search-item">' +
|
return '<div class="search-item">' +
|
||||||
'<h3><span>{owner_uid}</span>{owner_label}</h3>' +
|
'<h3><span>{owner_uid}</span>{owner_label}</h3>' +
|
||||||
'{excerpt}' +
|
'{excerpt}' +
|
||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//pageSize : 10,
|
//pageSize : 10,
|
||||||
@@ -485,7 +484,7 @@ Ext.onReady( function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: _('ID_PRO_USER'),
|
title: _('ID_PRO_USER')
|
||||||
},
|
},
|
||||||
ownerInfoGrid
|
ownerInfoGrid
|
||||||
]
|
]
|
||||||
@@ -494,7 +493,7 @@ Ext.onReady( function() {
|
|||||||
addTabButton = new Ext.Button ({
|
addTabButton = new Ext.Button ({
|
||||||
text: _('ID_NEW_TAB_INDICATOR'),
|
text: _('ID_NEW_TAB_INDICATOR'),
|
||||||
iconCls: 'button_menu_ext ss_sprite ss_add',
|
iconCls: 'button_menu_ext ss_sprite ss_add',
|
||||||
handler: addTab,
|
handler: addTab
|
||||||
});
|
});
|
||||||
|
|
||||||
tabPanel = new Ext.TabPanel({
|
tabPanel = new Ext.TabPanel({
|
||||||
@@ -528,23 +527,24 @@ Ext.onReady( function() {
|
|||||||
flag = true;
|
flag = true;
|
||||||
break;
|
break;
|
||||||
case 'yes':
|
case 'yes':
|
||||||
|
tabPanel.getItem(component.id).show();
|
||||||
flag = false;
|
flag = false;
|
||||||
var dasIndUid = Ext.getCmp('DAS_IND_UID_'+component.id).getValue();
|
var dasIndUid = Ext.getCmp('DAS_IND_UID_'+component.id).getValue();
|
||||||
if (typeof dasIndUid != 'undefined' && dasIndUid != '') {
|
if (typeof dasIndUid != 'undefined' && dasIndUid != '') {
|
||||||
removeIndicator(dasIndUid);
|
removeIndicator(dasIndUid);
|
||||||
}
|
}
|
||||||
tabActivate.remove(component.id);
|
tabActivate.remove(component.id);
|
||||||
tabPanel.remove(component);
|
tabPanel.remove(component, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
scope: that
|
scope: that
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
tabchange : function ( that, tab ) {
|
tabchange : function ( that, tab ) {
|
||||||
var id = tabPanel.getActiveTab().id;
|
var id = tabPanel.getActiveTab().id;
|
||||||
@@ -626,12 +626,9 @@ Ext.onReady( function() {
|
|||||||
items : [
|
items : [
|
||||||
addTabButton,
|
addTabButton,
|
||||||
tabPanel
|
tabPanel
|
||||||
|
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//form
|
//form
|
||||||
frmDashboard = new Ext.FormPanel({
|
frmDashboard = new Ext.FormPanel({
|
||||||
id : 'frmDashboard',
|
id : 'frmDashboard',
|
||||||
@@ -644,11 +641,11 @@ Ext.onReady( function() {
|
|||||||
waitMsgTarget : true,
|
waitMsgTarget : true,
|
||||||
frame : true,
|
frame : true,
|
||||||
defaults : {
|
defaults : {
|
||||||
anchor : '100%',
|
anchor : '100%',
|
||||||
allowBlank : false,
|
allowBlank : false,
|
||||||
resizable : true,
|
resizable : true,
|
||||||
msgTarget : 'side',
|
msgTarget : 'side',
|
||||||
align : 'center'
|
align : 'center'
|
||||||
},
|
},
|
||||||
items : [
|
items : [
|
||||||
dashboardFields,
|
dashboardFields,
|
||||||
@@ -671,10 +668,9 @@ Ext.onReady( function() {
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
ownerInfoGrid.store.load();
|
|
||||||
ownerInfoGrid.on("afterrender", function(component) {
|
ownerInfoGrid.on("afterrender", function(component) {
|
||||||
component.getBottomToolbar().refresh.hideParent = true;
|
component.getBottomToolbar().refresh.hideParent = true;
|
||||||
component.getBottomToolbar().refresh.hide();
|
component.getBottomToolbar().refresh.hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
viewport = new Ext.Viewport({
|
viewport = new Ext.Viewport({
|
||||||
@@ -698,6 +694,7 @@ Ext.onReady( function() {
|
|||||||
}
|
}
|
||||||
dashboardOwnerFields.items.items[0].bindStore(dataUserGroup);
|
dashboardOwnerFields.items.items[0].bindStore(dataUserGroup);
|
||||||
} );
|
} );
|
||||||
|
|
||||||
storeUsers.on( 'load', function( store, records, options ) {
|
storeUsers.on( 'load', function( store, records, options ) {
|
||||||
for (var i=0; i< store.data.length; i++) {
|
for (var i=0; i< store.data.length; i++) {
|
||||||
row = [];
|
row = [];
|
||||||
@@ -730,243 +727,245 @@ var addTab = function (flag) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var tab = {
|
var tab = {
|
||||||
title : _('ID_INDICATOR')+ ' '+ (++indexTab),
|
title : _('ID_INDICATOR')+ ' '+ (++indexTab),
|
||||||
id : indexTab,
|
id : indexTab,
|
||||||
iconCls : 'tabs',
|
iconCls : 'tabs',
|
||||||
width : "100%",
|
width : "100%",
|
||||||
items : [
|
items : [
|
||||||
new Ext.Panel({
|
new Ext.Panel({
|
||||||
height : 230,
|
height : 230,
|
||||||
width : "100%",
|
width : "100%",
|
||||||
border : true,
|
border : true,
|
||||||
bodyStyle : 'padding:10px',
|
bodyStyle : 'padding:10px',
|
||||||
items : [
|
items : [
|
||||||
new Ext.form.FieldSet({
|
new Ext.form.FieldSet({
|
||||||
labelWidth : 150,
|
labelWidth : 150,
|
||||||
labelAlign :'right',
|
labelAlign :'right',
|
||||||
items : [
|
items : [
|
||||||
{
|
{
|
||||||
id : 'DAS_IND_UID_' + indexTab,
|
id : 'DAS_IND_UID_' + indexTab,
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
hidden : true
|
hidden : true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldLabel : _('ID_INDICATOR_TITLE'),
|
fieldLabel : '<span style=\"color:red;\" ext:qtip="'+ _('ID_FIELD_REQUIRED', _('ID_INDICATOR_TITLE')) +'"> * </span>' + _('ID_INDICATOR_TITLE'),
|
||||||
id : 'IND_TITLE_'+ indexTab,
|
id : 'IND_TITLE_'+ indexTab,
|
||||||
xtype : 'textfield',
|
xtype : 'textfield',
|
||||||
anchor : '85%',
|
anchor : '85%',
|
||||||
maskRe : /([a-zA-Z0-9\s]+)$/,
|
maskRe : /([a-zA-Z0-9_'\s]+)$/,
|
||||||
maxLength : 250,
|
regex : /([a-zA-Z0-9_'\s]+)$/,
|
||||||
allowBlank : false
|
regexText : _('ID_INVALID_VALUE', _('ID_INDICATOR_TITLE')),
|
||||||
},
|
maxLength : 250,
|
||||||
new Ext.form.ComboBox({
|
allowBlank : false
|
||||||
anchor : '85%',
|
},
|
||||||
editable : false,
|
new Ext.form.ComboBox({
|
||||||
id : 'IND_TYPE_'+ indexTab,
|
anchor : '85%',
|
||||||
fieldLabel : _('ID_INDICATOR_TYPE'),
|
editable : false,
|
||||||
displayField : 'CAT_LABEL_ID',
|
id : 'IND_TYPE_'+ indexTab,
|
||||||
valueField : 'CAT_UID',
|
fieldLabel : '<span style=\"color:red;\" ext:qtip="'+ _('ID_FIELD_REQUIRED', _('ID_INDICATOR_TYPE')) +'"> * </span>' + _('ID_INDICATOR_TYPE'),
|
||||||
forceSelection : false,
|
displayField : 'CAT_LABEL_ID',
|
||||||
emptyText : _('ID_SELECT'),
|
valueField : 'CAT_UID',
|
||||||
selectOnFocus : true,
|
forceSelection : false,
|
||||||
typeAhead : true,
|
emptyText : _('ID_SELECT'),
|
||||||
autocomplete : true,
|
selectOnFocus : true,
|
||||||
triggerAction : 'all',
|
typeAhead : true,
|
||||||
store : storeIndicatorType,
|
autocomplete : true,
|
||||||
listeners:{
|
triggerAction : 'all',
|
||||||
scope: this,
|
store : storeIndicatorType,
|
||||||
select: function(combo, record, index) {
|
listeners:{
|
||||||
var value = combo.getValue();
|
scope: this,
|
||||||
var field = '';
|
select: function(combo, record, index) {
|
||||||
var index = tabPanel.getActiveTab().id;
|
var value = combo.getValue();
|
||||||
var fields = ['DAS_IND_FIRST_FIGURE_'+index,'DAS_IND_FIRST_FREQUENCY_'+index,'DAS_IND_SECOND_FIGURE_'+index, 'DAS_IND_SECOND_FREQUENCY_'+index];
|
var field = '';
|
||||||
if (value == '1050') {
|
var index = tabPanel.getActiveTab().id;
|
||||||
field = Ext.getCmp('IND_PROCESS_'+index);
|
var fields = ['DAS_IND_FIRST_FIGURE_'+index,'DAS_IND_FIRST_FREQUENCY_'+index,'DAS_IND_SECOND_FIGURE_'+index, 'DAS_IND_SECOND_FREQUENCY_'+index];
|
||||||
|
if (value == '1050') {
|
||||||
|
field = Ext.getCmp('IND_PROCESS_'+index);
|
||||||
|
field.setValue('0');
|
||||||
|
field.disable();
|
||||||
|
field.hide();
|
||||||
|
} else {
|
||||||
|
field = Ext.getCmp('IND_PROCESS_'+index);
|
||||||
|
field.enable();
|
||||||
|
field.show();
|
||||||
|
}
|
||||||
|
if (value == '1010' || value == '1030' || value == '1050') {
|
||||||
|
for (var i=0; i<fields.length; i++) {
|
||||||
|
field = Ext.getCmp(fields[i]);
|
||||||
field.disable();
|
field.disable();
|
||||||
field.hide();
|
field.hide();
|
||||||
} else {
|
}
|
||||||
field = Ext.getCmp('IND_PROCESS_'+index);
|
} else {
|
||||||
|
for (var i=0; i<fields.length; i++) {
|
||||||
|
field = Ext.getCmp(fields[i]);
|
||||||
field.enable();
|
field.enable();
|
||||||
field.show();
|
field.show();
|
||||||
}
|
}
|
||||||
if (value == '1010' || value == '1030' || value == '1050') {
|
|
||||||
for (var i=0; i<fields.length; i++) {
|
|
||||||
field = Ext.getCmp(fields[i]);
|
|
||||||
field.disable();
|
|
||||||
field.hide();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
for (var i=0; i<fields.length; i++) {
|
|
||||||
field = Ext.getCmp(fields[i]);
|
|
||||||
field.enable();
|
|
||||||
field.show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
new Ext.form.FieldSet({
|
|
||||||
title : _('ID_INDICATOR_GOAL'),
|
|
||||||
width : "90%",
|
|
||||||
id : 'fieldSet_'+ indexTab,
|
|
||||||
bodyStyle: 'paddingLeft: 75px;',
|
|
||||||
paddingLeft: "30px",
|
|
||||||
marginLeft : "60px",
|
|
||||||
layout : 'hbox',
|
|
||||||
hidden : true,
|
|
||||||
items : [
|
|
||||||
new Ext.form.ComboBox({
|
|
||||||
editable : false,
|
|
||||||
id : 'DAS_IND_DIRECTION_'+ indexTab,
|
|
||||||
displayField : 'label',
|
|
||||||
valueField : 'id',
|
|
||||||
value : '2',
|
|
||||||
forceSelection : false,
|
|
||||||
selectOnFocus : true,
|
|
||||||
typeAhead : true,
|
|
||||||
autocomplete : true,
|
|
||||||
width : 90,
|
|
||||||
triggerAction : 'all',
|
|
||||||
mode : 'local',
|
|
||||||
allowBlank : false,
|
|
||||||
store : new Ext.data.ArrayStore({
|
|
||||||
id: 2,
|
|
||||||
fields: [
|
|
||||||
'id',
|
|
||||||
'label'
|
|
||||||
],
|
|
||||||
data: [['1', _('ID_LESS_THAN')], ['2', _('ID_MORE_THAN')]]
|
|
||||||
})
|
|
||||||
}),
|
|
||||||
{
|
|
||||||
fieldLabel : _('ID_INDICATOR_GOAL'),
|
|
||||||
id : 'IND_GOAL_'+ indexTab,
|
|
||||||
xtype : 'textfield',
|
|
||||||
anchor : '40%',
|
|
||||||
maskRe : /([0-9\.]+)$/,
|
|
||||||
maxLength : 9,
|
|
||||||
value : 1,
|
|
||||||
width : 80,
|
|
||||||
allowBlank : false,
|
|
||||||
listeners : {
|
|
||||||
focus : function(tb, e) {
|
|
||||||
Ext.QuickTips.register({
|
|
||||||
target: tb,
|
|
||||||
title: _('ID_HELP'),
|
|
||||||
text: _('ID_GOAL_HELP')
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
}
|
||||||
listeners:
|
}
|
||||||
|
}),
|
||||||
|
new Ext.form.FieldSet({
|
||||||
|
title : _('ID_INDICATOR_GOAL'),
|
||||||
|
width : "90%",
|
||||||
|
id : 'fieldSet_'+ indexTab,
|
||||||
|
bodyStyle: 'paddingLeft: 75px;',
|
||||||
|
paddingLeft: "30px",
|
||||||
|
marginLeft : "60px",
|
||||||
|
layout : 'hbox',
|
||||||
|
hidden : true,
|
||||||
|
items : [
|
||||||
|
new Ext.form.ComboBox({
|
||||||
|
editable : false,
|
||||||
|
id : 'DAS_IND_DIRECTION_'+ indexTab,
|
||||||
|
displayField : 'label',
|
||||||
|
valueField : 'id',
|
||||||
|
value : '2',
|
||||||
|
forceSelection : false,
|
||||||
|
selectOnFocus : true,
|
||||||
|
typeAhead : true,
|
||||||
|
autocomplete : true,
|
||||||
|
width : 90,
|
||||||
|
triggerAction : 'all',
|
||||||
|
mode : 'local',
|
||||||
|
allowBlank : false,
|
||||||
|
store : new Ext.data.ArrayStore({
|
||||||
|
id: 2,
|
||||||
|
fields: [
|
||||||
|
'id',
|
||||||
|
'label'
|
||||||
|
],
|
||||||
|
data: [['1', _('ID_LESS_THAN')], ['2', _('ID_MORE_THAN')]]
|
||||||
|
})
|
||||||
|
}),
|
||||||
{
|
{
|
||||||
render: function()
|
fieldLabel : _('ID_INDICATOR_GOAL'),
|
||||||
{
|
id : 'IND_GOAL_'+ indexTab,
|
||||||
var index = tabPanel.getActiveTab().id;
|
xtype : 'textfield',
|
||||||
var myfieldset = document.getElementById('fieldSet_'+index);
|
anchor : '40%',
|
||||||
myfieldset.style.marginLeft = "70px";
|
maskRe : /([0-9\.]+)$/,
|
||||||
myfieldset.style.marginRight = "70px";
|
maxLength : 9,
|
||||||
|
value : 1,
|
||||||
|
width : 80,
|
||||||
|
allowBlank : false,
|
||||||
|
listeners : {
|
||||||
|
focus : function(tb, e) {
|
||||||
|
Ext.QuickTips.register({
|
||||||
|
target: tb,
|
||||||
|
title: _('ID_HELP'),
|
||||||
|
text: _('ID_GOAL_HELP')
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
listeners:
|
||||||
|
{
|
||||||
|
render: function()
|
||||||
|
{
|
||||||
|
var index = tabPanel.getActiveTab().id;
|
||||||
|
var myfieldset = document.getElementById('fieldSet_'+index);
|
||||||
|
myfieldset.style.marginLeft = "70px";
|
||||||
|
myfieldset.style.marginRight = "70px";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}),
|
}),
|
||||||
new Ext.form.ComboBox({
|
new Ext.form.ComboBox({
|
||||||
anchor : '85%',
|
anchor : '85%',
|
||||||
editable : false,
|
editable : false,
|
||||||
fieldLabel : _('ID_PROCESS'),
|
fieldLabel : '<span style=\"color:red;\" ext:qtip="'+ _('ID_FIELD_REQUIRED', _('ID_PROCESS')) +'"> * </span>' + _('ID_PROCESS'),
|
||||||
id : 'IND_PROCESS_'+ indexTab,
|
id : 'IND_PROCESS_'+ indexTab,
|
||||||
displayField : 'prj_name',
|
displayField : 'prj_name',
|
||||||
valueField : 'prj_uid',
|
valueField : 'prj_uid',
|
||||||
forceSelection : false,
|
forceSelection : true,
|
||||||
emptyText : _('ID_EMPTY_PROCESSES'),
|
emptyText : _('ID_EMPTY_PROCESSES'),
|
||||||
selectOnFocus : true,
|
selectOnFocus : true,
|
||||||
hidden : true,
|
hidden : true,
|
||||||
typeAhead : true,
|
typeAhead : true,
|
||||||
autocomplete : true,
|
autocomplete : true,
|
||||||
triggerAction : 'all',
|
triggerAction : 'all',
|
||||||
value : '0',
|
store : storeProject
|
||||||
store : storeProject
|
}),
|
||||||
}),
|
new Ext.form.ComboBox({
|
||||||
new Ext.form.ComboBox({
|
anchor : '85%',
|
||||||
anchor : '85%',
|
editable : false,
|
||||||
editable : false,
|
fieldLabel : _('ID_FIRST_FIGURE'),
|
||||||
fieldLabel : _('ID_FIRST_FIGURE'),
|
displayField : 'CAT_LABEL_ID',
|
||||||
displayField : 'CAT_LABEL_ID',
|
id : 'DAS_IND_FIRST_FIGURE_'+ indexTab,
|
||||||
id : 'DAS_IND_FIRST_FIGURE_'+ indexTab,
|
valueField : 'CAT_UID',
|
||||||
valueField : 'CAT_UID',
|
forceSelection : false,
|
||||||
forceSelection : false,
|
emptyText : _('ID_SELECT'),
|
||||||
emptyText : _('ID_SELECT'),
|
selectOnFocus : true,
|
||||||
selectOnFocus : true,
|
hidden : true,
|
||||||
hidden : true,
|
typeAhead : true,
|
||||||
typeAhead : true,
|
autocomplete : true,
|
||||||
autocomplete : true,
|
triggerAction : 'all',
|
||||||
triggerAction : 'all',
|
store : storeGraphic
|
||||||
store : storeGraphic
|
}),
|
||||||
}),
|
new Ext.form.ComboBox({
|
||||||
new Ext.form.ComboBox({
|
anchor : '85%',
|
||||||
anchor : '85%',
|
editable : false,
|
||||||
editable : false,
|
fieldLabel : _('ID_PERIODICITY'),
|
||||||
fieldLabel : _('ID_PERIODICITY'),
|
displayField : 'CAT_LABEL_ID',
|
||||||
displayField : 'CAT_LABEL_ID',
|
id : 'DAS_IND_FIRST_FREQUENCY_'+ indexTab,
|
||||||
id : 'DAS_IND_FIRST_FREQUENCY_'+ indexTab,
|
valueField : 'CAT_UID',
|
||||||
valueField : 'CAT_UID',
|
forceSelection : false,
|
||||||
forceSelection : false,
|
emptyText : _('ID_SELECT'),
|
||||||
emptyText : _('ID_SELECT'),
|
selectOnFocus : true,
|
||||||
selectOnFocus : true,
|
hidden : true,
|
||||||
hidden : true,
|
typeAhead : true,
|
||||||
typeAhead : true,
|
autocomplete : true,
|
||||||
autocomplete : true,
|
triggerAction : 'all',
|
||||||
triggerAction : 'all',
|
store : storeFrequency
|
||||||
store : storeFrecuency
|
}),
|
||||||
}),
|
new Ext.form.ComboBox({
|
||||||
new Ext.form.ComboBox({
|
anchor : '85%',
|
||||||
anchor : '85%',
|
editable : false,
|
||||||
editable : false,
|
fieldLabel : _('ID_SECOND_FIGURE'),
|
||||||
fieldLabel : _('ID_SECOND_FIGURE'),
|
id : 'DAS_IND_SECOND_FIGURE_'+ indexTab,
|
||||||
id : 'DAS_IND_SECOND_FIGURE_'+ indexTab,
|
displayField : 'CAT_LABEL_ID',
|
||||||
displayField : 'CAT_LABEL_ID',
|
valueField : 'CAT_UID',
|
||||||
valueField : 'CAT_UID',
|
forceSelection : false,
|
||||||
forceSelection : false,
|
emptyText : _('ID_SELECT'),
|
||||||
emptyText : _('ID_SELECT'),
|
selectOnFocus : true,
|
||||||
selectOnFocus : true,
|
hidden : true,
|
||||||
hidden : true,
|
typeAhead : true,
|
||||||
typeAhead : true,
|
autocomplete : true,
|
||||||
autocomplete : true,
|
triggerAction : 'all',
|
||||||
triggerAction : 'all',
|
store : storeGraphic
|
||||||
store : storeGraphic
|
}),
|
||||||
}),
|
new Ext.form.ComboBox({
|
||||||
new Ext.form.ComboBox({
|
anchor : '85%',
|
||||||
anchor : '85%',
|
editable : false,
|
||||||
editable : false,
|
fieldLabel : _('ID_PERIODICITY'),
|
||||||
fieldLabel : _('ID_PERIODICITY'),
|
displayField : 'CAT_LABEL_ID',
|
||||||
displayField : 'CAT_LABEL_ID',
|
id : 'DAS_IND_SECOND_FREQUENCY_'+ indexTab,
|
||||||
id : 'DAS_IND_SECOND_FREQUENCY_'+ indexTab,
|
valueField : 'CAT_UID',
|
||||||
valueField : 'CAT_UID',
|
forceSelection : false,
|
||||||
forceSelection : false,
|
emptyText : _('ID_SELECT'),
|
||||||
emptyText : _('ID_SELECT'),
|
selectOnFocus : true,
|
||||||
selectOnFocus : true,
|
hidden : true,
|
||||||
hidden : true,
|
typeAhead : true,
|
||||||
typeAhead : true,
|
autocomplete : true,
|
||||||
autocomplete : true,
|
triggerAction : 'all',
|
||||||
triggerAction : 'all',
|
store : storeFrequency
|
||||||
store : storeFrecuency
|
})
|
||||||
})
|
]
|
||||||
]
|
})
|
||||||
})
|
]
|
||||||
]
|
})
|
||||||
})
|
],
|
||||||
],
|
listeners : {
|
||||||
listeners : {
|
scope: this,
|
||||||
scope: this,
|
activate : function (that) {
|
||||||
activate : function (that) {
|
if (tabActivate.indexOf(that.id) == -1 ) {
|
||||||
if (tabActivate.indexOf(that.id) == -1 ) {
|
tabActivate.push(that.id);
|
||||||
tabActivate.push(that.id);
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
closable:true
|
||||||
closable:true
|
};
|
||||||
};
|
|
||||||
if (flag != 'load') {
|
if (flag != 'load') {
|
||||||
tabPanel.add(tab).show();
|
tabPanel.add(tab).show();
|
||||||
} else {
|
} else {
|
||||||
@@ -1028,7 +1027,7 @@ var validateNameDashboard = function () {
|
|||||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_DIRECTORY_NAME_EXISTS_ENTER_ANOTHER', title));
|
PMExt.warning(_('ID_DASHBOARD'), _('ID_DIRECTORY_NAME_EXISTS_ENTER_ANOTHER', title));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
saveDashboard();
|
saveDashboard();
|
||||||
},
|
},
|
||||||
failure: function (response) {
|
failure: function (response) {
|
||||||
@@ -1086,7 +1085,6 @@ var saveDashboard = function () {
|
|||||||
},
|
},
|
||||||
data: JSON.stringify(data),
|
data: JSON.stringify(data),
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
var jsonResp = Ext.util.JSON.decode(response.responseText);
|
|
||||||
saveAllDashboardOwner(DAS_UID);
|
saveAllDashboardOwner(DAS_UID);
|
||||||
saveAllIndicators(DAS_UID);
|
saveAllIndicators(DAS_UID);
|
||||||
myMask.hide();
|
myMask.hide();
|
||||||
@@ -1109,11 +1107,25 @@ var saveAllIndicators = function (DAS_UID) {
|
|||||||
tabPanel.getItem(tabActivate[tab]).show();
|
tabPanel.getItem(tabActivate[tab]).show();
|
||||||
var fieldsTab = tabPanel.getItem(tabActivate[tab]).items.items[0].items.items[0].items.items;
|
var fieldsTab = tabPanel.getItem(tabActivate[tab]).items.items[0].items.items[0].items.items;
|
||||||
|
|
||||||
|
if (fieldsTab[1].getValue().trim() == '') {
|
||||||
|
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_TITLE_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
||||||
|
fieldsTab[1].focus(true,10);
|
||||||
|
return false;
|
||||||
|
} else if (fieldsTab[2].getValue().trim() == '') {
|
||||||
|
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_TYPE_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
||||||
|
fieldsTab[2].focus(true,10);
|
||||||
|
return false;
|
||||||
|
} else if (fieldsTab[2].getValue() != '1050' && fieldsTab[4].getValue().trim() == '') {
|
||||||
|
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_PROCESS_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
||||||
|
fieldsTab[4].focus(true,10);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
var goal = fieldsTab[3];
|
var goal = fieldsTab[3];
|
||||||
fieldsTab.push(goal.items.items[0]);
|
fieldsTab.push(goal.items.items[0]);
|
||||||
fieldsTab.push(goal.items.items[1]);
|
fieldsTab.push(goal.items.items[1]);
|
||||||
|
|
||||||
data = [];
|
var data = [];
|
||||||
data['DAS_UID'] = DAS_UID;
|
data['DAS_UID'] = DAS_UID;
|
||||||
|
|
||||||
for (var index in fieldsTab) {
|
for (var index in fieldsTab) {
|
||||||
@@ -1122,12 +1134,12 @@ var saveAllIndicators = function (DAS_UID) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
id = node.id;
|
var id = node.id;
|
||||||
if (typeof id == 'undefined' || id.indexOf('fieldSet_') != -1 ) {
|
if (typeof id == 'undefined' || id.indexOf('fieldSet_') != -1 ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
id = id.split('_');
|
id = id.split('_');
|
||||||
field = '';
|
var field = '';
|
||||||
for (var part = 0; part<id.length-1; part++) {
|
for (var part = 0; part<id.length-1; part++) {
|
||||||
if (part == 0) {
|
if (part == 0) {
|
||||||
field = id[part];
|
field = id[part];
|
||||||
@@ -1135,25 +1147,7 @@ var saveAllIndicators = function (DAS_UID) {
|
|||||||
field = field+'_'+id[part];
|
field = field+'_'+id[part];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value = node.getValue();
|
var value = node.getValue();
|
||||||
|
|
||||||
if (field == 'IND_TITLE' && value.trim() == '') {
|
|
||||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_TITLE_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
|
||||||
node.focus(true,10);
|
|
||||||
return false;
|
|
||||||
} else if (field == 'IND_TYPE' && value.trim() == '') {
|
|
||||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_TYPE_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
|
||||||
node.focus(true,10);
|
|
||||||
return false;
|
|
||||||
} else if (field == 'IND_GOAL' && value.trim() == '') {
|
|
||||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_GOAL_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
|
||||||
node.focus(true,10);
|
|
||||||
return false;
|
|
||||||
} else if (field == 'IND_PROCESS' && value.trim() == '') {
|
|
||||||
PMExt.warning(_('ID_DASHBOARD'), _('ID_INDICATOR_PROCESS_REQUIRED', tabPanel.getItem(tabActivate[tab]).title));
|
|
||||||
node.focus(true,10);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
field = field == 'IND_TITLE' ? 'DAS_IND_TITLE' : field;
|
field = field == 'IND_TITLE' ? 'DAS_IND_TITLE' : field;
|
||||||
field = field == 'IND_TYPE' ? 'DAS_IND_TYPE' : field;
|
field = field == 'IND_TYPE' ? 'DAS_IND_TYPE' : field;
|
||||||
@@ -1271,7 +1265,7 @@ var loadIndicators = function (DAS_UID) {
|
|||||||
addTab('load');
|
addTab('load');
|
||||||
}
|
}
|
||||||
dataIndicator = jsonResp;
|
dataIndicator = jsonResp;
|
||||||
|
|
||||||
for (var i=0; i<=jsonResp.length-1; i++) {
|
for (var i=0; i<=jsonResp.length-1; i++) {
|
||||||
addTab('load');
|
addTab('load');
|
||||||
tabPanel.getItem(i+1).setTitle(jsonResp[i]['DAS_IND_TITLE']);
|
tabPanel.getItem(i+1).setTitle(jsonResp[i]['DAS_IND_TITLE']);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-xs-9 text-right"><i class="ind-symbol-selector fa fa-chevron-up fa-3x"></i>
|
<div class="col-xs-9 text-right"><i class="ind-symbol-selector fa fa-chevron-up fa-3x"></i>
|
||||||
<div class="small ind-comparative-selector">
|
<div class="small ind-comparative-selector">
|
||||||
<%- indicator.comparative %> (<%- indicator.percentComparative %> %)
|
<%- indicator.comparative %> <%- indicator.percentComparative %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -81,29 +81,29 @@
|
|||||||
<div class="ind-container-selector panel grid-stack-item-content" style="min-width:200px;">
|
<div class="ind-container-selector panel grid-stack-item-content" style="min-width:200px;">
|
||||||
<a data-toggle="collapse" href="#efficiencyindex" aria-expanded="false" aria-controls="efficiencyindex">
|
<a data-toggle="collapse" href="#efficiencyindex" aria-expanded="false" aria-controls="efficiencyindex">
|
||||||
<div class="panel-heading status-indicator-low"
|
<div class="panel-heading status-indicator-low"
|
||||||
style=" width:<%- indicator.percentageOverdue %>%;
|
style=" width:<%- indicator.percentageOverdueWidth %>%;
|
||||||
visibility: <%- indicator.overdueVisibility %>" >
|
visibility: <%- indicator.overdueVisibility %>;overflow:hidden;" >
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="small ind-comparative-selector"><%- indicator.percentageOverdue %>%</div>
|
<div class="small ind-comparative-selector"><%- indicator.percentageOverdueToShow %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-heading status-indicator-medium"
|
<div class="panel-heading status-indicator-medium"
|
||||||
style=" width:<%- indicator.percentageAtRisk %>%;
|
style=" width:<%- indicator.percentageAtRiskWidth %>%;
|
||||||
visibility: <%- indicator.atRiskVisibility %>;" >
|
visibility: <%- indicator.atRiskVisibility %>;overflow:hidden;" >
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="small ind-comparative-selector"><%- indicator.percentageAtRisk %>%</div>
|
<div class="small ind-comparative-selector"><%- indicator.percentageAtRiskToShow %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-heading status-indicator-high"
|
<div class="panel-heading status-indicator-high"
|
||||||
style=" width:<%- indicator.percentageOnTime %>%;
|
style=" width:<%- indicator.percentageOnTimeWidth %>%;
|
||||||
visibility: <%- indicator.onTimeVisibility %>;">
|
visibility: <%- indicator.onTimeVisibility %>; overflow:hidden;">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="small ind-comparative-selector"><%- indicator.percentageOnTime %>%</div>
|
<div class="small ind-comparative-selector"><%- indicator.percentageOnTimeToShow %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -167,7 +167,8 @@
|
|||||||
<div class="red sind-cost-number-selector">{$unitCost} <%- indicator.inefficiencyCostToShow %></div>
|
<div class="red sind-cost-number-selector">{$unitCost} <%- indicator.inefficiencyCostToShow %></div>
|
||||||
<div class="small grey sind-cost-selector ellipsis"></div>
|
<div class="small grey sind-cost-selector ellipsis"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-6" id="specialIndicatorGraph" style="width:540px;height:300px;"></div>
|
<div class="col-xs-6" id="specialIndicatorGraph" style="width:540px;height:300px;">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -204,7 +205,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/template" class="specialIndicatorSecondViewDetailUei">
|
<script type="text/template" class="specialIndicatorSecondViewDetailUei">
|
||||||
<div class="process-div well hideme detail-button-selector" data-gs-no-resize="true"
|
<div class="process-div well hideme detail-button-selector-uei" data-gs-no-resize="true"
|
||||||
id="detailData-<%- detailData.uid %>"
|
id="detailData-<%- detailData.uid %>"
|
||||||
data-indicator-id="<%- detailData.indicatorId %>"
|
data-indicator-id="<%- detailData.indicatorId %>"
|
||||||
data-detail-id="<%- detailData.uid %>">
|
data-detail-id="<%- detailData.uid %>">
|
||||||
@@ -233,7 +234,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/template" class="specialIndicatorSecondViewDetailPei">
|
<script type="text/template" class="specialIndicatorSecondViewDetailPei">
|
||||||
<div class="process-div well hideme detail-button-selector" data-gs-no-resize="true"
|
<div class="process-div well hideme detail-button-selector-pei" data-gs-no-resize="true"
|
||||||
id="detailData-<%- detailData.uid %>"
|
id="detailData-<%- detailData.uid %>"
|
||||||
data-indicator-id="<%- detailData.indicatorId %>"
|
data-indicator-id="<%- detailData.indicatorId %>"
|
||||||
data-detail-id="<%- detailData.uid %>">
|
data-detail-id="<%- detailData.uid %>">
|
||||||
@@ -323,18 +324,20 @@
|
|||||||
<li class="ind-title-selector"></li>
|
<li class="ind-title-selector"></li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center huge" style="margin:0 auto; width:98%;">
|
<div class="text-center huge" style="margin:0 auto; width:100%; text-align:center;">
|
||||||
<div class="col-xs-4" style="width:auto;">
|
<div class="row" style="width:auto; margin:0 auto; display:inline-block;">
|
||||||
<div class="status-graph-title-low">{translate label="ID_OVERDUE"}:</div>
|
<div class="col-xs-4" style="width:auto;">
|
||||||
<div id="graph1" style="width:400px; height:300px;"></div>
|
<div class="status-graph-title-low">{translate label="ID_OVERDUE"}:</div>
|
||||||
</div>
|
<div id="graph1" style="width:380px; height:300px;"></div>
|
||||||
<div class="col-xs-4" style="width:auto;">
|
</div>
|
||||||
<div class="status-graph-title-medium">{translate label="ID_AT_RISK"}:</div>
|
<div class="col-xs-4" style="width:auto;">
|
||||||
<div id="graph2" style="width:400px; height:300px;"></div>
|
<div class="status-graph-title-medium">{translate label="ID_AT_RISK"}:</div>
|
||||||
</div>
|
<div id="graph2" style="width:380px; height:300px;"></div>
|
||||||
<div class="col-xs-4" style="width:auto;">
|
</div>
|
||||||
<div class="status-graph-title-high">{translate label="ID_ON_TIME"}:</div>
|
<div class="col-xs-4" style="width:auto;">
|
||||||
<div id="graph3" style="width:400px; height:300px;"></div>
|
<div class="status-graph-title-high">{translate label="ID_ON_TIME"}:</div>
|
||||||
|
<div id="graph3" style="width:380px; height:300px;"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
@@ -436,7 +439,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<center><h3></h3></center>
|
<center><h3></h3></center>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div id="sortby">
|
||||||
{translate label="ID_SORT_BY"} {translate label="ID_COSTS"} : <a id="sortListButton" class="fa fa-chevron-up fa-1x" style="color:#000;" href="#"></a>
|
{translate label="ID_SORT_BY"} {translate label="ID_COSTS"} : <a id="sortListButton" class="fa fa-chevron-up fa-1x" style="color:#000;" href="#"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -453,3 +456,5 @@
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,8 +61,9 @@
|
|||||||
|
|
||||||
//$_test_dir = realpath(dirname(__FILE__).'/..');
|
//$_test_dir = realpath(dirname(__FILE__).'/..');
|
||||||
//require_once( 'lime/lime.php');
|
//require_once( 'lime/lime.php');
|
||||||
|
if(file_exists(PATH_GULLIVER . "class.bootstrap.php")) {
|
||||||
require_once (PATH_GULLIVER . "class.bootstrap.php");
|
require_once (PATH_GULLIVER . "class.bootstrap.php");
|
||||||
|
}
|
||||||
spl_autoload_register(array('Bootstrap', 'autoloadClass'));
|
spl_autoload_register(array('Bootstrap', 'autoloadClass'));
|
||||||
Bootstrap::registerClass('G', PATH_GULLIVER . "class.g.php");
|
Bootstrap::registerClass('G', PATH_GULLIVER . "class.g.php");
|
||||||
Bootstrap::registerClass('System', PATH_HOME . "engine/classes/class.system.php");
|
Bootstrap::registerClass('System', PATH_HOME . "engine/classes/class.system.php");
|
||||||
|
|||||||
@@ -69,6 +69,13 @@
|
|||||||
//$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
//$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
|
||||||
//$e_all = E_ALL & ~ E_DEPRECATED & ~ E_STRICT & ~ E_NOTICE & ~E_WARNING;
|
//$e_all = E_ALL & ~ E_DEPRECATED & ~ E_STRICT & ~ E_NOTICE & ~E_WARNING;
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$config['display_errors'] = $filter->validateInput($config['display_errors']);
|
||||||
|
$config['error_reporting'] = $filter->validateInput($config['error_reporting']);
|
||||||
|
$config['memory_limit'] = $filter->validateInput($config['memory_limit']);
|
||||||
|
$config['wsdl_cache'] = $filter->validateInput($config['wsdl_cache'],'int');
|
||||||
|
$config['time_zone'] = $filter->validateInput($config['time_zone']);
|
||||||
// Do not change any of these settings directly, use env.ini instead
|
// Do not change any of these settings directly, use env.ini instead
|
||||||
ini_set( 'display_errors', $config['display_errors']);
|
ini_set( 'display_errors', $config['display_errors']);
|
||||||
ini_set( 'error_reporting', $config['error_reporting']);
|
ini_set( 'error_reporting', $config['error_reporting']);
|
||||||
|
|||||||
@@ -616,9 +616,11 @@ table.dataTable thead .sorting:after {
|
|||||||
margin-top:10px;
|
margin-top:10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-red .panel-heading, .panel-low .panel-heading{
|
/*panel red for color must be white
|
||||||
|
* .panel-red .panel-heading, .panel-low .panel-heading{
|
||||||
color:rgba(0,0,0,0.4) !important;
|
color:rgba(0,0,0,0.4) !important;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
.panel-high .progress-bar{
|
.panel-high .progress-bar{
|
||||||
background: #fcb322;
|
background: #fcb322;
|
||||||
|
|||||||
@@ -303,6 +303,20 @@ session_start();
|
|||||||
//$e_all = $config['debug'] ? $e_all : $e_all & ~ E_NOTICE;
|
//$e_all = $config['debug'] ? $e_all : $e_all & ~ E_NOTICE;
|
||||||
//$e_all = E_ALL & ~ E_DEPRECATED & ~ E_STRICT & ~ E_NOTICE & ~E_WARNING;
|
//$e_all = E_ALL & ~ E_DEPRECATED & ~ E_STRICT & ~ E_NOTICE & ~E_WARNING;
|
||||||
|
|
||||||
|
//Call Gulliver Classes
|
||||||
|
Bootstrap::LoadThirdParty("smarty/libs", "Smarty.class");
|
||||||
|
|
||||||
|
//Loading the autoloader libraries feature
|
||||||
|
Bootstrap::registerSystemClasses();
|
||||||
|
|
||||||
|
G::LoadSystem('inputfilter');
|
||||||
|
$filter = new InputFilter();
|
||||||
|
$config['display_errors'] = $filter->validateInput($config['display_errors']);
|
||||||
|
$config['error_reporting'] = $filter->validateInput($config['error_reporting']);
|
||||||
|
$config['memory_limit'] = $filter->validateInput($config['memory_limit']);
|
||||||
|
$config['wsdl_cache'] = $filter->validateInput($config['wsdl_cache'],'int');
|
||||||
|
$config['time_zone'] = $filter->validateInput($config['time_zone']);
|
||||||
|
|
||||||
// Do not change any of these settings directly, use env.ini instead
|
// Do not change any of these settings directly, use env.ini instead
|
||||||
ini_set( 'display_errors', $config['display_errors']);
|
ini_set( 'display_errors', $config['display_errors']);
|
||||||
ini_set( 'error_reporting', $config['error_reporting']);
|
ini_set( 'error_reporting', $config['error_reporting']);
|
||||||
@@ -334,15 +348,7 @@ define( 'PATH_C', (rtrim( Bootstrap::sys_get_temp_dir(), PATH_SEP ) . PATH_SEP)
|
|||||||
define( 'PATH_LANGUAGECONT', PATH_HOME . 'engine/content/languages/' );
|
define( 'PATH_LANGUAGECONT', PATH_HOME . 'engine/content/languages/' );
|
||||||
}
|
}
|
||||||
|
|
||||||
//Call Gulliver Classes
|
|
||||||
Bootstrap::LoadThirdParty("smarty/libs", "Smarty.class");
|
|
||||||
|
|
||||||
//Loading the autoloader libraries feature
|
|
||||||
Bootstrap::registerSystemClasses();
|
|
||||||
|
|
||||||
//Load filter class
|
//Load filter class
|
||||||
G::LoadSystem('inputfilter');
|
|
||||||
$filter = new InputFilter();
|
|
||||||
$skinPathErrors = G::skinGetPathToSrcByVirtualUri("errors", $config);
|
$skinPathErrors = G::skinGetPathToSrcByVirtualUri("errors", $config);
|
||||||
$skinPathUpdate = G::skinGetPathToSrcByVirtualUri("update", $config);
|
$skinPathUpdate = G::skinGetPathToSrcByVirtualUri("update", $config);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user