1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

Getting ready for mailer mods

This commit is contained in:
e107steved
2009-11-04 20:19:11 +00:00
parent dac35acbf7
commit 619d0c8c3d
3 changed files with 64 additions and 12 deletions

View File

@@ -9,9 +9,9 @@
* Core SQL * Core SQL
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/sql/core_sql.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/sql/core_sql.php,v $
* $Revision: 1.30 $ * $Revision: 1.31 $
* $Date: 2009-11-04 03:07:39 $ * $Date: 2009-11-04 20:19:11 $
* $Author: e107coders $ * $Author: e107steved $
*/ */
header("location:../index.php"); header("location:../index.php");
@@ -177,6 +177,48 @@ CREATE TABLE links (
# -------------------------------------------------------- # --------------------------------------------------------
#
# Table structure for mailing-related tables
#
CREATE TABLE mail_recipients (
mail_target_id int(10) unsigned NOT NULL auto_increment,
mail_recipient_id int(10) unsigned NOT NULL default '0',
mail_recipient_email varchar(80) NOT NULL default '',
mail_recipient_name varchar(80) NOT NULL default '',
mail_status tinyint(1) unsigned NOT NULL default '0',
mail_detail_id int(10) unsigned NOT NULL default '0',
mail_send_date int(10) unsigned NOT NULL default '0',
mail_target_info text,
PRIMARY KEY (mail_target_id),
KEY mail_status (mail_status),
KEY mail_detail_id (mail_detail_id)
) TYPE=MyISAM;
CREATE TABLE mail_content (
mail_source_id int(10) unsigned NOT NULL auto_increment,
mail_content_status tinyint(1) unsigned NOT NULL default '0',
mail_togo_count int(10) unsigned NOT NULL default '0',
mail_sent_count int(10) unsigned NOT NULL default '0',
mail_fail_count int(10) unsigned NOT NULL default '0',
mail_bounce_count int(10) unsigned NOT NULL default '0',
mail_start_send int(10) unsigned NOT NULL default '0',
mail_end_send int(10) unsigned NOT NULL default '0',
mail_create_date int(10) unsigned NOT NULL default '0',
mail_creator int(10) unsigned NOT NULL default '0',
mail_create_app varchar(10) NOT NULL default '',
mail_e107_priority tinyint(1) unsigned NOT NULL default '0',
mail_last_date int(10) unsigned NOT NULL default '0',
mail_title varchar(100) NOT NULL default '',
mail_subject varchar(100) NOT NULL default '',
mail_body text,
mail_other text,
PRIMARY KEY (mail_source_id),
KEY mail_content_status (mail_content_status)
) TYPE=MyISAM;
# #
# Table structure for table `menus` # Table structure for table `menus`
# #

View File

@@ -9,9 +9,9 @@
* Form Handler * Form Handler
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $
* $Revision: 1.64 $ * $Revision: 1.65 $
* $Date: 2009-11-04 17:29:26 $ * $Date: 2009-11-04 20:19:11 $
* $Author: secretr $ * $Author: e107steved $
* *
*/ */
@@ -714,7 +714,7 @@ class e_form
foreach($columnsArray as $key => $fld) foreach($columnsArray as $key => $fld)
{ {
if(!varset($fld['forced'])) if (!varset($fld['forced']) && !vartrue($fld['hide']))
{ {
$checked = (in_array($key,$columnsDefault)) ? TRUE : FALSE; $checked = (in_array($key,$columnsDefault)) ? TRUE : FALSE;
$text .= " $text .= "
@@ -744,7 +744,7 @@ class e_form
$count = 0; $count = 0;
foreach($fieldarray as $key=>$val) foreach($fieldarray as $key=>$val)
{ {
if(in_array($key, $columnPref) || $key=='options' || varsettrue($val['forced'])) if ((in_array($key, $columnPref) || $key=='options' || varsettrue($val['forced'])) && !vartrue($val['hide']))
{ {
$class = vartrue($val['class']) ? ' class="'.$val['class'].'"' : ''; $class = vartrue($val['class']) ? ' class="'.$val['class'].'"' : '';
$text .= ' $text .= '
@@ -805,7 +805,7 @@ class e_form
$ascdesc = (varset($ascdesc) == 'desc') ? 'asc' : 'desc'; $ascdesc = (varset($ascdesc) == 'desc') ? 'asc' : 'desc';
foreach($fieldarray as $key=>$val) foreach($fieldarray as $key=>$val)
{ {
if(in_array($key, $columnPref) || $key == 'options' || (vartrue($val['forced']))) if ((in_array($key, $columnPref) || $key == 'options' || (vartrue($val['forced']))) && !vartrue($val['hide']))
{ {
$cl = (vartrue($val['thclass'])) ? " class='".$val['thclass']."'" : ""; $cl = (vartrue($val['thclass'])) ? " class='".$val['thclass']."'" : "";
$text .= " $text .= "

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/bbcode_template.php,v $ | $Source: /cvs_backup/e107_0.8/e107_themes/templates/bbcode_template.php,v $
| $Revision: 1.7 $ | $Revision: 1.8 $
| $Date: 2009-09-19 15:21:50 $ | $Date: 2009-11-04 20:19:11 $
| $Author: secretr $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
// How to register your own BBcode button. // How to register your own BBcode button.
@@ -55,6 +55,16 @@ $BBCODE_TEMPLATE_ADMIN = "
<div class='field-spacer'><!-- --></div> <div class='field-spacer'><!-- --></div>
"; ";
$BBCODE_TEMPLATE_MAILOUT = "
{BB_HELP=admin}
<div class='field-spacer'><!-- --></div>
{BB=link}{BB=b}{BB=i}{BB=u}{BB=img}{BB=center}{BB=left}
{BB=right}{BB=bq}{BB=code}{BB=list}{BB=fontcol}{BB=fontsize}{BB=emotes}
{BB_PREIMAGEDIR=".e_IMAGE."}
{BB=preimage}{BB=prefile}{BB=flash}{BB=shortcode}
<div class='field-spacer'><!-- --></div>
";
// $BBCODE_TEMPLATE_ADMIN .= "{BB=blank}"; // $BBCODE_TEMPLATE_ADMIN .= "{BB=blank}";
$BBCODE_TEMPLATE_NEWSPOST = " $BBCODE_TEMPLATE_NEWSPOST = "