Changeset 18649 for extensions/ContactForm
- Timestamp:
- Oct 16, 2012, 10:35:07 AM (12 years ago)
- Location:
- extensions/ContactForm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/admin/emails.php
r18331 r18649 27 27 } 28 28 29 pwg_query('TRUNCATE TABLE `'. CONTACT_FORM_TABLE. '` ');29 pwg_query('TRUNCATE TABLE `'. CONTACT_FORM_TABLE. '`;'); 30 30 31 31 mass_inserts( -
extensions/ContactForm/include/install.inc.php
r18331 r18649 30 30 'cf_mandatory_mail' => true, 31 31 'cf_mandatory_name' => true, 32 'cf_redirect_delay' => 5,33 32 'cf_mail_type' => 'text/html', 34 33 'cf_redirect_url' => null, … … 57 56 58 57 // move emails to database 59 $email = array();58 $emails = array(); 60 59 foreach ($new_conf['cf_admin_mails'] as $email => $data) 61 60 { … … 82 81 // save config 83 82 $conf['ContactForm'] = serialize($new_conf); 84 $conf['ContactForm_before'] = stripslashes( $conf['persoformtop']);85 $conf['ContactForm_after'] = stripslashes( $conf['persoformbottom']);83 $conf['ContactForm_before'] = stripslashes(@$conf['persoformtop']); 84 $conf['ContactForm_after'] = stripslashes(@$conf['persoformbottom']); 86 85 87 86 conf_update_param('ContactForm', $conf['ContactForm']); -
extensions/ContactForm/main.inc.php
r18315 r18649 45 45 46 46 if ( 47 CONTACT_FORM_VERSION == 'auto' or 47 48 $pwg_loaded_plugins[CONTACT_FORM_ID]['version'] == 'auto' or 48 49 version_compare($pwg_loaded_plugins[CONTACT_FORM_ID]['version'], CONTACT_FORM_VERSION, '<') … … 52 53 contact_form_install(); 53 54 54 if ( $pwg_loaded_plugins[CONTACT_FORM_ID]['version'] != 'auto')55 if ( $pwg_loaded_plugins[CONTACT_FORM_ID]['version'] != 'auto' and CONTACT_FORM_VERSION != 'auto' ) 55 56 { 56 57 $query = ' -
extensions/ContactForm/maintain.inc.php
r17945 r18649 21 21 function plugin_uninstall() 22 22 { 23 global $prefixeTable; 24 23 25 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%" LIMIT 3;'); 26 pwg_query('DROP TABLE IF EXISTS `'. $prefixeTable .'contact_form`;'); 24 27 } 25 28
Note: See TracChangeset
for help on using the changeset viewer.