CODE STYLE, workflow/engine/methods/setup/ PART 1
FILES: appCacheViewAjax.php appCacheViewConf.php appearance.php calendarDelete.php calendarEdit.php calendarList.php calendarSave.php calendarValidate.php calendar_Ajax.php clearCompiled.php clearCompiledAjax.php connectionDB.php connectionWS.php cron.php cronAjax.php customFunctions.php debug.php deleteSessions.php emailSystemCron.php emailSystemSpool.php emailSystemTest.php emails.php emails_Ajax.php emails_Save.php environmentSettings.php environmentSettingsAjax.php
This commit is contained in:
@@ -12,57 +12,52 @@
|
||||
* @category web_mail
|
||||
* @subpackage spool
|
||||
* @filesource
|
||||
* @version
|
||||
*
|
||||
* @file tom_spool.php
|
||||
* @version @file tom_spool.php
|
||||
*
|
||||
*/
|
||||
|
||||
if( isset ( $_POST['form']) )
|
||||
{
|
||||
$frm = "{$_POST['form']}";
|
||||
if (isset( $_POST['form'] )) {
|
||||
$frm = "{$_POST['form']}";
|
||||
|
||||
G::LoadClass('insert');
|
||||
G::LoadClass( 'insert' );
|
||||
|
||||
$db_spool = array();
|
||||
|
||||
$db_spool['msg_uid'] = 'msg_uid';
|
||||
$db_spool['app_uid'] = 'app_uid';
|
||||
$db_spool['del_index'] = 99; // random number
|
||||
$db_spool['app_msg_type'] = 'email message';
|
||||
$db_spool['app_msg_subject'] = 'subject field'; //"{$frm['subject']}";
|
||||
$db_spool['app_msg_from'] = '"ian armstrong" <ian@colosa.com>';//"{$frm['from_email']}";
|
||||
$db_spool['app_msg_to'] = '<ika@openmail.cc>'; //"{$frm['to_email']}";
|
||||
$db_spool['app_msg_body'] = 'body field'; //"{$frm['body']}";
|
||||
$db_spool['app_msg_date'] = time();
|
||||
$db_spool['app_msg_cc'] = '<ian@openmail.cc>';
|
||||
$db_spool['app_msg_bcc'] = '<ian.k.armstrong@gmail.com>';
|
||||
$db_spool['app_msg_template'] = "/path/to/template";
|
||||
$db_spool['app_msg_status'] = "pending";
|
||||
$db_spool = array ();
|
||||
|
||||
$db_spool['app_msg_attach'] = serialize(array('attachment_1','attachment_2'));
|
||||
$db_spool['msg_uid'] = 'msg_uid';
|
||||
$db_spool['app_uid'] = 'app_uid';
|
||||
$db_spool['del_index'] = 99; // random number
|
||||
$db_spool['app_msg_type'] = 'email message';
|
||||
$db_spool['app_msg_subject'] = 'subject field'; //"{$frm['subject']}";
|
||||
$db_spool['app_msg_from'] = '"ian armstrong" <ian@colosa.com>'; //"{$frm['from_email']}";
|
||||
$db_spool['app_msg_to'] = '<ika@openmail.cc>'; //"{$frm['to_email']}";
|
||||
$db_spool['app_msg_body'] = 'body field'; //"{$frm['body']}";
|
||||
$db_spool['app_msg_date'] = time();
|
||||
$db_spool['app_msg_cc'] = '<ian@openmail.cc>';
|
||||
$db_spool['app_msg_bcc'] = '<ian.k.armstrong@gmail.com>';
|
||||
$db_spool['app_msg_template'] = "/path/to/template";
|
||||
$db_spool['app_msg_status'] = "pending";
|
||||
|
||||
/*
|
||||
if(isset($frm['attachments']) && count($frm['attachments']) >0 )
|
||||
{
|
||||
foreach($frm['attachments'] as $attchment)
|
||||
{
|
||||
$db_spool['app_msg_attach'][] = "$attchment";
|
||||
$db_spool['app_msg_attach'] = serialize( array ('attachment_1','attachment_2'
|
||||
) );
|
||||
|
||||
}
|
||||
/*
|
||||
if(isset($frm['attachments']) && count($frm['attachments']) >0 )
|
||||
{
|
||||
foreach($frm['attachments'] as $attchment)
|
||||
{
|
||||
$db_spool['app_msg_attach'][] = "$attchment";
|
||||
}
|
||||
}*/
|
||||
|
||||
}*/
|
||||
$insert = new insert( $db_spool );
|
||||
$status = $insert->returnStatus();
|
||||
unset( $insert );
|
||||
|
||||
$insert = new insert($db_spool);
|
||||
$status = $insert->returnStatus();
|
||||
unset($insert);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$Fields['MESSAGE'] = $status;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $Fields, 'emailSystemSpool' );
|
||||
G::RenderPage( 'publish' );
|
||||
|
||||
$Fields['MESSAGE'] = $status;
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $Fields, 'emailSystemSpool');
|
||||
G::RenderPage('publish');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user