GetDBFieldCount("question_ip","ip='".GetUserIp()."' AND question_id='".$q_id."'")) { $SQL->Query("UPDATE question_answer SET votes=votes+1 WHERE id='$VOTE'"); $SQL->Query("INSERT INTO question_ip (ip,question_id,answer_id) VALUES ('".GetUserIp()."','$q_id','$VOTE')"); } } $reg_for_news_msg=''; $email=trim(strtolower($_POST["news_to_email"])); if(isset($_POST["reg_for_news"]) && $email) { if(!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/",$email)) $reg_for_news_msg=$LANG_ARRAY["LNG_EL_FOSTA_ARASWORIA"]; else if($SQL->GetDBFieldCount("news_to_email","email='$email'")) $reg_for_news_msg=$LANG_ARRAY["LNG_EL_FOSTA_UKVE_DAREGISTRIREBULIA"]; else { $SQL->Query("INSERT INTO news_to_email (email) VALUES ('$email')"); $reg_for_news_msg=$LANG_ARRAY["LNG_TQVEN_MIIGEBT_SIAXLEEBS_EL_FOSTAZE"].' : '.$email.''.mysql_error(); } } ?> <? echo strip_tags($WEBSITE_TITLE);?>
GetDBFieldCount("menu_bestnews", "mid='$LOAD_ID'")) { $showSlider=true; $SQL->Query("SELECT * FROM menu_bestnews WHERE mid='$LOAD_ID' ORDER BY pos ASC"); } else if($LOAD_MODULE == "fullmod" && intval($LOAD_ID) == 84 && $SQL->GetDBFieldCount("bestnews", "1=1")) { $showSlider=true; $SQL->Query("SELECT * FROM bestnews ORDER BY pos ASC"); } ?>