$smarty->assign('if_error_autores_send_times', 'y'); $error = true; } else { save_autoresponder($_SESSION['uid'], $_POST['autores_active'], $_POST['autores_subject'], $_POST['autores_msg'], $_POST['autores_sendback_times']); // activate System-Script run_systemscripts(); } } } } } if (isset($_POST['val_tos_active']) && is_numeric($_POST['val_tos_active'])) { update_email_options($_SESSION['uid'], "auto_val_tos_active", $_POST['val_tos_active'], 0); } if (isset($_POST['val_tos_del'])) { val_tos_del($_SESSION['uid'], $_POST['val_tos']); } if (isset($_POST['val_tos_add'])) { if (val_tos_add($_SESSION['uid'], $_POST['val_tos_da']) == 1) { $smarty->assign('error_msg', 'y'); $smarty->assign('if_submit_email_wrong', 'y'); } } //xheader disable feature if ($_SESSION['p_autores_xheader'] == 1) { if (isset($_GET['xheader']) && is_numeric($_GET['xheader']) && isset($_GET['do']) && $_GET['do'] == 'del') { $sql = sprintf("DELETE FROM autoresponder_xheader WHERE email='%d' AND id='%d'", $db->escapeSimple($_SESSION['uid']), $db->escapeSimple($_GET['xheader'])); $db->query($sql); } if (isset($_POST['xheader_submit'])) { if (!empty($_POST['xheader_name']) && !empty($_POST['xheader_value'])) {
if (strlen($_POST['autores_subject']) > 50 && $_POST['autores_active'] == 'y') { $smarty->assign('error_msg', 'y'); $smarty->assign('if_error_autores_subject_to_long', 'y'); $error = true; } else { save_autoresponder($_GET['id'], $_POST['autores_active'], $_POST['autores_subject'], $_POST['autores_msg'], $_POST['autores_sendback_times']); run_systemscripts(); } } } } if (isset($_POST['val_tos_active']) && is_numeric($_POST['val_tos_active'])) { update_email_options($_GET['id'], "auto_val_tos_active", $_POST['val_tos_active'], 0); } if (isset($_POST['val_tos_del'])) { val_tos_del($_GET['id'], $_POST['val_tos']); } if (isset($_POST['val_tos_add'])) { if (val_tos_add($_GET['id'], $_POST['val_tos_da']) == 1) { $smarty->assign('error_msg', 'y'); $smarty->assign('if_submit_email_wrong', 'y'); } } //automatic disable autoresponder: //save automatic autoresponder disable feaure if (isset($_POST['autores_datedisable_submit'])) { if ($_POST['autores_datedisable_active'] == 0) { $sql = sprintf("UPDATE autoresponder_disable SET active='0' WHERE email='%d'", $db->escapeSimple($_GET['id'])); $result =& $db->query($sql); } elseif (!preg_match('/^([0-9]{2}).([0-9]{2}).([0-9]{4})$/', $_POST['autores_datedisable_date'])) { $smarty->assign('error_msg', 'y');