Esempio n. 1
0
    $times = $_POST['autores_sendback_times'];
} else {
    $active = 'n';
}
// outout val_tos
$sql = sprintf("SELECT recip,id FROM autoresponder_recipient WHERE email='%d'", $db->escapeSimple($_SESSION['uid']));
$result =& $db->query($sql);
$table_val_tos = array();
while ($data = $result->fetchrow(DB_FETCHMODE_ASSOC)) {
    array_push($table_val_tos, array('recip' => $data['recip'], 'id' => $data['id']));
}
//output val_tos_active
$val_tos_active = get_email_options($_SESSION['uid'], "auto_val_tos_active", 0);
$smarty->assign('val_tos_active', $val_tos_active);
//output autoresponder disabled feature
$autores_disable = get_autores_disable($_SESSION['uid']);
//output xheader feature
if ($_SESSION['p_autores_xheader'] == 1) {
    $sql = sprintf("SELECT * FROM autoresponder_xheader WHERE email='%d' ORDER BY xheader", $db->escapeSimple($_SESSION['uid']));
    $result =& $db->query($sql);
    $table_xheader = array();
    while ($data = $result->fetchrow(DB_FETCHMODE_ASSOC)) {
        array_push($table_xheader, array('id' => $data['id'], 'xheader' => $data['xheader'], 'value' => $data['value']));
    }
    $smarty->assign('table_xheader', $table_xheader);
}
if (isset($autores_disable)) {
    $smarty->assign('autores_disable', $autores_disable);
} else {
    $smarty->assign('autores_disable', false);
}
Esempio n. 2
0
     $msg = $_POST['autores_msg'];
     $esubject = $_POST['autores_subject'];
     $times = $_POST['autores_sendback_times'];
 } else {
     $active = 'n';
     $msg = $config_autores_msg;
     $esubject = $config_autores_subject;
 }
 $smarty->assign('autores_subject', $esubject);
 $smarty->assign('autores_active', $active);
 $smarty->assign('autores_sendback_times_value', $times);
 $smarty->assign('id', $id);
 $smarty->assign('autores_msg', $msg);
 $smarty->assign('email', $_SESSION['email']);
 //output autoresponder disabled feature
 $autores_disable = get_autores_disable($_GET['id']);
 $smarty->assign('autores_disable', $autores_disable);
 /*  Autoresponder end */
 /* foward option save begin */
 if (isset($_POST['fwdmail_submit'])) {
     if (!empty($_POST['forwardaddress']) && Validate::email($_POST['forwardaddress']) != 1) {
         $smarty->assign('error_msg', 'y');
         $smarty->assign('if_error_forwardaddr_valid', 'y');
     } else {
         update_mailfilter('mail_forward', $_GET['id'], $_POST['forwardaddress'], $_POST['delete_forward'], $_POST['save_local']);
         run_systemscripts();
     }
 }
 /* foward option save begin */
 /* options save begin */
 if (isset($_POST['submit_mailoptions'])) {