BUG 9962 I added a validation to field SOLVED
I added a validation to text field
This commit is contained in:
@@ -3468,6 +3468,11 @@ class G
|
|||||||
G::LoadClass("pmFunctions");
|
G::LoadClass("pmFunctions");
|
||||||
G::LoadThirdParty('phpmailer', 'class.phpmailer');
|
G::LoadThirdParty('phpmailer', 'class.phpmailer');
|
||||||
$setup = getEmailConfiguration();
|
$setup = getEmailConfiguration();
|
||||||
|
if ($setup['MESS_RAUTH'] == false || (is_string($setup['MESS_RAUTH']) && $setup['MESS_RAUTH'] == 'false')) {
|
||||||
|
$setup['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$setup['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (count($setup) == 0 || !isset($setup['MESS_ENGINE']) || !isset($setup['MESS_SERVER'])
|
if (count($setup) == 0 || !isset($setup['MESS_ENGINE']) || !isset($setup['MESS_SERVER'])
|
||||||
|| !isset($setup['MESS_ENABLED']) || !isset($setup['MESS_RAUTH']) || $setup['MESS_SERVER'] == '') {
|
|| !isset($setup['MESS_ENABLED']) || !isset($setup['MESS_RAUTH']) || $setup['MESS_SERVER'] == '') {
|
||||||
|
|||||||
@@ -4717,6 +4717,11 @@ class Cases
|
|||||||
|
|
||||||
if ($sTo != null) {
|
if ($sTo != null) {
|
||||||
$oSpool = new spoolRun();
|
$oSpool = new spoolRun();
|
||||||
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$oSpool->setConfig(array(
|
$oSpool->setConfig(array(
|
||||||
"MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],
|
"MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],
|
||||||
|
|||||||
@@ -542,6 +542,11 @@ class spoolRun
|
|||||||
|
|
||||||
if ($aConfiguration["MESS_ENABLED"] == "1") {
|
if ($aConfiguration["MESS_ENABLED"] == "1") {
|
||||||
require_once ("classes/model/AppMessage.php");
|
require_once ("classes/model/AppMessage.php");
|
||||||
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"]
|
$this->setConfig( array ("MESS_ENGINE" => $aConfiguration["MESS_ENGINE"],"MESS_SERVER" => $aConfiguration["MESS_SERVER"],"MESS_PORT" => $aConfiguration["MESS_PORT"],"MESS_ACCOUNT" => $aConfiguration["MESS_ACCOUNT"],"MESS_PASSWORD" => $aConfiguration["MESS_PASSWORD"],"SMTPAuth" => $aConfiguration["MESS_RAUTH"],"SMTPSecure" => $aConfiguration["SMTPSecure"]
|
||||||
) );
|
) );
|
||||||
|
|||||||
@@ -217,6 +217,12 @@ class AppNotes extends BaseAppNotes
|
|||||||
|
|
||||||
$sTo = ((($aUser['USR_FIRSTNAME'] != '') || ($aUser['USR_LASTNAME'] != '')) ? $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' ' : '') . '<' . $aUser['USR_EMAIL'] . '>';
|
$sTo = ((($aUser['USR_FIRSTNAME'] != '') || ($aUser['USR_LASTNAME'] != '')) ? $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' ' : '') . '<' . $aUser['USR_EMAIL'] . '>';
|
||||||
$oSpool = new spoolRun();
|
$oSpool = new spoolRun();
|
||||||
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'],'SMTPAuth' => $aConfiguration['MESS_RAUTH'] == '1' ? true : false,'SMTPSecure' => isset( $aConfiguration['SMTPSecure'] ) ? $aConfiguration['SMTPSecure'] : '') );
|
$oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'],'SMTPAuth' => $aConfiguration['MESS_RAUTH'] == '1' ? true : false,'SMTPSecure' => isset( $aConfiguration['SMTPSecure'] ) ? $aConfiguration['SMTPSecure'] : '') );
|
||||||
$oSpool->create( array ('msg_uid' => '','app_uid' => $appUid,'del_index' => 1,'app_msg_type' => 'DERIVATION','app_msg_subject' => $sSubject,'app_msg_from' => $sFrom,'app_msg_to' => $sTo,'app_msg_body' => $sBody,'app_msg_cc' => '','app_msg_bcc' => '','app_msg_attach' => '','app_msg_template' => '','app_msg_status' => 'pending') );
|
$oSpool->create( array ('msg_uid' => '','app_uid' => $appUid,'del_index' => 1,'app_msg_type' => 'DERIVATION','app_msg_subject' => $sSubject,'app_msg_from' => $sFrom,'app_msg_to' => $sTo,'app_msg_body' => $sBody,'app_msg_cc' => '','app_msg_bcc' => '','app_msg_attach' => '','app_msg_template' => '','app_msg_status' => 'pending') );
|
||||||
if (($aConfiguration['MESS_BACKGROUND'] == '') || ($aConfiguration['MESS_TRY_SEND_INMEDIATLY'] == '1')) {
|
if (($aConfiguration['MESS_BACKGROUND'] == '') || ($aConfiguration['MESS_TRY_SEND_INMEDIATLY'] == '1')) {
|
||||||
|
|||||||
@@ -159,6 +159,11 @@ if ($actionAjax == 'sendMailMessage_JXP') {
|
|||||||
$aConfiguration['MESS_PASSWORD'] = $passwd;
|
$aConfiguration['MESS_PASSWORD'] = $passwd;
|
||||||
|
|
||||||
$oSpool = new spoolRun();
|
$oSpool = new spoolRun();
|
||||||
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
$oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $passwd,'SMTPAuth' => $aConfiguration['MESS_RAUTH']
|
$oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $passwd,'SMTPAuth' => $aConfiguration['MESS_RAUTH']
|
||||||
) );
|
) );
|
||||||
|
|
||||||
|
|||||||
@@ -774,6 +774,12 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$oSpool = new spoolRun();
|
$oSpool = new spoolRun();
|
||||||
|
if ($aConfiguration['MESS_RAUTH'] == false || (is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false')) {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$aConfiguration['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'],'SMTPAuth' => $aConfiguration['MESS_RAUTH']
|
$oSpool->setConfig( array ('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'],'MESS_SERVER' => $aConfiguration['MESS_SERVER'],'MESS_PORT' => $aConfiguration['MESS_PORT'],'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'],'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'],'SMTPAuth' => $aConfiguration['MESS_RAUTH']
|
||||||
) );
|
) );
|
||||||
$passwd = $oSpool->config['MESS_PASSWORD'];
|
$passwd = $oSpool->config['MESS_PASSWORD'];
|
||||||
|
|||||||
@@ -55,7 +55,11 @@ if ($userData['USR_EMAIL'] != '' && $userData['USR_EMAIL'] === $data['USR_EMAIL'
|
|||||||
|
|
||||||
G::LoadClass('spool');
|
G::LoadClass('spool');
|
||||||
$oSpool = new spoolRun();
|
$oSpool = new spoolRun();
|
||||||
|
if ($aSetup['MESS_RAUTH'] == false || (is_string($aSetup['MESS_RAUTH']) && $aSetup['MESS_RAUTH'] == 'false')) {
|
||||||
|
$aSetup['MESS_RAUTH'] = 0;
|
||||||
|
} else {
|
||||||
|
$aSetup['MESS_RAUTH'] = 1;
|
||||||
|
}
|
||||||
$oSpool->setConfig( array(
|
$oSpool->setConfig( array(
|
||||||
'MESS_ENGINE' => $aSetup['MESS_ENGINE'],
|
'MESS_ENGINE' => $aSetup['MESS_ENGINE'],
|
||||||
'MESS_SERVER' => $aSetup['MESS_SERVER'],
|
'MESS_SERVER' => $aSetup['MESS_SERVER'],
|
||||||
|
|||||||
Reference in New Issue
Block a user