Changeset 18331
- Timestamp:
- Sep 28, 2012, 1:58:02 PM (12 years ago)
- Location:
- extensions/ContactForm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/admin/config.php
r17945 r18331 14 14 'cf_mandatory_name' => isset($_POST['cf_mandatory_name']), 15 15 'cf_mail_type' => $_POST['cf_mail_type'], 16 'cf_redirect_url' => $_POST['cf_redirect_url'], 16 17 ); 17 18 $conf['ContactForm_before'] = $_POST['cf_before']; -
extensions/ContactForm/admin/emails.php
r17945 r18331 5 5 if (isset($_POST['save_emails'])) 6 6 { 7 var_dump($_POST);8 7 $emails = array(); 9 8 foreach ($_POST['emails'] as $entry) -
extensions/ContactForm/admin/template/config.tpl
r17945 r18331 31 31 <input type="checkbox" name="cf_mandatory_name" value="1" {if $cf_mandatory_name}checked="checked"{/if}> 32 32 {'Name is mandatory'|@translate} 33 </label> 34 </li> 35 <li> 36 <label> 37 <input type="text" name="cf_redirect_url" value="{$cf_redirect_url}" size="30"> 38 {'Redirect after sending email (optional)'|@translate} 33 39 </label> 34 40 </li> -
extensions/ContactForm/include/contact_form.inc.php
r18315 r18331 27 27 { 28 28 case 'validate': 29 array_push($page['infos'], l10n('E-mail sent successfully')); 30 unset($contact); 29 $_SESSION['page_infos'][] = l10n('E-mail sent successfully'); 30 if (!empty($conf['ContactForm']['cf_redirect_url'])) 31 { 32 redirect($conf['ContactForm']['cf_redirect_url']); 33 } 34 else 35 { 36 redirect(CONTACT_FORM_PUBLIC); 37 } 31 38 break; 32 39 case 'moderate': … … 34 41 break; 35 42 default: 36 trigger_error('Invalid commentaction '.$comment_action, E_USER_WARNING);43 trigger_error('Invalid action '.$comment_action, E_USER_WARNING); 37 44 } 38 45 } -
extensions/ContactForm/include/functions.inc.php
r17945 r18331 93 93 CONTACT_FORM_TABLE, 94 94 array('name','email','active'), 95 $email 95 $emails 96 96 ); 97 97 -
extensions/ContactForm/include/install.inc.php
r17945 r18331 32 32 'cf_redirect_delay' => 5, 33 33 'cf_mail_type' => 'text/html', 34 'cf_redirect_url' => null, 34 35 )); 35 36 … … 53 54 $new_conf['cf_default_subject'] = 'A comment on your site'; 54 55 $new_conf['cf_mail_type'] = 'text/html'; 56 $new_conf['cf_redirect_url'] = null; 55 57 56 58 // move emails to database -
extensions/ContactForm/language/en_UK/plugin.lang.php
r17945 r18331 54 54 $lang['%s must not be more than %d characters long'] = '%s must not be more than %d characters long'; 55 55 $lang['Error while sending e-mail'] = 'Error while sending e-mail'; 56 $lang['Redirect after sending email (optional)'] = 'Redirect after sending email (optional)'; 56 57 57 58 ?> -
extensions/ContactForm/language/fr_FR/plugin.lang.php
r17945 r18331 55 55 $lang['%s must not be more than %d characters long'] = '%s ne doit pas faire plus de %d caractères'; 56 56 $lang['Error while sending e-mail'] = 'Erreur lors de l\'envoi de l\'e-mail'; 57 $lang['Redirect after sending email (optional)'] = 'Rediriger après l\'envoi du mail (optionel)'; 57 58 58 59 ?>
Note: See TracChangeset
for help on using the changeset viewer.