|
From: FlorinCB <ory...@us...> - 2008-10-04 07:45:04
|
Update of /cvsroot/mxbb/mx_contact In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv31768 Modified Files: db_install.php db_uninstall.php db_upgrade.php mx_contact.pak mx_contact.php release.txt Log Message: upgrade Index: release.txt =================================================================== RCS file: /cvsroot/mxbb/mx_contact/release.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** release.txt 3 Jun 2008 20:09:48 -0000 1.2 --- release.txt 4 Oct 2008 07:44:53 -0000 1.3 *************** *** 1,9 **** ! [b][Release]: mxBB Contact - Module[/b] [b][Authors]: darkassasin93, marcus.smith, OryNider[/b] ! [b][Version]: 1.0B[/b] ! [b]Designed for mxBB Version: 2.8.0[/b] [b][Support]:[/b] [URL=http://www.mx-publisher.com/]post here[/URL] --- 1,9 ---- ! [b][Release]: Mx-Publisher Contact - Module[/b] [b][Authors]: darkassasin93, marcus.smith, OryNider[/b] ! [b][Version]: 2.9.0[/b] ! [b]Designed for Mx-Publisher Version: 2.8.3 / 3.0.0b2[/b] [b][Support]:[/b] [URL=http://www.mx-publisher.com/]post here[/URL] *************** *** 12,20 **** Description: ! Allows visitors to contact the site Admin via a Contact Form. ! Files can also be attached and sent if permitte (12/12/2007) - [b]ScreenShots: [/b] [IMG]http://img146.imageshack.us/img146/2414/mxbbcontactxl1.png[/IMG] ! [b][Download]: [/b][URL=http://www.mx-publisher.com/]mx_contact.zip[/URL] \ No newline at end of file --- 12,23 ---- Description: ! Contact block - Allows guests to contact the site Admin via a Contact Form. ! Files can also be attached and sent if is alowed (12/12/2007) + NewsLetter block - Allows guests to to subcribe or contact Admin via a NewsLetter Form. + The Admin can send Mass NewsLetters to subcribers from AdminCP. (02/10/2008) ! [b]ScreenShots: [/b] [IMG]http://img146.imageshack.us/img146/2414/Mx-Publishercontactxl1.png[/IMG] ! ! [b][Download]: [/b][URL=http://www.mx-publisher.com/index.php?page=34&action=file&file_id=432]MXP-Module-Contact-2.9.0.zip[/URL] \ No newline at end of file Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/db_uninstall.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_uninstall.php 9 Feb 2008 00:04:51 -0000 1.2 --- db_uninstall.php 4 Oct 2008 07:44:53 -0000 1.3 *************** *** 37,41 **** --- 37,43 ---- $sql = array( "DROP TABLE ".$mx_table_prefix."contact_config", + "DROP TABLE ".$mx_table_prefix."contact_msgs", "DROP TABLE ".$mx_table_prefix."contact_emails", + "DROP TABLE ".$mx_table_prefix."contact_mass_news", "DROP TABLE ".$mx_table_prefix."contact" ); Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/db_upgrade.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_upgrade.php 28 Sep 2008 14:37:28 -0000 1.1 --- db_upgrade.php 4 Oct 2008 07:44:53 -0000 1.2 *************** *** 30,35 **** } ! $mx_module_version = '2.0.0'; ! $mx_module_copy = 'mxBB <i> - Contact</i> module by OryNider'; $sql = array(); --- 30,35 ---- } ! $mx_module_version = '2.9.0'; ! $mx_module_copy = 'MX-Publisher <i> - Contact</i> module by OryNider'; $sql = array(); *************** *** 58,61 **** --- 58,74 ---- { $message .= "<b>Upgrading to v. 2.00...</b><br/><br/>"; + + $sql[] = 'CREATE TABLE ' . $mx_table_prefix . 'contact_mass_news ( + mail_id smallint(5) unsigned NOT NULL auto_increment, + mailsession_id varchar(32) NOT NULL default \'\', + group_id mediumint(8) NOT NULL default \'0\', + email_subject varchar(60) NOT NULL default \'\', + email_body text NOT NULL, + batch_start mediumint(8) NOT NULL default \'0\', + batch_size smallint(5) unsigned NOT NULL default \'0\', + batch_wait smallint(6) NOT NULL default \'0\', + status smallint(6) NOT NULL default \'0\', + user_id mediumint(8) NOT NULL default \'0\', + PRIMARY KEY (mail_id) ) '; $sql[] = "ALTER TABLE " . $mx_table_prefix . "contact_msgs ADD institution VARCHAR(50) NOT NULL DEFAULT '' AFTER realname"; Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/db_install.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** db_install.php 28 Sep 2008 14:37:27 -0000 1.4 --- db_install.php 4 Oct 2008 07:44:53 -0000 1.5 *************** *** 35,40 **** } ! $mx_module_version = '2.0.0'; ! $mx_module_copy = 'mxBB <i> - Contact</i> module by OryNider'; // If fresh install --- 35,40 ---- } ! $mx_module_version = '2.9.0'; ! $mx_module_copy = 'MX-Publisher <i> - Contact</i> module by OryNider'; // If fresh install *************** *** 52,55 **** --- 52,57 ---- $sql[] = 'DROP TABLE IF EXISTS ' . $mx_table_prefix . 'contact_config'; $sql[] = 'DROP TABLE IF EXISTS ' . $mx_table_prefix . 'contact_emails'; + $sql[] = 'DROP TABLE IF EXISTS ' . $mx_table_prefix . 'contact_msgs'; + $sql[] = 'DROP TABLE IF EXISTS ' . $mx_table_prefix . 'contact_mass_news'; $sql[] = 'DROP TABLE IF EXISTS ' . $mx_table_prefix . 'contact'; *************** *** 84,91 **** upfile VARCHAR(255) NOT NULL DEFAULT \'\', PRIMARY KEY (msg_id) )'; ! $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_version\',\'9.0.0\')'; $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'newsletter_version\',\'1.0.0\')'; ! $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_admin_email\',\'\')'; $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_form_enable\',\'1\')'; $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_require_rname\',\'0\')'; --- 86,106 ---- upfile VARCHAR(255) NOT NULL DEFAULT \'\', PRIMARY KEY (msg_id) )'; ! ! $sql[] = 'CREATE TABLE ' . $mx_table_prefix . 'contact_mass_news ( ! mail_id smallint(5) unsigned NOT NULL auto_increment, ! mailsession_id varchar(32) NOT NULL default \'\', ! group_id mediumint(8) NOT NULL default \'0\', ! email_subject varchar(60) NOT NULL default \'\', ! email_body text NOT NULL, ! batch_start mediumint(8) NOT NULL default \'0\', ! batch_size smallint(5) unsigned NOT NULL default \'0\', ! batch_wait smallint(6) NOT NULL default \'0\', ! status smallint(6) NOT NULL default \'0\', ! user_id mediumint(8) NOT NULL default \'0\', ! PRIMARY KEY (mail_id) ) '; ! $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_version\',\'9.0.0\')'; $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'newsletter_version\',\'1.0.0\')'; ! $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_admin_email\',\'ad...@lo...\')'; $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_form_enable\',\'1\')'; $sql[] = 'INSERT INTO ' . $mx_table_prefix . 'contact_config VALUES(\'contact_require_rname\',\'0\')'; Index: mx_contact.pak =================================================================== RCS file: /cvsroot/mxbb/mx_contact/mx_contact.pak,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_contact.pak 12 Dec 2007 18:41:36 -0000 1.1 --- mx_contact.pak 4 Oct 2008 07:44:53 -0000 1.2 *************** *** 1,6 **** ! module=+:266=+:mxBB Contact=+:modules/mx_contact/=+:mx_contact=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:266=+:267=+:mxBB Contact=+:mxBB Contact block=+:mx_contact.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:mxBB Contact=+:Demo block=+:267=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 1,10 ---- ! module=+:52=+:Contact Module=+:modules/mx_contact/=+:mx_contact=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:52=+:54=+:Contact=+:Contact block=+:mx_contact.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Demo - Contact=+:Demo block=+:54=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 ! New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:52=+:55=+:NewsLetter=+:NewsLetter block=+:mx_newsletter.php=+: ! parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Demo - NewsLetter=+:Demo block=+:55=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 Index: mx_contact.php =================================================================== RCS file: /cvsroot/mxbb/mx_contact/mx_contact.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_contact.php 28 Sep 2008 14:37:27 -0000 1.3 --- mx_contact.php 4 Oct 2008 07:44:53 -0000 1.4 *************** *** 22,56 **** $is_block = FALSE; - include_once($module_root_path . 'includes/contact_constants.' . $phpEx); - - function this_contact_mxurl($args = '', $force_standalone_mode = false) - { - global $mx_root_path, $module_root_path, $page_id, $phpEx, $mx_block; - if( $force_standalone_mode || !is_object($mx_block) ) - { - $mxurl = $mx_root_path . 'modules/mx_contact/' . 'contact.' . $phpEx . ($args == '' ? '' : '?' . $args); - } - else - { - $mxurl = $mx_root_path . 'index.' . $phpEx; - if( is_numeric($page_id) && !empty($page_id) ) - { - $mxurl .= '?page=' . $page_id . ($args == '' ? '' : '&' . $args); - } - else - { - $mxurl .= '?page=' . $page_id . ($args == '' ? '' : '&' . $args); - } - } - return $mxurl; - } - - // - // Session management - // - $userdata = session_pagestart($user_ip, PAGE_CONTACT_FORM); - init_userprefs($userdata); $contact_config = array(); --- 22,29 ---- $is_block = FALSE; + include_once($module_root_path . 'includes/contact_constants.' . $phpEx); + include_once($module_root_path . 'includes/functions_newsletter.' . $phpEx); $contact_config = array(); *************** *** 496,500 **** 'USERNAME' => $user_name, ! 'CAPTCHA' => $module_root_path.'contact_captcha.'.$phpEx, 'S_FORM_ENCTYPE' => 'multipart/form-data', --- 469,473 ---- 'USERNAME' => $user_name, ! 'CAPTCHA' => $module_root_path.'mx_captcha.'.$phpEx, 'S_FORM_ENCTYPE' => 'multipart/form-data', |