Merge remote branch 'upstream/master'
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* class.htmlArea.php
|
||||
*
|
||||
* @package gulliver.system
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
@@ -25,8 +27,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package gulliver.system
|
||||
**/
|
||||
*
|
||||
*/
|
||||
|
||||
class XmlForm_Field_HTML extends XmlForm_Field_Textarea
|
||||
{
|
||||
@@ -51,7 +55,6 @@ class XmlForm_Field_HTML extends XmlForm_Field_Textarea
|
||||
}
|
||||
return $html;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* attachEvents function is putting its events
|
||||
*
|
||||
@@ -60,8 +63,10 @@ class XmlForm_Field_HTML extends XmlForm_Field_Textarea
|
||||
* @return string
|
||||
*
|
||||
*/
|
||||
function attachEvents($element) {
|
||||
function attachEvents ($element)
|
||||
{
|
||||
$html = 'var _editor_url = "";editor_generate("form[' . $this->name . ']");';
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* class.templatePower.php
|
||||
*
|
||||
* @package gulliver.system
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
@@ -54,8 +55,11 @@
|
||||
//
|
||||
// $Id: Version 3.0.2$
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @package gulliver.system
|
||||
*
|
||||
*/
|
||||
|
||||
define( "T_BYFILE", 0 );
|
||||
@@ -65,6 +69,7 @@ define("TP_ROOTBLOCK", '_ROOT');
|
||||
|
||||
/**
|
||||
* class TemplatePowerParser
|
||||
*
|
||||
* @package gulliver.system
|
||||
*
|
||||
*/
|
||||
@@ -90,9 +95,11 @@ class TemplatePowerParser
|
||||
function TemplatePowerParser ($tpl_file, $type)
|
||||
{
|
||||
$this->version = '3.0.2';
|
||||
$this->tpl_base = Array( $tpl_file, $type );
|
||||
$this->tpl_base = Array ($tpl_file,$type
|
||||
);
|
||||
$this->tpl_count = 0;
|
||||
$this->ignore_stack = Array( false );
|
||||
$this->ignore_stack = Array (false
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -109,6 +116,7 @@ class TemplatePowerParser
|
||||
|
||||
/**
|
||||
* TemplatePowerParser::__prepare()
|
||||
*
|
||||
* @access private
|
||||
* @return void
|
||||
*/
|
||||
@@ -151,12 +159,10 @@ class TemplatePowerParser
|
||||
$tplvar = 'tpl_rawContent' . $this->tpl_count;
|
||||
if ($type == T_BYVAR) {
|
||||
$this->{$tplvar}["content"] = preg_split( "/\n/", $tpl_file, - 1, PREG_SPLIT_DELIM_CAPTURE );
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
// Trigger the error in the local scope of the function
|
||||
// trigger_error ("Some error", E_USER_WARNING);
|
||||
$this->{$tplvar}["content"] = @file( $tpl_file ) or
|
||||
die( $this->__errorAlert('TemplatePower Error: Couldn\'t open [ '. $tpl_file .' ]!'));
|
||||
$this->{$tplvar}["content"] = @file( $tpl_file ) or die( $this->__errorAlert( 'TemplatePower Error: Couldn\'t open [ ' . $tpl_file . ' ]!' ) );
|
||||
}
|
||||
$this->{$tplvar}["size"] = sizeof( $this->{$tplvar}["content"] );
|
||||
$this->tpl_count ++;
|
||||
@@ -182,13 +188,11 @@ class TemplatePowerParser
|
||||
if ($ignreg[1] == 'START') {
|
||||
//$ignore = true;
|
||||
array_push( $this->ignore_stack, true );
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
//$ignore = false;
|
||||
array_pop( $this->ignore_stack );
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
if (! end( $this->ignore_stack )) {
|
||||
if (preg_match( '/<!--[ ]?(START|END|INCLUDE|INCLUDESCRIPT|REUSE) BLOCK : (.+)-->/', $this->{$tplvar}["content"][$index], $regs )) {
|
||||
//remove trailing and leading spaces
|
||||
@@ -199,13 +203,10 @@ class TemplatePowerParser
|
||||
if (isset( $this->tpl_include[$regs[2]] )) {
|
||||
$tpl_file = $this->tpl_include[$regs[2]][0];
|
||||
$type = $this->tpl_include[$regs[2]][1];
|
||||
}
|
||||
else
|
||||
if (file_exists( $regs[2] )){ //check if defined as constant in template
|
||||
} else if (file_exists( $regs[2] )) { //check if defined as constant in template
|
||||
$tpl_file = $regs[2];
|
||||
$type = T_BYFILE;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$include_defined = false;
|
||||
}
|
||||
if ($include_defined) {
|
||||
@@ -219,21 +220,16 @@ class TemplatePowerParser
|
||||
$coderow = $initdev["coderow"];
|
||||
$varrow = $initdev["varrow"];
|
||||
}
|
||||
}
|
||||
else
|
||||
if( $regs[1] == 'INCLUDESCRIPT' ){
|
||||
} else if ($regs[1] == 'INCLUDESCRIPT') {
|
||||
$include_defined = true;
|
||||
//check if the includescript file is assigned by the assignInclude function
|
||||
if (isset( $this->tpl_include[$regs[2]] )) {
|
||||
$include_file = $this->tpl_include[$regs[2]][0];
|
||||
$type = $this->tpl_include[$regs[2]][1];
|
||||
}
|
||||
else
|
||||
if (file_exists( $regs[2] )){ //check if defined as constant in template
|
||||
} else if (file_exists( $regs[2] )) { //check if defined as constant in template
|
||||
$include_file = $regs[2];
|
||||
$type = T_BYFILE;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$include_defined = false;
|
||||
}
|
||||
if ($include_defined) {
|
||||
@@ -243,17 +239,14 @@ class TemplatePowerParser
|
||||
$this->__errorAlert( 'TemplatePower Error: Couldn\'t include script [ ' . $include_file . ' ]!' );
|
||||
exit();
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
eval( "?>" . $include_file );
|
||||
}
|
||||
$this->defBlock[$blockname]["_C:$coderow"] = ob_get_contents();
|
||||
$coderow ++;
|
||||
ob_end_clean();
|
||||
}
|
||||
}
|
||||
else
|
||||
if( $regs[1] == 'REUSE' ){
|
||||
} else if ($regs[1] == 'REUSE') {
|
||||
//do match for 'AS'
|
||||
if (preg_match( '/(.+) AS (.+)/', $regs[2], $reuse_regs )) {
|
||||
$originalbname = trim( $reuse_regs[1] );
|
||||
@@ -267,22 +260,18 @@ class TemplatePowerParser
|
||||
//create index and parent info
|
||||
$this->index[$copybname] = 0;
|
||||
$this->parent[$copybname] = $blockname;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$this->__errorAlert( 'TemplatePower Error: Can\'t find block \'' . $originalbname . '\' to REUSE as \'' . $copybname . '\'' );
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
//so it isn't a correct REUSE tag, save as code
|
||||
$this->defBlock[$blockname]["_C:$coderow"] = $this->{$tplvar}["content"][$index];
|
||||
$coderow ++;
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
if ($regs[2] == $blockname) { //is it the end of a block
|
||||
break;
|
||||
}
|
||||
else{ //its the start of a block
|
||||
} else { //its the start of a block
|
||||
//make a child block and tell the parent that he has a child
|
||||
$this->defBlock[$regs[2]] = Array ();
|
||||
$this->defBlock[$blockname]["_B:" . $regs[2]] = '';
|
||||
@@ -299,8 +288,7 @@ class TemplatePowerParser
|
||||
$index = $initdev["index"];
|
||||
}
|
||||
}
|
||||
}
|
||||
else{ //is it code and/or var(s)
|
||||
} else { //is it code and/or var(s)
|
||||
//explode current template line on the curly bracket '{'
|
||||
$sstr = explode( '{', $this->{$tplvar}["content"][$index] );
|
||||
reset( $sstr );
|
||||
@@ -324,8 +312,7 @@ class TemplatePowerParser
|
||||
//so, it isn't a variable, save as code
|
||||
$this->defBlock[$blockname]["_C:$coderow"] = '{' . current( $sstr );
|
||||
$coderow ++;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
//save the variable
|
||||
$this->defBlock[$blockname]["_V:$varrow"] = $varname;
|
||||
$varrow ++;
|
||||
@@ -336,8 +323,7 @@ class TemplatePowerParser
|
||||
$coderow ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
//no end curly bracket '}' found
|
||||
//so, the curly bracket is part of the text. Save as code, with the '{'
|
||||
$this->defBlock[$blockname]["_C:$coderow"] = '{' . current( $sstr );
|
||||
@@ -345,8 +331,7 @@ class TemplatePowerParser
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$this->defBlock[$blockname]["_C:$coderow"] = $this->{$tplvar}["content"][$index];
|
||||
$coderow ++;
|
||||
}
|
||||
@@ -359,7 +344,6 @@ class TemplatePowerParser
|
||||
return $initdev;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* TemplatePowerParser::version()
|
||||
*
|
||||
@@ -382,12 +366,14 @@ class TemplatePowerParser
|
||||
*/
|
||||
function assignInclude ($iblockname, $value, $type = T_BYFILE)
|
||||
{
|
||||
$this->tpl_include["$iblockname"] = Array( $value, $type );
|
||||
$this->tpl_include["$iblockname"] = Array ($value,$type
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* class TemplatePower
|
||||
*
|
||||
* @package gulliver.system
|
||||
*/
|
||||
class TemplatePower extends TemplatePowerParser
|
||||
@@ -427,10 +413,8 @@ class TemplatePower extends TemplatePowerParser
|
||||
function __deSerializeTPL ($stpl_file, $type)
|
||||
{
|
||||
if ($type == T_BYFILE) {
|
||||
$serializedTPL = @file( $stpl_file ) or
|
||||
die( $this->__errorAlert('TemplatePower Error: Can\'t open [ '. $stpl_file .' ]!'));
|
||||
}
|
||||
else{
|
||||
$serializedTPL = @file( $stpl_file ) or die( $this->__errorAlert( 'TemplatePower Error: Can\'t open [ ' . $stpl_file . ' ]!' ) );
|
||||
} else {
|
||||
$serializedTPL = $stpl_file;
|
||||
}
|
||||
$serializedStuff = unserialize( join( '', $serializedTPL ) );
|
||||
@@ -447,7 +431,8 @@ class TemplatePower extends TemplatePowerParser
|
||||
*/
|
||||
function __makeContentRoot ()
|
||||
{
|
||||
$this->content[ TP_ROOTBLOCK ."_0" ][0] = Array( TP_ROOTBLOCK );
|
||||
$this->content[TP_ROOTBLOCK . "_0"][0] = Array (TP_ROOTBLOCK
|
||||
);
|
||||
$this->currentBlock = &$this->content[TP_ROOTBLOCK . "_0"][0];
|
||||
}
|
||||
|
||||
@@ -468,8 +453,7 @@ class TemplatePower extends TemplatePowerParser
|
||||
$lastitem > 1 ? $lastitem -- : $lastitem = 0;
|
||||
$block = &$this->content[$ind_blockname][$lastitem];
|
||||
$varname = $regs[1];
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$block = &$this->currentBlock;
|
||||
}
|
||||
$block["_V:$varname"] = $value;
|
||||
@@ -488,7 +472,6 @@ class TemplatePower extends TemplatePowerParser
|
||||
$this->globalvars[$varname] = $value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* TemplatePower::__outputContent()
|
||||
*
|
||||
@@ -504,42 +487,34 @@ class TemplatePower extends TemplatePowerParser
|
||||
for (reset( $this->defBlock[$defblockname] ); $k = key( $this->defBlock[$defblockname] ); next( $this->defBlock[$defblockname] )) {
|
||||
if ($k[1] == 'C') {
|
||||
print ($this->defBlock[$defblockname][$k]) ;
|
||||
}
|
||||
else
|
||||
if ($k[1] == 'V'){
|
||||
} else if ($k[1] == 'V') {
|
||||
$defValue = $this->defBlock[$defblockname][$k];
|
||||
if (! isset( $this->content[$blockname][$i]["_V:" . $defValue] )) {
|
||||
if (isset( $this->globalvars[$defValue] )) {
|
||||
$value = $this->globalvars[$defValue];
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
//Verify if $defValue is like
|
||||
// "xmlfile:ID_LABEL"
|
||||
//if it is load an xml label.
|
||||
//if not continues with non assigned value.
|
||||
if (preg_match( "/(.+):(.+)/", $defValue, $xmlreg )) {
|
||||
$value = G::LoadTranslation(/*$xmlreg[1],*/$xmlreg[2] );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if ($this->showUnAssigned) {
|
||||
//$value = '{'. $this->defBlock[ $defblockname ][$k] .'}';
|
||||
$value = '{' . $defValue . '}';
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$value = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$value = $this->content[$blockname][$i]["_V:" . $defValue];
|
||||
}
|
||||
if ($this->unhtmlentities)
|
||||
$value = G::unhtmlentities( $value );
|
||||
print ($value) ;
|
||||
}
|
||||
else
|
||||
if ($k[1] == 'B'){
|
||||
} else if ($k[1] == 'B') {
|
||||
if (isset( $this->content[$blockname][$i][$k] )) {
|
||||
$this->__outputContent( $this->content[$blockname][$i][$k] );
|
||||
}
|
||||
@@ -561,10 +536,11 @@ class TemplatePower extends TemplatePowerParser
|
||||
var_dump( $this->content );
|
||||
}
|
||||
|
||||
|
||||
/**********
|
||||
public members
|
||||
***********/
|
||||
/**
|
||||
* ********
|
||||
* public members
|
||||
* *********
|
||||
*/
|
||||
|
||||
/**
|
||||
* TemplatePower::serializedBase()
|
||||
@@ -633,7 +609,8 @@ class TemplatePower extends TemplatePowerParser
|
||||
}
|
||||
//now, make a copy of the block defenition
|
||||
$blocksize = sizeof( $this->content[$ind_blockname] );
|
||||
$this->content[ $ind_blockname ][ $blocksize ] = Array( $blockname );
|
||||
$this->content[$ind_blockname][$blocksize] = Array ($blockname
|
||||
);
|
||||
//link the current block to the block we just created
|
||||
$this->currentBlock = &$this->content[$ind_blockname][$blocksize];
|
||||
}
|
||||
@@ -653,8 +630,7 @@ class TemplatePower extends TemplatePowerParser
|
||||
foreach ($varname as $var => $value) {
|
||||
$this->__assignGlobal( $var, $value );
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$this->__assignGlobal( $varname, $value );
|
||||
}
|
||||
}
|
||||
@@ -673,8 +649,7 @@ class TemplatePower extends TemplatePowerParser
|
||||
foreach ($varname as $var => $value) {
|
||||
$this->__assign( $var, $value );
|
||||
}
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$this->__assign( $varname, $value );
|
||||
}
|
||||
}
|
||||
@@ -713,8 +688,7 @@ class TemplatePower extends TemplatePowerParser
|
||||
$lastitem > 1 ? $lastitem -- : $lastitem = 0;
|
||||
$block = &$this->content[$ind_blockname][$lastitem];
|
||||
$varname = $regs[1];
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$block = &$this->currentBlock;
|
||||
}
|
||||
return $block["_V:$varname"];
|
||||
@@ -730,8 +704,7 @@ class TemplatePower extends TemplatePowerParser
|
||||
{
|
||||
if ($this->prepared) {
|
||||
$this->__outputContent( TP_ROOTBLOCK . '_0' );
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$this->__errorAlert( 'TemplatePower Error: Template isn\'t prepared!' );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,18 +11,15 @@
|
||||
|
||||
//check the language, if no info in config about language, the default is 'en'
|
||||
G::loadClass( 'configuration' );
|
||||
$oConf = new Configurations;
|
||||
$oConf = new Configurations();
|
||||
$oConf->loadConfig( $x, 'APP_CACHE_VIEW_ENGINE', '', '', '', '' );
|
||||
$appCacheViewEngine = $oConf->aConfig;
|
||||
|
||||
if (isset( $appCacheViewEngine['LANG'] )) {
|
||||
$lang = $appCacheViewEngine['LANG'];
|
||||
$status = strtoupper( $appCacheViewEngine['STATUS'] );
|
||||
}
|
||||
else {
|
||||
$confParams = Array(
|
||||
'LANG' => 'en',
|
||||
'STATUS'=> ''
|
||||
} else {
|
||||
$confParams = Array ('LANG' => 'en','STATUS' => ''
|
||||
);
|
||||
$oConf->aConfig = $confParams;
|
||||
$oConf->saveConfig( 'APP_CACHE_VIEW_ENGINE', '', '', '' );
|
||||
@@ -39,20 +36,23 @@
|
||||
$appCache->setPathToAppCacheFiles( PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP );
|
||||
|
||||
$res = $appCache->getMySQLVersion();
|
||||
$result->info[] = array ('name' => 'MySQL Version', 'value'=> $res );
|
||||
$result->info[] = array ('name' => 'MySQL Version','value' => $res
|
||||
);
|
||||
|
||||
$res = $appCache->checkGrantsForUser( false );
|
||||
$currentUser = $res['user'];
|
||||
$currentUserIsSuper = $res['super'];
|
||||
$result->info[] = array ('name' => 'Current User', 'value'=> $currentUser );
|
||||
$result->info[] = array ('name' => 'Current User has SUPER privilege', 'value'=> $currentUserIsSuper );
|
||||
$result->info[] = array ('name' => 'Current User','value' => $currentUser
|
||||
);
|
||||
$result->info[] = array ('name' => 'Current User has SUPER privilege','value' => $currentUserIsSuper
|
||||
);
|
||||
|
||||
try {
|
||||
PROPEL::Init( PATH_METHODS . 'dbConnections/rootDbConnections.php' );
|
||||
$con = Propel::getConnection( "root" );
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
$result->info[] = array ('name' => 'Checking MySql Root user', 'value'=> 'failed' );
|
||||
} catch (Exception $e) {
|
||||
$result->info[] = array ('name' => 'Checking MySql Root user','value' => 'failed'
|
||||
);
|
||||
$result->error = true;
|
||||
$result->errorMsg = $e->getMessage();
|
||||
}
|
||||
@@ -61,18 +61,20 @@
|
||||
if (! $currentUserIsSuper && ! $result->error) {
|
||||
$res = $appCache->checkGrantsForUser( true );
|
||||
if (! isset( $res['error'] )) {
|
||||
$result->info[] = array ('name' => 'Root User', 'value'=> $res['user'] );
|
||||
$result->info[] = array ('name' => 'Root User has SUPER privilege', 'value'=> $res['super'] );
|
||||
}
|
||||
else {
|
||||
$result->info[] = array ('name' => 'Error', 'value'=> $res['msg'] );
|
||||
$result->info[] = array ('name' => 'Root User','value' => $res['user']
|
||||
);
|
||||
$result->info[] = array ('name' => 'Root User has SUPER privilege','value' => $res['super']
|
||||
);
|
||||
} else {
|
||||
$result->info[] = array ('name' => 'Error','value' => $res['msg']
|
||||
);
|
||||
}
|
||||
|
||||
$res = $appCache->setSuperForUser( $currentUser );
|
||||
if (! isset( $res['error'] )) {
|
||||
$result->info[] = array ('name' => 'Setting SUPER privilege', 'value'=> 'Successfully' );
|
||||
}
|
||||
else {
|
||||
$result->info[] = array ('name' => 'Setting SUPER privilege','value' => 'Successfully'
|
||||
);
|
||||
} else {
|
||||
$result->error = true;
|
||||
$result->errorMsg = $res['msg'];
|
||||
}
|
||||
@@ -82,37 +84,44 @@
|
||||
|
||||
//now check if table APPCACHEVIEW exists, and it have correct number of fields, etc.
|
||||
$res = $appCache->checkAppCacheView();
|
||||
$result->info[] = array ('name' => 'Table APP_CACHE_VIEW', 'value'=> $res['found']);
|
||||
$result->info[] = array ('name' => 'Table APP_CACHE_VIEW','value' => $res['found']
|
||||
);
|
||||
|
||||
$result->info[] = array ('name' => 'Rows in APP_CACHE_VIEW', 'value'=> $res['count']);
|
||||
$result->info[] = array ('name' => 'Rows in APP_CACHE_VIEW','value' => $res['count']
|
||||
);
|
||||
|
||||
//now check if we have the triggers installed
|
||||
//APP_DELEGATION INSERT
|
||||
$res = $appCache->triggerAppDelegationInsert( $lang, false );
|
||||
$result->info[] = array ('name' => 'Trigger APP_DELEGATION INSERT', 'value'=> $res);
|
||||
$result->info[] = array ('name' => 'Trigger APP_DELEGATION INSERT','value' => $res
|
||||
);
|
||||
|
||||
//APP_DELEGATION Update
|
||||
$res = $appCache->triggerAppDelegationUpdate( $lang, false );
|
||||
$result->info[] = array ('name' => 'Trigger APP_DELEGATION UPDATE', 'value'=> $res);
|
||||
$result->info[] = array ('name' => 'Trigger APP_DELEGATION UPDATE','value' => $res
|
||||
);
|
||||
|
||||
//APPLICATION UPDATE
|
||||
$res = $appCache->triggerApplicationUpdate( $lang, false );
|
||||
$result->info[] = array ('name' => 'Trigger APPLICATION UPDATE', 'value'=> $res);
|
||||
$result->info[] = array ('name' => 'Trigger APPLICATION UPDATE','value' => $res
|
||||
);
|
||||
|
||||
//APPLICATION DELETE
|
||||
$res = $appCache->triggerApplicationDelete( $lang, false );
|
||||
$result->info[] = array ('name' => 'Trigger APPLICATION DELETE', 'value'=> $res);
|
||||
$result->info[] = array ('name' => 'Trigger APPLICATION DELETE','value' => $res
|
||||
);
|
||||
|
||||
//CONTENT UPDATE
|
||||
$res = $appCache->triggerContentUpdate( $lang, false );
|
||||
$result->info[] = array("name" => "Trigger CONTENT UPDATE", "value" => $res);
|
||||
$result->info[] = array ("name" => "Trigger CONTENT UPDATE","value" => $res
|
||||
);
|
||||
|
||||
//show language
|
||||
$result->info[] = array ('name' => 'Language', 'value'=> $lang );
|
||||
$result->info[] = array ('name' => 'Language','value' => $lang
|
||||
);
|
||||
|
||||
echo G::json_encode( $result );
|
||||
break;
|
||||
|
||||
case 'getLangList':
|
||||
|
||||
$Translations = G::getModel( 'Translation' );
|
||||
@@ -121,16 +130,16 @@
|
||||
|
||||
$langs = $Translations->getTranslationEnvironments();
|
||||
foreach ($langs as $lang) {
|
||||
$result->rows[] = Array('LAN_ID'=>$lang['LOCALE'], 'LAN_NAME'=>$lang['LANGUAGE']);
|
||||
$result->rows[] = Array ('LAN_ID' => $lang['LOCALE'],'LAN_NAME' => $lang['LANGUAGE']
|
||||
);
|
||||
}
|
||||
|
||||
print (G::json_encode( $result )) ;
|
||||
break;
|
||||
|
||||
case 'build':
|
||||
$sqlToExe = Array ();
|
||||
G::LoadClass( 'configuration' );
|
||||
$conf = new Configurations;
|
||||
$conf = new Configurations();
|
||||
|
||||
//DEPRECATED $lang = $_POST['lang'];
|
||||
//there is no more support for other languages that english
|
||||
@@ -145,30 +154,34 @@
|
||||
$res = $appCache->triggerAppDelegationInsert( $lang, true );
|
||||
//$result->info[] = array ('name' => 'Trigger APP_DELEGATION INSERT', 'value'=> $res);
|
||||
|
||||
|
||||
//APP_DELEGATION Update
|
||||
$res = $appCache->triggerAppDelegationUpdate( $lang, true );
|
||||
//$result->info[] = array ('name' => 'Trigger APP_DELEGATION UPDATE', 'value'=> $res);
|
||||
|
||||
|
||||
//APPLICATION UPDATE
|
||||
$res = $appCache->triggerApplicationUpdate( $lang, true );
|
||||
//$result->info[] = array ('name' => 'Trigger APPLICATION UPDATE', 'value'=> $res);
|
||||
|
||||
|
||||
//APPLICATION DELETE
|
||||
$res = $appCache->triggerApplicationDelete( $lang, true );
|
||||
//$result->info[] = array ('name' => 'Trigger APPLICATION DELETE', 'value'=> $res);
|
||||
|
||||
|
||||
//CONTENT UPDATE
|
||||
$res = $appCache->triggerContentUpdate( $lang, true );
|
||||
//$result->info[] = array("name" => "Trigger CONTENT UPDATE", "value" => $res);
|
||||
|
||||
|
||||
//build using the method in AppCacheView Class
|
||||
$res = $appCache->fillAppCacheView( $lang );
|
||||
//$result->info[] = array ('name' => 'build APP_CACHE_VIEW', 'value'=> $res);
|
||||
|
||||
|
||||
//set status in config table
|
||||
$confParams = Array(
|
||||
'LANG' => $lang,
|
||||
'STATUS'=> 'active'
|
||||
$confParams = Array ('LANG' => $lang,'STATUS' => 'active'
|
||||
);
|
||||
$conf->aConfig = $confParams;
|
||||
$conf->saveConfig( 'APP_CACHE_VIEW_ENGINE', '', '', '' );
|
||||
@@ -179,11 +192,8 @@
|
||||
|
||||
echo G::json_encode( $result );
|
||||
|
||||
}
|
||||
catch (Exception $e) {
|
||||
$confParams = Array(
|
||||
'lang'=>$lang,
|
||||
'status'=> 'failed'
|
||||
} catch (Exception $e) {
|
||||
$confParams = Array ('lang' => $lang,'status' => 'failed'
|
||||
);
|
||||
$appCacheViewEngine = $oServerConf->setProperty( 'APP_CACHE_VIEW_ENGINE', $confParams );
|
||||
|
||||
@@ -216,4 +226,3 @@
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,36 +2,38 @@
|
||||
// header('Pragma: no-cache');
|
||||
// header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
//$oHeadPublisher->setExtSkin( 'xtheme-blue');
|
||||
|
||||
|
||||
$oHeadPublisher->addExtJsScript( 'setup/appCacheViewConf', false ); //adding a javascript file .js
|
||||
$oHeadPublisher->addContent( 'setup/appCacheViewConf' ); //adding a html file .html.
|
||||
|
||||
|
||||
require_once ('classes/model/AppCacheView.php');
|
||||
G::loadClass( 'configuration' );
|
||||
$oConf = new Configurations;
|
||||
$oConf = new Configurations();
|
||||
$oConf->loadConfig( $x, 'APP_CACHE_VIEW_ENGINE', '', '', '', '' );
|
||||
|
||||
//first check about APP_CACHE_VIEW is enabled or not,
|
||||
if (isset( $oConf->aConfig['LANG'] ) && isset( $oConf->aConfig['STATUS'] ) && $oConf->aConfig['STATUS'] == 'active') {
|
||||
$appCacheViewEnabled = true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$appCacheViewEnabled = false;
|
||||
}
|
||||
$lang = isset( $oConf->aConfig['LANG'] ) ? $oConf->aConfig['LANG'] : 'en';
|
||||
|
||||
//$oHeadPublisher->assign('appCacheViewEnabled', $appCacheViewEnabled);
|
||||
|
||||
$labels = G::getTranslations(Array(
|
||||
'ID_PROCESSING', 'ID_CACHE_LANGUAGE', 'ID_CACHE_HOST', 'ID_CACHE_USER', 'ID_CACHE_PASSWORD',
|
||||
'ID_CACHE_TITLE_INFO', 'ID_CACHE_SUBTITLE_REBUILD', 'ID_CACHE_BTN_BUILD',
|
||||
'ID_CACHE_BUILDING', 'ID_CACHE_SUBTITLE_SETUP_DB', 'ID_CACHE_BTN_SETUP_PASSWRD', 'ID_CACHE_SUBTITLE_SETUP_SESSION', 'ID_CACHE_BTN_SETUP_SESSION'
|
||||
|
||||
$labels = G::getTranslations( Array ('ID_PROCESSING','ID_CACHE_LANGUAGE','ID_CACHE_HOST','ID_CACHE_USER','ID_CACHE_PASSWORD','ID_CACHE_TITLE_INFO','ID_CACHE_SUBTITLE_REBUILD','ID_CACHE_BTN_BUILD','ID_CACHE_BUILDING','ID_CACHE_SUBTITLE_SETUP_DB','ID_CACHE_BTN_SETUP_PASSWRD','ID_CACHE_SUBTITLE_SETUP_SESSION','ID_CACHE_BTN_SETUP_SESSION'
|
||||
) );
|
||||
// $oHeadPublisher->assign('TRANSLATIONS', $labels);
|
||||
// $TRANSLATIONS->ID_PROCESSING = G::LoadTranslation('ID_PROCESSING');
|
||||
// $oHeadPublisher->assign( 'TRANSLATIONS', $TRANSLATIONS); //translations
|
||||
$oHeadPublisher->assign( 'currentLang', $lang ); //current language
|
||||
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
$G_ENABLE_BLANK_SKIN = true;
|
||||
|
||||
$dbc = new DBConnection;
|
||||
$dbc = new DBConnection();
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( "content", "setup/company_template" );
|
||||
G::RenderPage( 'publish' );
|
||||
?>company logo
|
||||
@@ -39,7 +39,10 @@ function myOnLoad()
|
||||
{
|
||||
<?php if ($var == 'change') { ?>
|
||||
location.reload();
|
||||
<?php } ?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -3,16 +3,14 @@
|
||||
|
||||
$CalendarUid = $_GET['id'];
|
||||
|
||||
|
||||
G::LoadClass( 'calendar' );
|
||||
$calendarObj = new calendar();
|
||||
$calendarObj->deleteCalendar( $CalendarUid );
|
||||
|
||||
G::Header( 'location: calendarList' );
|
||||
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
$G_PUBLISH = new Publisher;
|
||||
} catch (Exception $e) {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
|
||||
@@ -20,12 +20,11 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
//G::header('location: ../login/login');
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
@@ -57,4 +56,4 @@ if ((isset ( $_GET ['cp'] )) && ($_GET ['cp'] == 1)) { // Copy Calendar
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/calendarEdit', '', $fields, 'calendarSave' );
|
||||
G::RenderPage( 'publishBlank', 'blank' );
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,13 +20,12 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
//G::header('location: ../login/login');
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
@@ -34,7 +33,7 @@ $G_SUB_MENU = 'setup';
|
||||
$G_ID_MENU_SELECTED = 'SETUP';
|
||||
$G_ID_SUB_MENU_SELECTED = 'CALENDAR';
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'configuration' );
|
||||
$c = new Configurations();
|
||||
@@ -48,4 +47,3 @@ $oHeadPublisher->assign('CONFIG', $Config);
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
?>
|
||||
@@ -20,19 +20,17 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
||||
{
|
||||
switch ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' )) {
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -45,10 +43,10 @@ switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
||||
|
||||
G::Header( 'location: calendarList' );
|
||||
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
$G_PUBLISH = new Publisher;
|
||||
} catch (Exception $e) {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
}
|
||||
|
||||
|
||||
@@ -20,21 +20,19 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
// validating the fields of the Calendar Edit form.
|
||||
// checking permissions
|
||||
switch ($RBAC->userCanAccess('PM_SETUP_ADVANCE'))
|
||||
{
|
||||
switch ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' )) {
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
}
|
||||
// validating the fields
|
||||
|
||||
@@ -20,17 +20,15 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
//G::header('location: ../login/login');
|
||||
die;
|
||||
die();
|
||||
}
|
||||
$_POST['action'] = $_REQUEST['action'];
|
||||
|
||||
switch ($_POST['action'])
|
||||
{
|
||||
switch ($_POST['action']) {
|
||||
case 'calendarList':
|
||||
G::LoadClass( 'configuration' );
|
||||
G::LoadClass( 'calendar' );
|
||||
@@ -99,4 +97,4 @@ switch ($_POST['action'])
|
||||
echo '{success: true}';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,10 +20,11 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'setup/clearCompiled', true ); //adding a javascript file .js
|
||||
|
||||
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -18,13 +18,12 @@ try {
|
||||
}
|
||||
|
||||
$response->success = true;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
$response->success = false;
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
} catch (Exception $e) {
|
||||
$response->success = false;
|
||||
$response->message = $e->getMessage();
|
||||
}
|
||||
echo G::json_encode( $response );
|
||||
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
$G_ENABLE_BLANK_SKIN = true;
|
||||
|
||||
$dbc = new DBConnection;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$dbc = new DBConnection();
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( "xmlform", "pagedTable", "setup/connection_db", "", "", "" );
|
||||
G::RenderPage( 'publish' );
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
$G_ENABLE_BLANK_SKIN = true;
|
||||
|
||||
$dbc = new DBConnection;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$dbc = new DBConnection();
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( "xmlform", "pagedTable", "setup/connection_ws", "", "", "" );
|
||||
G::RenderPage( 'publish' );
|
||||
?>
|
||||
|
||||
|
||||
@@ -5,10 +5,6 @@ G::LoadClass("configuration");
|
||||
|
||||
global $RBAC;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if ($RBAC->userCanAccess( "PM_SETUP_ADVANCE" ) != 1) {
|
||||
G::SendTemporalMessage( "ID_USER_HAVENT_RIGHTS_PAGE", "error", "labels" );
|
||||
exit( 0 );
|
||||
@@ -52,7 +48,6 @@ $cronInfo["fileLogName"] = "cron.log";
|
||||
$cronInfo["fileLogSize"] = $fileLogSize;
|
||||
$cronInfo["fileLogPath"] = $fileLog;
|
||||
|
||||
|
||||
//Workspaces
|
||||
$workspaces = System::listWorkspaces();
|
||||
$arrayAux = array ();
|
||||
@@ -66,16 +61,18 @@ sort($arrayAux);
|
||||
$arrayWorkspace = array ();
|
||||
|
||||
foreach ($arrayAux as $index => $value) {
|
||||
$arrayWorkspace[] = array($value, $value);
|
||||
$arrayWorkspace[] = array ($value,$value
|
||||
);
|
||||
}
|
||||
|
||||
array_unshift($arrayWorkspace, array("ALL", G::LoadTranslation("ID_ALL_WORKSPACES")));
|
||||
array_unshift( $arrayWorkspace, array ("ALL",G::LoadTranslation( "ID_ALL_WORKSPACES" )
|
||||
) );
|
||||
|
||||
//Status
|
||||
$arrayStatus = array(
|
||||
array("ALL", G::LoadTranslation("ID_ALL")),
|
||||
array("COMPLETED", G::LoadTranslation("COMPLETED")),
|
||||
array("FAILED", G::LoadTranslation("ID_FAILED"))
|
||||
$arrayStatus = array (array ("ALL",G::LoadTranslation( "ID_ALL" )
|
||||
),array ("COMPLETED",G::LoadTranslation( "COMPLETED" )
|
||||
),array ("FAILED",G::LoadTranslation( "ID_FAILED" )
|
||||
)
|
||||
);
|
||||
|
||||
$oHeadPublisher = &headPublisher::getSingleton();
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
<?php
|
||||
|
||||
function mktimeDate ($date)
|
||||
{
|
||||
$arrayAux = getdate( strtotime( $date ) );
|
||||
|
||||
$mktDate = mktime(
|
||||
$arrayAux["hours"],
|
||||
$arrayAux["minutes"],
|
||||
$arrayAux["seconds"],
|
||||
$arrayAux["mon"],
|
||||
$arrayAux["mday"],
|
||||
$arrayAux["year"]
|
||||
);
|
||||
$mktDate = mktime( $arrayAux["hours"], $arrayAux["minutes"], $arrayAux["seconds"], $arrayAux["mon"], $arrayAux["mday"], $arrayAux["year"] );
|
||||
|
||||
return $mktDate;
|
||||
}
|
||||
@@ -72,12 +66,7 @@ function cronArraySet($str, $filter)
|
||||
$arrayData = array ();
|
||||
|
||||
if ($sw == 1) {
|
||||
$arrayData = array(
|
||||
"DATE" => $date,
|
||||
"WORKSPACE" => $workspace,
|
||||
"ACTION" => $action,
|
||||
"STATUS" => $status,
|
||||
"DESCRIPTION" => $description
|
||||
$arrayData = array ("DATE" => $date,"WORKSPACE" => $workspace,"ACTION" => $action,"STATUS" => $status,"DESCRIPTION" => $description
|
||||
);
|
||||
}
|
||||
|
||||
@@ -154,13 +143,10 @@ function cronDataGet($filter, $r, $i)
|
||||
$arrayAux = array_pop( $arrayData );
|
||||
}
|
||||
|
||||
return array($numRec, $arrayData);
|
||||
return array ($numRec,$arrayData
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$option = (isset( $_REQUEST["option"] )) ? $_REQUEST["option"] : null;
|
||||
|
||||
$response = array ();
|
||||
@@ -173,11 +159,7 @@ switch ($option) {
|
||||
$dateFrom = $_REQUEST["dateFrom"];
|
||||
$dateTo = $_REQUEST["dateTo"];
|
||||
|
||||
$arrayFilter = array(
|
||||
"workspace" => $workspace,
|
||||
"status" => $status,
|
||||
"dateFrom" => str_replace("T00:00:00", null, $dateFrom),
|
||||
"dateTo" => str_replace("T00:00:00", null, $dateTo)
|
||||
$arrayFilter = array ("workspace" => $workspace,"status" => $status,"dateFrom" => str_replace( "T00:00:00", null, $dateFrom ),"dateTo" => str_replace( "T00:00:00", null, $dateTo )
|
||||
);
|
||||
|
||||
$limit = isset( $_REQUEST["limit"] ) ? $_REQUEST["limit"] : $pageSize;
|
||||
@@ -185,9 +167,9 @@ switch ($option) {
|
||||
|
||||
list ($numRec, $data) = cronDataGet( $arrayFilter, $limit, $start );
|
||||
|
||||
$response = array("success" => true, "resultTotal" => $numRec, "resultRoot" => $data);
|
||||
$response = array ("success" => true,"resultTotal" => $numRec,"resultRoot" => $data
|
||||
);
|
||||
break;
|
||||
|
||||
case "EMPTY":
|
||||
$status = 1;
|
||||
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
$G_ENABLE_BLANK_SKIN = true;
|
||||
|
||||
$dbc = new DBConnection;
|
||||
$dbc = new DBConnection();
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'table', 'paged-table2', 'setup/Custom_Functions', '', '', '' );
|
||||
G::RenderPage( 'publish-treeview' );
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
||||
if (($RBAC_Response = $RBAC->userCanAccess( "PM_SETUP" )) != 1)
|
||||
return $RBAC_Response;
|
||||
$G_ENABLE_BLANK_SKIN = true;
|
||||
|
||||
$dbc = new DBConnection;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$dbc = new DBConnection();
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
G::LoadClass( 'lexico' );
|
||||
$lex = new Lexico( $dbc );
|
||||
@@ -37,4 +37,3 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
|
||||
|
||||
G::RenderPage( 'publish-treeview' );
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
function getAllFiles($directory, $recursive = true ) {
|
||||
|
||||
function getAllFiles ($directory, $recursive = true)
|
||||
{
|
||||
$result = array ();
|
||||
$handle = opendir( $directory );
|
||||
while ($datei = readdir($handle))
|
||||
{
|
||||
if (($datei != '.') && ($datei != '..'))
|
||||
{
|
||||
while ($datei = readdir( $handle )) {
|
||||
if (($datei != '.') && ($datei != '..')) {
|
||||
$file = $directory . $datei;
|
||||
if (is_dir( $file )) {
|
||||
if ($recursive) {
|
||||
@@ -20,7 +20,8 @@ function getAllFiles($directory, $recursive = true ) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getFilesTimestamp($directory, $recursive = true) {
|
||||
function getFilesTimestamp ($directory, $recursive = true)
|
||||
{
|
||||
$allFiles = getAllFiles( $directory, $recursive );
|
||||
$fileArray = array ();
|
||||
foreach ($allFiles as $val) {
|
||||
@@ -52,4 +53,4 @@ if ($count>0) {
|
||||
}
|
||||
|
||||
echo $response['message'];
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,14 +20,12 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_SUB_MENU = 'setup';
|
||||
$G_ID_MENU_SELECTED = 'SETUP';
|
||||
$G_ID_SUB_MENU_SELECTED = 'MAILSYSTEM';
|
||||
|
||||
|
||||
G::LoadClass( 'package' );
|
||||
G::LoadClass( 'smtp' );
|
||||
G::LoadClass( 'spool' );
|
||||
@@ -37,7 +35,7 @@ $G_ID_SUB_MENU_SELECTED = 'MAILSYSTEM';
|
||||
|
||||
$Fields['MESSAGE'] = 'Hello world, this is my first email ... ';
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $Fields, '' );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
|
||||
@@ -12,14 +12,12 @@
|
||||
* @category web_mail
|
||||
* @subpackage spool
|
||||
* @filesource
|
||||
* @version
|
||||
*
|
||||
* @file tom_spool.php
|
||||
* @version @file tom_spool.php
|
||||
*
|
||||
*/
|
||||
|
||||
if( isset ( $_POST['form']) )
|
||||
{
|
||||
if (isset( $_POST['form'] )) {
|
||||
$frm = "{$_POST['form']}";
|
||||
|
||||
G::LoadClass( 'insert' );
|
||||
@@ -40,7 +38,8 @@
|
||||
$db_spool['app_msg_template'] = "/path/to/template";
|
||||
$db_spool['app_msg_status'] = "pending";
|
||||
|
||||
$db_spool['app_msg_attach'] = serialize(array('attachment_1','attachment_2'));
|
||||
$db_spool['app_msg_attach'] = serialize( array ('attachment_1','attachment_2'
|
||||
) );
|
||||
|
||||
/*
|
||||
if(isset($frm['attachments']) && count($frm['attachments']) >0 )
|
||||
@@ -48,9 +47,7 @@
|
||||
foreach($frm['attachments'] as $attchment)
|
||||
{
|
||||
$db_spool['app_msg_attach'][] = "$attchment";
|
||||
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
$insert = new insert( $db_spool );
|
||||
@@ -60,9 +57,7 @@
|
||||
}
|
||||
|
||||
$Fields['MESSAGE'] = $status;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $Fields, 'emailSystemSpool' );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -20,20 +20,18 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $RBAC;
|
||||
switch ($RBAC->userCanAccess('PM_FACTORY'))
|
||||
{
|
||||
switch ($RBAC->userCanAccess( 'PM_FACTORY' )) {
|
||||
case - 2:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
case - 1:
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -49,7 +47,7 @@ $Fields['from_email'] = 'ian@colosa.com';
|
||||
$Fields['subject'] = 'Test email';
|
||||
$Fields['body'] = 'Hello world, this is my first email ... ';
|
||||
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/emailSetupTest', '', $Fields, 'emailSystemSpool' );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
|
||||
@@ -20,14 +20,13 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP' ) != 1 && $RBAC->userCanAccess( 'PM_FACTORY' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
//G::header('location: ../login/login');
|
||||
die;
|
||||
die();
|
||||
}
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
@@ -46,36 +45,40 @@ $oCriteria->add(ConfigurationPeer::USR_UID, '');
|
||||
$oCriteria->add( ConfigurationPeer::APP_UID, '' );
|
||||
|
||||
if (ConfigurationPeer::doCount( $oCriteria ) == 0) {
|
||||
$oConfiguration->create(array('CFG_UID' => 'Emails', 'OBJ_UID' => '', 'CFG_VALUE' => '', 'PRO_UID' => '', 'USR_UID' => '', 'APP_UID' => '', 'MESS_RAUTH' => ''));
|
||||
$oConfiguration->create( array ('CFG_UID' => 'Emails','OBJ_UID' => '','CFG_VALUE' => '','PRO_UID' => '','USR_UID' => '','APP_UID' => '','MESS_RAUTH' => ''
|
||||
) );
|
||||
$aFields = array ();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$aFields = $oConfiguration->load( 'Emails', '', '', '', '' );
|
||||
if (trim( $aFields['CFG_VALUE'] ) != '') {
|
||||
$aFields = unserialize( $aFields['CFG_VALUE'] );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$aFields = array ();
|
||||
}
|
||||
}
|
||||
|
||||
$aFields['SMTPSecure'] = (isset( $aFields['SMTPSecure'] ) && $aFields['SMTPSecure'] != '') ? $aFields['SMTPSecure'] : 'none';
|
||||
|
||||
$rows[] = array ( 'uid' => 'char', 'name' => 'char', 'age' => 'integer', 'balance' => 'float' );
|
||||
$rows[] = array ( 'uid' => 'PHPMAILER', 'name' => 'SMTP (PHPMailer)' );
|
||||
$rows[] = array ('uid' => 'char','name' => 'char','age' => 'integer','balance' => 'float'
|
||||
);
|
||||
$rows[] = array ('uid' => 'PHPMAILER','name' => 'SMTP (PHPMailer)'
|
||||
);
|
||||
// ending OpenMail support
|
||||
// $rows[] = array ( 'uid' => 'OPENMAIL', 'name' => 'SMTP (OpenMail)' );
|
||||
$rows[] = array ( 'uid' => 'MAIL', 'name' => 'Mail (PHP)' );
|
||||
$rows[] = array ('uid' => 'MAIL','name' => 'Mail (PHP)'
|
||||
);
|
||||
|
||||
$_DBArray['mails'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
|
||||
$trn = G::getTranslations(Array('ID_SUCESS', 'ID_FAIL', ''));
|
||||
$trn = G::getTranslations( Array ('ID_SUCESS','ID_FAIL',''
|
||||
) );
|
||||
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
$oHeadPublisher->addScriptCode( 'var TRANSLATIONS=' . G::json_encode( $trn ) . ';' );
|
||||
$oHeadPublisher->addScriptFile( '/jscore/setup/emails.js' );
|
||||
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/emails', '', $aFields, 'emails_Save' );
|
||||
G::RenderPage( 'publishBlank', 'blank' );
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
global $RBAC;
|
||||
@@ -30,11 +29,10 @@ $request = (isset($_POST['action']))?$_POST['action']:$_POST['request'];
|
||||
|
||||
switch ($request) {
|
||||
case 'init':
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'view', 'setup/mailConnectiontest' );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
break;
|
||||
|
||||
case 'mailTestMail_Show':
|
||||
define( "SUCCESSFUL", 'SUCCESSFUL' );
|
||||
define( "FAILED", 'FAILED' );
|
||||
@@ -56,9 +54,7 @@ switch ($request) {
|
||||
print (FAILED . ',' . $resp->msg) ;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'testConnection':
|
||||
|
||||
G::LoadClass( 'net' );
|
||||
G::LoadThirdParty( 'phpmailer', 'class.smtp' );
|
||||
|
||||
@@ -92,7 +88,7 @@ switch ($request) {
|
||||
$timeout = 10;
|
||||
|
||||
$Server = new NET( $srv );
|
||||
$smtp = new SMTP;
|
||||
$smtp = new SMTP();
|
||||
|
||||
switch ($step) {
|
||||
case 1:
|
||||
@@ -102,7 +98,6 @@ switch ($request) {
|
||||
print (FAILED . ',' . $Server->error) ;
|
||||
}
|
||||
break;
|
||||
|
||||
case 2:
|
||||
if ($port == 0) {
|
||||
$port = $smtp->SMTP_PORT;
|
||||
@@ -114,7 +109,6 @@ switch ($request) {
|
||||
print (FAILED . ',' . $Server->error) ;
|
||||
}
|
||||
break;
|
||||
|
||||
#try to connect to host
|
||||
case 3:
|
||||
$hostinfo = array ();
|
||||
@@ -135,11 +129,8 @@ switch ($request) {
|
||||
} else {
|
||||
print (FAILED . ',' . $smtp->error['error']) ;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
#try login to host
|
||||
|
||||
case 4:
|
||||
if ($auth_required == 'yes') {
|
||||
try {
|
||||
@@ -186,7 +177,6 @@ switch ($request) {
|
||||
print (SUCCESSFUL . ', No authentication required!') ;
|
||||
}
|
||||
break;
|
||||
|
||||
case 5:
|
||||
if ($send_test_mail == 'yes') {
|
||||
try {
|
||||
@@ -220,14 +210,14 @@ switch ($request) {
|
||||
print ('jump this step') ;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
print ('test finished!') ;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
function sendTestMail() {
|
||||
function sendTestMail ()
|
||||
{
|
||||
G::LoadClass( "system" );
|
||||
$sFrom = ($_POST['FROM_NAME'] != '' ? $_POST['FROM_NAME'] . ' ' : '') . '<' . $_POST['FROM_EMAIL'] . '>';
|
||||
$sSubject = G::LoadTranslation( 'ID_MESS_TEST_SUBJECT' );
|
||||
@@ -270,31 +260,10 @@ function sendTestMail() {
|
||||
}
|
||||
$_POST['MESS_PASSWORD'] = $passwd;
|
||||
|
||||
$oSpool->setConfig( array(
|
||||
'MESS_ENGINE' => $_POST['MESS_ENGINE'],
|
||||
'MESS_SERVER' => $_POST['MESS_SERVER'],
|
||||
'MESS_PORT' => $_POST['MESS_PORT'],
|
||||
'MESS_ACCOUNT' => $_POST['MESS_ACCOUNT'],
|
||||
'MESS_PASSWORD' => $_POST['MESS_PASSWORD'],
|
||||
'SMTPAuth' => $_POST['SMTPAuth'],
|
||||
'SMTPSecure' => isset($_POST['SMTPSecure'])?$_POST['SMTPSecure']:'none'
|
||||
$oSpool->setConfig( array ('MESS_ENGINE' => $_POST['MESS_ENGINE'],'MESS_SERVER' => $_POST['MESS_SERVER'],'MESS_PORT' => $_POST['MESS_PORT'],'MESS_ACCOUNT' => $_POST['MESS_ACCOUNT'],'MESS_PASSWORD' => $_POST['MESS_PASSWORD'],'SMTPAuth' => $_POST['SMTPAuth'],'SMTPSecure' => isset( $_POST['SMTPSecure'] ) ? $_POST['SMTPSecure'] : 'none'
|
||||
) );
|
||||
|
||||
$oSpool->create(array(
|
||||
'msg_uid' => '',
|
||||
'app_uid' => '',
|
||||
'del_index' => 0,
|
||||
'app_msg_type' => 'TEST',
|
||||
'app_msg_subject' => $sSubject,
|
||||
'app_msg_from' => $sFrom,
|
||||
'app_msg_to' => $_POST['TO'],
|
||||
'app_msg_body' => $sBody,
|
||||
'app_msg_cc' => '',
|
||||
'app_msg_bcc' => '',
|
||||
'app_msg_attach' => '',
|
||||
'app_msg_template' => '',
|
||||
'app_msg_status' => 'pending',
|
||||
'app_msg_attach'=>'' // Added By Ankit
|
||||
$oSpool->create( array ('msg_uid' => '','app_uid' => '','del_index' => 0,'app_msg_type' => 'TEST','app_msg_subject' => $sSubject,'app_msg_from' => $sFrom,'app_msg_to' => $_POST['TO'],'app_msg_body' => $sBody,'app_msg_cc' => '','app_msg_bcc' => '','app_msg_attach' => '','app_msg_template' => '','app_msg_status' => 'pending','app_msg_attach' => '' // Added By Ankit
|
||||
) );
|
||||
|
||||
$oSpool->sendMail();
|
||||
@@ -304,16 +273,15 @@ function sendTestMail() {
|
||||
if ($oSpool->status == 'sent') {
|
||||
$o->status = true;
|
||||
$o->msg = G::LoadTranslation( 'ID_MAIL_TEST_SUCCESS' );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$o->status = false;
|
||||
$o->msg = $oSpool->error;
|
||||
}
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
||||
function e_utf8_encode($input) {
|
||||
function e_utf8_encode ($input)
|
||||
{
|
||||
$utftext = null;
|
||||
|
||||
for ($n = 0; $n < strlen( $input ); $n ++) {
|
||||
@@ -334,3 +302,4 @@ function e_utf8_encode($input) {
|
||||
|
||||
return $utftext;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
require_once 'classes/model/Configuration.php';
|
||||
@@ -59,13 +58,8 @@ $aFields['MESS_EXECUTE_EVERY'] = isset($_POST['form']['MESS_ENABLED']) ?$_
|
||||
$aFields['MESS_SEND_MAX'] = isset( $_POST['form']['MESS_ENABLED'] ) ? $_POST['form']['MESS_SEND_MAX'] : '';
|
||||
$aFields['SMTPSecure'] = isset( $_POST['form']['MESS_ENABLED'] ) ? $_POST['form']['SMTPSecure'] : '';
|
||||
$aFields['MESS_TRY_SEND_INMEDIATLY'] = isset( $_POST['form']['MESS_ENABLED'] ) ? isset( $_POST['form']['MESS_TRY_SEND_INMEDIATLY'] ) ? $_POST['form']['MESS_TRY_SEND_INMEDIATLY'] : '' : '';
|
||||
$oConfiguration->update(array(
|
||||
'CFG_UID' => 'Emails',
|
||||
'OBJ_UID' => '',
|
||||
'CFG_VALUE' => serialize($aFields),
|
||||
'PRO_UID' => '',
|
||||
'USR_UID' => '',
|
||||
'APP_UID' => '')
|
||||
);
|
||||
$oConfiguration->update( array ('CFG_UID' => 'Emails','OBJ_UID' => '','CFG_VALUE' => serialize( $aFields ),'PRO_UID' => '','USR_UID' => '','APP_UID' => ''
|
||||
) );
|
||||
G::SendTemporalMessage( 'ID_CHANGES_SAVED', 'TMP-INFO', 'label', 4, '100%' );
|
||||
G::header( 'location: emails' );
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
G::loadClass( 'configuration' );
|
||||
$c = new Configurations;
|
||||
$c = new Configurations();
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'setup/environmentSettings', true );
|
||||
//$conf->aConfig['startCaseHideProcessInf']
|
||||
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @author Erik A.O. <erik@colosa.com>
|
||||
* @date Sept 13th, 2010
|
||||
*
|
||||
@@ -7,10 +8,6 @@
|
||||
|
||||
G::LoadClass( "configuration" );
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$request = isset( $_POST["request"] ) ? $_POST["request"] : (isset( $_GET["request"] ) ? $_GET["request"] : null);
|
||||
|
||||
switch ($request) {
|
||||
@@ -18,36 +15,28 @@ switch ($request) {
|
||||
$result->rows = Configurations::getUserNameFormats();
|
||||
print (G::json_encode( $result )) ;
|
||||
break;
|
||||
|
||||
case "getDateFormats":
|
||||
$result->rows = Configurations::getDateFormats();
|
||||
print (G::json_encode( $result )) ;
|
||||
break;
|
||||
|
||||
case "getCasesListDateFormat":
|
||||
$result->rows = Configurations::getDateFormats();;
|
||||
$result->rows = Configurations::getDateFormats();
|
||||
;
|
||||
print (G::json_encode( $result )) ;
|
||||
break;
|
||||
|
||||
case "getCasesListRowNumber":
|
||||
for ($i = 10; $i <= 50; $i += 5) {
|
||||
$formats[] = array("id" => "$i", "name" => "$i");
|
||||
$formats[] = array ("id" => "$i","name" => "$i"
|
||||
);
|
||||
}
|
||||
|
||||
$result->rows = $formats;
|
||||
print (G::json_encode( $result )) ;
|
||||
break;
|
||||
|
||||
case "save":
|
||||
$conf = new Configurations();
|
||||
|
||||
$conf->aConfig = array(
|
||||
"format" => $_POST["userFormat"],
|
||||
"dateFormat" => $_POST["dateFormat"],
|
||||
"startCaseHideProcessInf" => ((isset($_POST["hideProcessInf"]))? true : false),
|
||||
"casesListDateFormat" => $_POST["casesListDateFormat"],
|
||||
"casesListRowNumber" => intval($_POST["casesListRowNumber"]),
|
||||
"casesListRefreshTime" => intval($_POST["txtCasesRefreshTime"])
|
||||
$conf->aConfig = array ("format" => $_POST["userFormat"],"dateFormat" => $_POST["dateFormat"],"startCaseHideProcessInf" => ((isset( $_POST["hideProcessInf"] )) ? true : false),"casesListDateFormat" => $_POST["casesListDateFormat"],"casesListRowNumber" => intval( $_POST["casesListRowNumber"] ),"casesListRefreshTime" => intval( $_POST["txtCasesRefreshTime"] )
|
||||
);
|
||||
|
||||
$conf->saveConfig( "ENVIRONMENT_SETTINGS", "" );
|
||||
|
||||
Reference in New Issue
Block a user