// advanced require "config.php"; connect_to_mysql(); # define transferred variables # $rt = $_GET['rt']; $display = $_GET['display']; $params = $_GET['params']; $memories = $_GET['memories']; $highlight= $_GET['highlight']; $w = $_GET['w']; $err = $_GET['err']; $user_ip = $_SERVER['REMOTE_ADDR']; # Authorization $additional_fields = $_POST['additional_fields']; $form_passwd = $_POST['form_passwd']; # Save params area # $fo_name = $_POST['fo_name']; # $fo_email = $_POST['fo_email']; $fo_res_pp = $_POST['fo_res_pp']; $fo_rate = $_POST['fo_rate']; $fo_mates = $_POST['fo_mates']; $params_save = $_POST['params_save']; # MSG Post $fo_subj = $_POST['fo_subj']; $fo_text = $_POST['fo_text']; $fo_name = $_POST['fo_name']; $fo_email = $_POST['fo_email']; $fo_replytoemail = $_POST['fo_replytoemail']; $fo_replyto = $_POST['fo_replyto']; $add = $_REQUEST['add']; if (isset($_POST['fo_legal'])) $fo_legal = $_POST['fo_legal']; else $fo_legal = $_COOKIE["cfo_legal"]; ################################ $fo_noreply = 0; $is_spam = 0; $dateFrom = "-30 week"; $preamble= $htmlhead.$preamble; if ($params_save) { //saving parameters setcookie("cfo_name", $fo_name, mktime()+86400*365); setcookie("cfo_email", $fo_email, mktime()+86400*365); setcookie("cfo_res_pp", $fo_res_pp, mktime()+86400*365); echo $preamble."
Настойки сохранены