Ignore:
Timestamp:
Sep 28, 2012, 1:58:02 PM (12 years ago)
Author:
mistic100
Message:
  • add redirect url option
  • remove test code
  • fix fatal error at first installation
Location:
extensions/ContactForm/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/admin/config.php

    r17945 r18331  
    1414    'cf_mandatory_name' =>    isset($_POST['cf_mandatory_name']),
    1515    'cf_mail_type' =>         $_POST['cf_mail_type'],
     16    'cf_redirect_url' =>      $_POST['cf_redirect_url'],
    1617    );
    1718  $conf['ContactForm_before'] = $_POST['cf_before'];
  • extensions/ContactForm/admin/emails.php

    r17945 r18331  
    55if (isset($_POST['save_emails']))
    66{
    7   var_dump($_POST);
    87  $emails = array();
    98  foreach ($_POST['emails'] as $entry)
  • extensions/ContactForm/admin/template/config.tpl

    r17945 r18331  
    3131          <input type="checkbox" name="cf_mandatory_name" value="1" {if $cf_mandatory_name}checked="checked"{/if}>
    3232          {'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}
    3339        </label>
    3440      </li>
Note: See TracChangeset for help on using the changeset viewer.