session_start(); ?> if ($_GET['dil']) {$dil = $_GET['dil'];$_SESSION['dil']=$dil;} else {$dil='tr';$_SESSION['dil']=$dil;} if ($_GET || $_POST) { $id = toGet($_GET['id'], $_POST['id']); $uid = toGet($_GET['uid'], $_POST['uid']); $sid = toGet($_GET['sid'], $_POST['sid']); } $sql = "select * from t_ayarlar where dil='".$dil."'"; $_veri_ayar=DataRowID($sql); $sql = "select * from t_iletisim where dil='".$dil."' ORDER by s_no ASC limit 1"; $veri_il=DataRowID($sql); $sql = "select * from t_kategori_sayfa where dil='".$dil."' and ust_id=0 order by s_no ASC "; $_veri_kt=DataRow($sql); $sql = "select * from t_sayfalar where dil='".$dil."' and ust_id='".$id."' ORDER by s_no ASC limit 1"; $veri_sl=DataRowID($sql); if (isset($_POST) ) { $sql = "select email from t_user where email=".GetSQLValueString($_POST['email'], "text")." "; $veri_mail=checkData($sql); if ($veri_mail==0) { $insertSQL = sprintf("INSERT INTO t_user SET ad_soyad=%s, firma=%s, telefon=%s, email=%s, parola=%s", GetSQLValueString($_POST['ad_soyad'], "text"), GetSQLValueString($_POST['firma'], "text"), GetSQLValueString($_POST['tel'], "text"), GetSQLValueString($_POST['email'], "text"), GetSQLValueString(md5($_POST['parola']), "text") ); $res_kat = mysql_query($insertSQL); if ($res_kat==1) {$msg_ok=$kelimeler[$dil]['13'];} } else { $msg_ok=$kelimeler[$dil]['12']; } } ?>