Merge branch 'master' into pm_wysiwyg
This commit is contained in:
@@ -2127,6 +2127,7 @@ function stringReplace(strSearch, stringReplace, str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
var mb_strlen = function(str) {
|
var mb_strlen = function(str) {
|
||||||
|
str = str || '';
|
||||||
var len = 0;
|
var len = 0;
|
||||||
for (var i = 0; i < str.length; i++) {
|
for (var i = 0; i < str.length; i++) {
|
||||||
len += str.charCodeAt(i) < 0 || str.charCodeAt(i) > 255 ? 2 : 1;
|
len += str.charCodeAt(i) < 0 || str.charCodeAt(i) > 255 ? 2 : 1;
|
||||||
|
|||||||
@@ -792,7 +792,7 @@ else{PMExt.error('Processmaker JS Core Error','The TRANSLATIONS global object is
|
|||||||
return trn;}
|
return trn;}
|
||||||
function stringReplace(strSearch,stringReplace,str)
|
function stringReplace(strSearch,stringReplace,str)
|
||||||
{var expression=eval("/"+strSearch+"/g");return str.replace(expression,stringReplace);}
|
{var expression=eval("/"+strSearch+"/g");return str.replace(expression,stringReplace);}
|
||||||
var mb_strlen=function(str){var len=0;for(var i=0;i<str.length;i++){len+=str.charCodeAt(i)<0||str.charCodeAt(i)>255?2:1;}
|
var mb_strlen=function(str){str=str||'';var len=0;for(var i=0;i<str.length;i++){len+=str.charCodeAt(i)<0||str.charCodeAt(i)>255?2:1;}
|
||||||
return len;};var stripNonNumeric=function(str){str+='';var rgx=/^\d|\.|-$/;var out='';for(var i=0;i<str.length;i++){if(rgx.test(str.charAt(i))){if(!((str.charAt(i)=='.'&&out.indexOf('.')!=-1)||(str.charAt(i)=='-'&&out.length!=0))){out+=str.charAt(i);}}}
|
return len;};var stripNonNumeric=function(str){str+='';var rgx=/^\d|\.|-$/;var out='';for(var i=0;i<str.length;i++){if(rgx.test(str.charAt(i))){if(!((str.charAt(i)=='.'&&out.indexOf('.')!=-1)||(str.charAt(i)=='-'&&out.length!=0))){out+=str.charAt(i);}}}
|
||||||
return out;};
|
return out;};
|
||||||
var TimeToFade=1000.0;function fade(eid,inOut){inOut=(typeof(inOut)!='undefined')?true:false;var element=document.getElementById(eid);if(element==null)
|
var TimeToFade=1000.0;function fade(eid,inOut){inOut=(typeof(inOut)!='undefined')?true:false;var element=document.getElementById(eid);if(element==null)
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ class DataBaseMaintenance
|
|||||||
|
|
||||||
$this->link = mysql_connect( $this->host, $this->user, $this->passwd );
|
$this->link = mysql_connect( $this->host, $this->user, $this->passwd );
|
||||||
@mysql_query( "SET NAMES 'utf8';" );
|
@mysql_query( "SET NAMES 'utf8';" );
|
||||||
|
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||||
if (! $this->link) {
|
if (! $this->link) {
|
||||||
throw new Exception( "Couldn't connect to host {$this->host} with user {$this->user}" );
|
throw new Exception( "Couldn't connect to host {$this->host} with user {$this->user}" );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5081,6 +5081,9 @@ class G
|
|||||||
*/
|
*/
|
||||||
public function isPMUnderUpdating($setFlag = 2)
|
public function isPMUnderUpdating($setFlag = 2)
|
||||||
{
|
{
|
||||||
|
if (!defined('PATH_DATA')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$fileCheck = PATH_DATA."UPDATE.dat";
|
$fileCheck = PATH_DATA."UPDATE.dat";
|
||||||
if ($setFlag == 0) {
|
if ($setFlag == 0) {
|
||||||
if (file_exists($fileCheck)) {
|
if (file_exists($fileCheck)) {
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ class multipleFilesBackup
|
|||||||
CLI::logging( "> Connecting to system database in '$dbHost'\n" );
|
CLI::logging( "> Connecting to system database in '$dbHost'\n" );
|
||||||
$link = mysql_connect( $dbHost, $dbUser, $dbPass );
|
$link = mysql_connect( $dbHost, $dbUser, $dbPass );
|
||||||
@mysql_query( "SET NAMES 'utf8';" );
|
@mysql_query( "SET NAMES 'utf8';" );
|
||||||
|
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||||
if (! $link) {
|
if (! $link) {
|
||||||
throw new Exception( 'Could not connect to system database: ' . mysql_error() );
|
throw new Exception( 'Could not connect to system database: ' . mysql_error() );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1123,6 +1123,7 @@ class workspaceTools
|
|||||||
CLI::logging( "> Connecting to system database in '$dbHost'\n" );
|
CLI::logging( "> Connecting to system database in '$dbHost'\n" );
|
||||||
$link = mysql_connect( $dbHost, $dbUser, $dbPass );
|
$link = mysql_connect( $dbHost, $dbUser, $dbPass );
|
||||||
@mysql_query( "SET NAMES 'utf8';" );
|
@mysql_query( "SET NAMES 'utf8';" );
|
||||||
|
@mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||||
if (! $link) {
|
if (! $link) {
|
||||||
throw new Exception( 'Could not connect to system database: ' . mysql_error() );
|
throw new Exception( 'Could not connect to system database: ' . mysql_error() );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,6 +345,7 @@ class Content extends BaseContent
|
|||||||
|
|
||||||
mysql_select_db( $workSpace->dbName, $link );
|
mysql_select_db( $workSpace->dbName, $link );
|
||||||
mysql_query( "SET NAMES 'utf8';" );
|
mysql_query( "SET NAMES 'utf8';" );
|
||||||
|
mysql_query( "SET FOREIGN_KEY_CHECKS=0;" );
|
||||||
mysql_query( 'SET OPTION SQL_BIG_SELECTS=1' );
|
mysql_query( 'SET OPTION SQL_BIG_SELECTS=1' );
|
||||||
$result = mysql_unbuffered_query( $sql, $link );
|
$result = mysql_unbuffered_query( $sql, $link );
|
||||||
$list = array ();
|
$list = array ();
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ class Installer extends Controller
|
|||||||
$info->memory = new stdclass();
|
$info->memory = new stdclass();
|
||||||
|
|
||||||
$info->php->version = phpversion();
|
$info->php->version = phpversion();
|
||||||
$info->php->result = $phpVerNum >= 5.1 ? true : false;
|
$info->php->result = version_compare(phpversion(), '5.2.10') >= 0 ? true : false;
|
||||||
|
|
||||||
// MYSQL info and verification
|
// MYSQL info and verification
|
||||||
$info->mysql->result = false;
|
$info->mysql->result = false;
|
||||||
|
|||||||
@@ -196,10 +196,15 @@ Ext.onReady(function() {
|
|||||||
columns:[{
|
columns:[{
|
||||||
header: _('ID_DEPARTMENT_NAME'),
|
header: _('ID_DEPARTMENT_NAME'),
|
||||||
dataIndex: 'DEP_TITLE',
|
dataIndex: 'DEP_TITLE',
|
||||||
width: 320
|
width: 380,
|
||||||
|
tpl: new Ext.XTemplate('{DEP_TITLE:this.formatDepTitle}', {
|
||||||
|
formatDepTitle: function(v) {
|
||||||
|
return '<span style="white-space:normal !important;word-wrap: break-word;">' + v + '</span>';
|
||||||
|
}
|
||||||
|
})
|
||||||
},{
|
},{
|
||||||
header: _('ID_STATUS'),
|
header: _('ID_STATUS'),
|
||||||
width: 100,
|
width: 70,
|
||||||
dataIndex: 'DEP_STATUS',
|
dataIndex: 'DEP_STATUS',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
tpl: new Ext.XTemplate('{DEP_STATUS:this.formatStatus}', {
|
tpl: new Ext.XTemplate('{DEP_STATUS:this.formatStatus}', {
|
||||||
@@ -216,7 +221,7 @@ Ext.onReady(function() {
|
|||||||
dataIndex: 'DEP_MANAGER_NAME'
|
dataIndex: 'DEP_MANAGER_NAME'
|
||||||
},{
|
},{
|
||||||
header: _('ID_USERS'),
|
header: _('ID_USERS'),
|
||||||
width: 80,
|
width: 70,
|
||||||
dataIndex: 'DEP_TOTAL_USERS',
|
dataIndex: 'DEP_TOTAL_USERS',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
sortType: 'asFloat'
|
sortType: 'asFloat'
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ Ext.onReady(function(){
|
|||||||
items:[
|
items:[
|
||||||
{
|
{
|
||||||
xtype : 'displayfield',
|
xtype : 'displayfield',
|
||||||
fieldLabel: 'PHP Version >= 5.1',
|
fieldLabel: 'PHP Version >= 5.2.10',
|
||||||
id : 'php'
|
id : 'php'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ function ws_open_with_params($endpoint, $user, $pass) {
|
|||||||
throw (new Exception($result->message));
|
throw (new Exception($result->message));
|
||||||
}
|
}
|
||||||
|
|
||||||
function ws_sendEmailMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail, $sBody) {
|
function ws_sendEmailMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail, $template) {
|
||||||
global $sessionId;
|
global $sessionId;
|
||||||
global $client;
|
global $client;
|
||||||
$params = array (
|
$params = array (
|
||||||
@@ -153,7 +153,7 @@ function ws_sendEmailMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail,
|
|||||||
'cc' => $ccEmail,
|
'cc' => $ccEmail,
|
||||||
'bcc' => $bccEmail,
|
'bcc' => $bccEmail,
|
||||||
'subject' => $sSubject,
|
'subject' => $sSubject,
|
||||||
'message' => $sBody
|
'template' => $template
|
||||||
);
|
);
|
||||||
$result = $client->__SoapCall('sendMessage', array (
|
$result = $client->__SoapCall('sendMessage', array (
|
||||||
$params
|
$params
|
||||||
@@ -172,7 +172,7 @@ function ws_sendMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail, $temp
|
|||||||
'cc' => $ccEmail,
|
'cc' => $ccEmail,
|
||||||
'bcc' => $bccEmail,
|
'bcc' => $bccEmail,
|
||||||
'subject' => $sSubject,
|
'subject' => $sSubject,
|
||||||
'message' => $template
|
'template' => $template
|
||||||
);
|
);
|
||||||
$result = $client->__SoapCall('sendMessage', array (
|
$result = $client->__SoapCall('sendMessage', array (
|
||||||
$params
|
$params
|
||||||
|
|||||||
Reference in New Issue
Block a user