config["head"]["cur_path"]=""; $site->params["only_active"]="Y"; $site->config["pref_def"]["act"]=array("type"=>"string"); $site->config["pref_def"]["name"]=array("type"=>"string"); $site->config["pref_def"]["email"]=array("type"=>"string"); $site->config["pref_def"]["text"]=array("type"=>"string"); $site->config["pref_def"]["contact"]=array("type"=>"string"); $site->params_get(); $site->out_url(); $SETTINGS["part_name"]="Помощь/FAQ"; $SETTINGS['navigator']=array("/"=>"Главная",""=>$SETTINGS['part_name']); $SETTINGS["kur_page"]="question"; /*if($site->params["act"]=="save"){ if ($_SESSION['rand_num']>0 && $_SESSION['rand_num'] == $_REQUEST['check_num']) { }else{ error("Ошибочно задано поле Код"); } if(!is_set($_REQUEST["name"])) error("Ошибочно задано поле Имя"); if(!is_set($_REQUEST["email"])) error("Ошибочно задано поле Email"); $site->params["quest"] = $site->params["text"]; $site->params["active"]='N'; $site->insert(); if(!is_error()){ notify("Благодарим за проявленный интерес. Наши менеджеры ответят на Ваш вопрос в ближайшее время.
"); $admin_emails=admin_get_emails("question"); $title=$SETTINGS["SERVER_NAME"]." - Новый вопрос."; $body=""; $body="Новый вопрос с сайта ".$SETTINGS["SERVER_NAME"]."\n\n"; $body.="Имя: ".$site->params["name"]."\n"; if($site->params["email"]) $body.="Email: ".$site->params["email"]."\n"; $body.="Вопрос: \n".$site->params["text"]."\n"; $body.="\nДата: ".date("d.m.Y")."\n"; $body.="\n"; $email=($site->params["email"]!="")?$site->params["email"]:$SETTINGS["SERVER_EMAIL"]; send_email($admin_emails,$email,$title,array($body)); debug($body); $site->params["name"]=""; $site->params["email"]=""; $site->params["contact"]=""; $site->params["text"]=""; } } */ // echo_error(); include $SETTINGS["PATH_HTML"]."/top.html"; $SETTINGS["PAGER_COUNT_OBJ_ON_PAGE"]=0; $site->config["show"][]="resp"; $site->show(); include $SETTINGS["PATH_HTML"]."/question.html"; include $SETTINGS["PATH_HTML"]."/bottom.html"; debug_echo(); ?>