@header('Content-Type: text/html; charset=iso-8859-9');
require_once 'ayarlar/ayar.php';
$s = @$_GET['s'];
$x = @$_GET['x'];
if(@$_GET['dil']=='en') {
$_SESSION['dil'] = 'en';
require_once 'dil/en.php';
} else if (@$_GET['dil']=='tr'){
$_SESSION['dil'] = 'tr';
require_once 'dil/tr.php';
} else if(!@$_SESSION['dil']) {
$_SESSION['dil'] = 'tr';
require_once 'dil/tr.php';
} else {
require_once 'dil/'.$_SESSION['dil'].'.php';
}
kurlarCek();
///////////////////// giriž //////////////////////////
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
$mesgond = "";
if(!@$_SESSION['hUser']) {
if(@$_POST["girisYap"]!="") {
//echo "ummu"; exit;
$sifresi = md5($_POST["ash"]);
$sorgu = mysql_query("SELECT * FROM uyeler WHERE uye_mail='".$_POST['ae']."' AND uye_sifre = '$sifresi'");
if (mysql_num_rows($sorgu)==1){
$hKat = mysql_result($sorgu,0,"uye_durum");
$hOnay = mysql_result($sorgu,0,"uye_onay");
if($hKat==0) {
redirect("?s=onayverify&kodx=".$hOnay);
} else {
$hId = $_SESSION['hId'] = mysql_result($sorgu,0,"uye_id");
$hAd = $_SESSION['hAd'] = mysql_result($sorgu,0,"uye_adi");
$hUser = $_SESSION['hUser'] = mysql_result($sorgu,0,"uye_mail");
$_SESSION['hKat'] = $hKat;
$_SESSION['hSid'] = $hSid;
if(@$_POST["hatirnaz"]=='hatirla') {
setcookie("username", $hUser.'-'.$sifresi, time()+604800);
}
redirect("?");
}
} else {
redirect("?s=giris&hata=1");
}
}
}
///////////////////// giriž //////////////////////////
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
//////////////////////////////////////////////////////
$sid = session_id();
if (@$s!="") {
$buicerik = @icerikCek2($s);
if($s=="cikis") {
$_SESSION = array();
if (@$_COOKIE['username']) {
$triad = setcookie("username", "", time()-42000);
if(!$triad) { echo "nope"; }
}
session_destroy();
redirect("?");
} else if (file_exists("icer/".$s.".php")) {
$ayxurun = @$_GET["urun"];
if($ayxurun>0) {
$ayoasd = mysql_query("SELECT * FROM urun WHERE ur_id = '".$ayxurun."'");
$ayuyur = mysql_num_rows($ayoasd);
if($ayuyur>0) {
$ayrumarka = mysql_result($ayoasd,0,"ur_marka");
$ayruadi = mysql_result($ayoasd,0,"ur_adi");
$ayrumarkatxt = XBul("marka","mr_adi","mr_id",$ayrumarka);
$sayfaBaslikk = $ayrumarkatxt." ".$ayruadi;
}
}
require_once 'icer/ust.php';
require_once 'icer/'.$s.'.php';
require_once 'icer/sag.php';
require_once "icer/ayak.php";
} else if($buicerik['d']>0) {
require_once 'icer/ust.php';
require_once 'icer/sol.php';
require_once 'icer/kat.php';
require_once 'icer/sag.php';
require_once "icer/ayak.php";
} else {
require_once 'icer/ust.php';
require_once 'icer/sol.php';
require_once 'icer/hata.php';
require_once 'icer/sag.php';
require_once "icer/ayak.php";
}
} else if (@$x!="") {
if (file_exists("icer/".$x.".php")) {
require_once 'icer/'.$x.'.php';
} else {
require_once 'icer/hata.php';
}
} else {
require_once 'icer/ust.php';
require_once 'icer/sol.php';
require_once 'icer/ana.php';
require_once 'icer/sag.php';
require_once "icer/ayak.php";
}
?>