Kod: Tümünü seç
<style>
include "setting.php";
li { padding:5px; font-weight:bold; list-style-type: circle;}</style>
<?php function index(){ ?>
<?php }function register(){ ?>
<?php if($_POST['act']=="1"){
global $g;
global $ip;
$name =addslashes($_POST['name']);
$email =addslashes(trim($_POST['email']));
$session =Sifrele($email);
$password1 =$_POST['password'];
$haber =addslashes($_POST['editor1']);
$gender =$_POST['gender'];
$city =$_POST['city'];
$bdate =$_POST['bdate'];
$email_control=mysql_num_rows(mysql_query("select email from members where email='$email'"));
if(($name=="") || ($email=="") || ($password1=="")){
print '<div class="error">Zorunlu alanları boş bırakmayınız.</div>';
}else if(!strstr($email,'@') || !strstr($email,'.')){
print '<div class="error">Doğrulanamayan E-Posta girdiniz. Lütfen kontrol ediniz.</div>';
}else if($email_control>0){
print '<div class="error">Böyle bir kullanıcı mevcut. Eğer şifrenizi unuttuysanız buraya tıklayarak şifre talebinde bulunabilirsiniz.</div>';
}else{
if($_POST['password']==""){
$password=Sifrele("123456");
}else{
$password=Sifrele($password1);
}
$data = $_FILES["detay_resim"]["tmp_name"];
if($data==""){
if($gender=="Bay"){
$yeniresim="m_photo.png";
}else{
$yeniresim="f_photo.png";
}
}else{
$datafiles ="files/members/default/";
$files1 ="files/members/thumb/";
$files2 ="files/members/small/";
$files3 ="files/members/default/";
$image=$_FILES['detay_resim']['name'];
$ruzanti = substr($image, -4);
$oran1 ="200";
$oran2 ="50";
$oran3 ="300";
if(($ruzanti==".jpg") or ($ruzanti==".png") or ($ruzanti==".gif")){
$imagename=$MembersID."-". substr(uniqid(md5(rand())), 0,20);
$yeniresim =$imagename . $ruzanti;
imageupload_avatar($data,$datafiles,$files1,$files2,$files3,$image,$oran1,$oran2,$oran3,$imagename);
}else{
}
}
$add=mysql_query($add);
$add=("insert into members (name,email,session,password,image,gender,birth_date,city,register_date,register_ip,state)values('$name','$email','$session','$password','$yeniresim','$gender','$bdate','$city',now(),'$ip','$state')");
if($add){
$mailadd=mysql_query("insert into maillist (email,ipno) values ('".$email."','".$ip."')");
$UyeYaz=Write("select * from members where email='$email'");
$_SESSION['members_session']=$UyeYaz['session'];
$MemSession = $_SESSION['members_session'];
print okmesaj("Başarılı bir şekilde işleminiz gerçekleşmiştir.","3","account.php?page=myaccount");
}else{
print errormesaj("Sistem hatası ! Lütfen daha sonra tekrar deneyiniz.","3","account.php?page=register");
}
}
}else{}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="hidden" value="1" name="act" />
<table width="60%" align="left" bgcolor="#F8F8F8" class="form_table">
<tr>
<td colspan="2" class="yesil_b"><div align="center">Yeni Üye Kayıt</div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">Üye Adı Soyadı Giriniz : ( Ad Soyad Ayrı Yazarak Üyelik Alabilirsiniz ) </td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8" ><input type="text" class="form_input" name="name" style=" font-size:22px;" /></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">E-Mail Adresi Giriniz : ( Bu alan boş bırakılamaz! ) </td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8" ><input type="text" class="form_input" name="email" style=" font-size:22px;" /></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">Şifre :</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8" ><input type="password" class="form_input" name="password" style=" font-size:22px;" /></td>
</tr>
<tr>
<td width="50%" bgcolor="F8F8F8" class="form_form_text">Cinsiyet</td>
<td width="50%" bgcolor="F8F8F8" class="form_form_text">Şehir</td>
</tr>
<tr>
<td bgcolor="#E8E8E8"><select name="gender" class="form_selectbox">
<option value="Bay" selected="selected">Bay</option>
<option value="Bayan">Bayan</option>
</select></td>
<td bgcolor="#E8E8E8"><select name="city" class="form_selectbox">
<?=City(34) ?>
</select></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">Üye Profil Resmi Seçiniz : ( Haberlerinizde Resminizin Yayınlanması için Gerekli )</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8"><input type="file" tabindex="1" name="detay_resim" class="form_input" style="background-color:#FFF; border:#ABADB3 1px solid" /></td>
</tr>
<tr>
<td colspan="2"><div align="right">
<input type="submit" class="button" style="padding:10px; margin-right:0px;" value=" Üye Kayıt " />
</div></td>
</tr>
</table>
</form>
<table class="form_table" width="38%" align="right" cellpadding="0" cellspacing="0">
<tr>
<td class="yesil_b"><div align="center">Üyelik neler kazandırır?</div>
</td>
</tr>
<tr>
<td>
<div style="padding:10px 5px 5px 5px;">
<ul>
<li>Sisteme üye olarak profilinizi oluşturabilirsiniz.</li>
<li>Haber Ekleyebilirsiniz.</li>
<li>Haber , video ve galerilere daha hızlı yorum yapabilir ve onaylatabilirsiniz.</li>
<li>Son dakika haberlerinden haberdar olabilirsiniz.</li>
<li>Firma Rehberine Firmanızı ekleyebilirsiniz.</li>
<li>Seri ilan ekleyebilirsiniz.</li>
<li>Yorumlarınızı takip edebilirsizin.</li></ul>
</div>
</td>
</tr>
</table>
<br />
<div style="clear:both"></div>
<?php }function login(){
global $link_register;
global $link_forgot_psw; ?>
<?php
if($_POST['act']=="1"){ // Form Submit kontrol başlangıç
global $g;
global $ip;
global $link_myaccount;
$email =addslashes(trim($_POST['email']));
$password1 =addslashes(trim($_POST['password']));
$password =Sifrele($password1);
if(($email=="") || ($password1=="")){ // Boş dolu form değerleri kontrolü başlangıç.
print '<div class="error">Zorunlu alanları boş bırakmayınız.</div>';
}else if(!strstr($email,'@') || !strstr($email,'.')){ // Geçersiz E-Posta adresi denemesi
print '<div class="error">Doğrulanamayan E-Posta girdiniz. Lütfen kontrol ediniz.</div>';
}else{
$sor=mysql_fetch_array(mysql_query("select * from members where email='$email' and password='$password'"));
if($sor['id']==""){ // Üye login sorgulama kontrolü.
print '<div class="error">Kullanıcı adı veya Şifreniz Yanlış!</div>';
}else{
$_SESSION['members_session']=$sor[session];
$MemSession = $_SESSION['members_session'];
@header("location:".$link_myaccount."");
}
} // Boş dolu form değerleri kontrolü bitiş
}else{} // Form submit kontrolü bitiş.
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="hidden" value="1" name="act" />
<table width="60%" align="left" bgcolor="#F8F8F8" class="form_table">
<tr>
<td width="100%" class="yesil_b"><div align="center">Üye Girişi</div></td>
</tr>
<tr>
<td bgcolor="#F8F8F8" class="form_form_text">E-Mail Adresi Giriniz :</td>
</tr>
<tr>
<td bgcolor="#E8E8E8" ><input type="text" class="form_input" name="email" style=" font-size:22px;" /></td>
</tr>
<tr>
<td bgcolor="#F8F8F8" class="form_form_text">Şifre :</td>
</tr>
<tr>
<td bgcolor="#E8E8E8" ><input type="password" class="form_input" name="password" style=" font-size:22px;" /></td>
</tr>
<tr>
<td>
<input type="submit" class="button" style="padding:10px; margin-right:0px; float:left" value=" Giriş Yap " />
<a href="<?=$link_forgot_psw ?>">
<input type="button" class="button" style="padding:10px; margin-left:0px; float:right" value=" Şifremi Unuttum " />
</a>
</td>
</tr>
</table>
</form>
<table class="form_table" width="38%" align="right" cellpadding="0" cellspacing="0">
<tr>
<td class="yesil_b"><div align="center">Henüz üye değil misin?</div></td>
</tr>
<tr>
<td class="yesil_b"><a href="<?=$link_register ?>"><img style="padding:2px; border:#F0F0F0 1px solid" src="thema/default/images/register.png" alt="Yeni Kayıt" border="0" /></a></td>
</tr>
</table>
<br />
<div style="clear:both"></div>
<?php }function forgot_psw(){
global $link_forgot_psw;
global $link_reset_psw;
global $g;
global $smtp;
if($_POST['act']=="1"){
$email=addslashes(strip_tags($_POST['email']));
$control=mysql_fetch_assoc(mysql_query("select id,name,email from members where email='$email'"));
if(($email=="")){
print '<div class="error">Lütfen boş alan bırakmayınız.</div>';
}else if(!strstr($email,'@') || !strstr($email,'.')){
print '<div class="error">Doğrulanamayan E-Posta girdiniz. Lütfen kontrol ediniz.</div>';
}else if($control['id']==""){
print '<div class="error">Böyle bir e-mail adresi ile kayıt bulunamamıştır.</div>';
}else if(empty($_SESSION['captcha']) || trim(strtolower($_REQUEST['captcha'])) != $_SESSION['captcha']){
print '<div class="error">Güvenlik kodunu yanlış girdiniz!</div>';
}else{
require_once("system/class/class.phpmailer.php");
$mail = new PHPMailer();
$mail->AddAddress("".$email.""); // Buraya hangi mail adresine gideceğiniz yazıyoruz.
$mail->AddReplyTo("".$smtp['smtp_email']."");
$mail->Subject = "Parola Sıfırlama"; // Mail Konusu
$mail->IsSMTP();
$mail->Host = "".$smtp['smtp_host'].""; // SMTP sunucu
$mail->SMTPAuth = true;
$mail->Username = "".$smtp['smtp_username'].""; // SMTP Kullanıcı adı
$mail->Password = "".$smtp['smtp_password'].""; // SMTP Şifre
$mail->IsHTML(true);
$mail->From = "".$smtp['smtp_email'].""; // Mail kimden gidecek. ( Gönderici )
$mail->FromName = "".$g['sitetitle'].""; // Mail gönderen kişinin adı.
$Body1 ='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Parola Sıfırlama</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body bgcolor="#ffffff">
<font size="-1" color="#333333" face="Arial">Sn. <strong>'.$control['name'].';</strong><br />
<br />
Az önce sitemiz üzerinden yeni şifre talebinde bulundunuz.<br />Aşağıdaki bağlantıya tıklayarak yeni şifreniz tanımlayabilirsiniz.
<br />
<br /></font>
<a href="'.$g['siteurl'].'/'.$link_reset_psw.'&email='.Sifrele($control[email]).'" style="color:red;" target="_blank"><b>'.$g['siteurl'].'/'.$link_reset_psw.'&email='.Sifrele($control[email]).'</b></a>
</body>
</html>';
$mail->Body =$Body1.$Body2.$Body3;
$mail->Send();
print '<div class="ok">Şifrenizi sıfırlamak için size bir bağlantı gönderdik. Lütfen E-mail hesabınıza giriş yaparak bu bağlantıya tıklayınız.<br />
Gelen kutunuzda bizim tarafımızdan gönderilmiş herhangi bir e-posta yoksa junk veya önemsiz kutusuna bakmayı unutmayınız. </div>';
unset($_SESSION['captcha']);
}
}else{}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="hidden" value="1" name="act" />
<table width="60%" align="center" bgcolor="#F8F8F8" class="form_table" style="border:#F0F0F0 1px solid; margin-bottom:10px;">
<tr>
<td colspan="3" class="yesil_b"><div align="center">Şifre Sıfırlama Paneli</div></td>
</tr>
<tr>
<td colspan="3" bgcolor="#F8F8F8" class="form_form_text">E-Mail Adresi Giriniz :</td>
</tr>
<tr>
<td colspan="3" ><input type="text" class="form_input" name="email" style=" font-size:22px;" /></td>
</tr>
<tr>
<td colspan="3" bgcolor="#F8F8F8" class="form_form_text">Güvenlik Kodu :</td>
</tr>
<tr>
<td width="22%" bgcolor="#FFFFFF" ><img src="captcha.php" id="captcha" align="left" style="padding:2px; border:#EAEAEA 1px solid; margin-right:10px;" height="50" /></td>
<td width="21%" bgcolor="#FFFFFF" ><a href="<?=$g['siteurl'] ?>/<?=$link_forgot_psw ?>#comment" onclick="document.getElementById('captcha').src='captcha.php?'+Math.random();document.getElementById('captcha-form').focus();" id="change-image">Değiştir</a></td>
<td width="57%" bgcolor="#FFFFFF" ><input class="comment_input" type="text" name="captcha" style="padding:5px; height:44px; width:94%; font-size:22px; font-weight:bold; margin-top:0px;" value="" /></td>
</tr>
<tr>
<td colspan="3">
<input type="submit" class="button" style="padding:10px; margin-right:0px; width:100%;" value=" Şifremi Sıfırla ve Gönder " /></td>
</tr>
</table>
</form>
<?php }function reset_psw(){
global $link_forgot_psw;
global $link_reset_psw;
global $link_login;
global $g;
global $smtp;
$GelenMail=$_GET['email'];
$KontrolEt=Write("select * from members where session='$GelenMail'");
if($KontrolEt['id']==""){ // Gelen mail değeri veritabanında yoksa uyarı ver
print '<div class="error">Böyle bir kullanıcı mevcut değildir. Lütfen bağlantınız kontrol ediniz.</div>';
}else{ // Gelen mail değeri veritabanında vartsa şifre değiştirme formunu başlat
if($_POST['act']=="1"){
$password1=$_POST['password'];
if($password1==""){
print '<div class="error">Lütfen şifrenizi giriniz.</div>';
}else{
$password=Sifrele($password1);
$Guncelle=Query("update members set password='$password' where session='$GelenMail'");
if($Guncelle){
print '<div class="ok">Şifreniz başarılı bir şekilde değiştirilmiştir. Yeni şifreniz ile giriş yapabilirsiniz. <br />
Yönlendiriliyorsunuz... Lütfen bekyiniz...</div>';
print '<meta http-equiv="refresh" content="1;url='.$link_login.'">';
}else{
print '<div class="error">Bir hata meydana geldi. Lütfen daha sonra tekrar deneyiniz. </div>';
}
}
}else{}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="hidden" value="1" name="act" />
<table width="60%" align="center" bgcolor="#F8F8F8" class="form_table" style="border:#F0F0F0 1px solid; margin-bottom:10px;">
<tr>
<td width="100%" class="yesil_b"><div align="center">Şifre Resetleme</div></td>
</tr>
<tr>
<td bgcolor="#F8F8F8" class="form_form_text"><strong>Sn.
<?=$KontrolEt['name'] ?>,</strong> Lütfen Şifrenizi Giriniz :</td>
</tr>
<tr>
<td ><input type="password" class="form_input" name="password" style=" font-size:22px;" /></td>
</tr>
<tr>
<td>
<input type="submit" class="button" style="padding:10px; margin-right:0px; width:100%;" value=" Şifremi Değiştir " /></td>
</tr>
</table>
</form>
<?
}
?>
<div style="clear:both"></div>
<?php }function myaccount(){
global $Members;
global $link_myaccount;
global $link_mycomment;
global $link_myadvert;
global $link_mylikes;
global $link_adminpanel;
if($Members['id']==""){
@header("location:index.php?");
}else{
?>
<script>
$(document).ready(function (){
$('.guncelle').click(function(){
$('.profil').css("display","none")
$('.inpultar').css("display","block")
});
});
</script>
<style>
.guncelle { cursor:pointer; }
</style>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="180" align="left" valign="top">
<img src="files/members/default/<?=$Members['image'] ?>" width="180" style="padding:2px; border:#F2F2F2 1px solid;" />
<div style="height:4px"></div>
<div class="button guncelle gun" style=" width:156px;">Hesabımı Güncelle</div>
</div></td>
<td width="89%" align="left" valign="top" style="padding:5px;"><div style="height:35px; margin-bottom:5px; margin-top:-3px;font-weight:bold; color:#036; background-color:#F0F0F0;">
<div class="header_general_menu_item"><a href="<?=$link_myaccount ?>">Hesabım</a></div>
<div class="header_general_menu_item"><a href="<?=$link_mycomment ?>">Yorumlarım</a></div>
<div class="header_general_menu_item"><a href="ilanlarim.html>">İlanlarım</a></div>
<?php if($Members['state']=="3"){ ?>
<div class="header_general_menu_item"><a target="_blank" href="<?=$link_adminpanel ?>/index.php">Admin Panel</a></div>
<?php }elseif($Members['state']=="2"){ ?>
<div class="header_general_menu_item"><a target="_blank" href="<?=$link_adminpanel ?>">Yazar Paneli</a></div>
<?php }elseif($Members['state']=="1"){ ?>
<div class="header_general_menu_item"><a target="_blank" href="<?=$link_adminpanel ?>/index.php">Editör Paneli</a></div>
<?php } ?>
</div>
<?php if($_GET['p']==""){
if($_POST['act']=="1"){
$name =addslashes($_POST['name']);
$password1 =$_POST['password'];
$gender =$_POST['gender'];
$city =$_POST['city'];
if($_POST['password']=="##########"){
$password=$Members['password'];
}else{
$password=Sifrele($password1);
}
$data = $_FILES["detay_resim"]["tmp_name"];
if($data==""){
$yeniresim=$Members['image'];
}else{
$datafiles ="files/members/default/";
$files1 ="files/members/thumb/";
$files2 ="files/members/small/";
$files3 ="files/members/default/";
$image=$_FILES['detay_resim']['name'];
$ruzanti = substr($image, -4);
$oran1 ="200";
$oran2 ="50";
$oran3 ="300";
if(($ruzanti==".jpg") or ($ruzanti==".png") or ($ruzanti==".gif")){
$imagename=$MembersID."-". substr(uniqid(md5(rand())), 0,20);
$yeniresim =$imagename . $ruzanti;
imageupload_avatar($data,$datafiles,$files1,$files2,$files3,$image,$oran1,$oran2,$oran3,$imagename);
}else{
}
}
$gun=mysql_query("update members set name='$name',password='$password',image='$yeniresim',gender='$gender',city='$city' where id='$Members[id]'");
if($gun){
print '<div class="ok">Başarılı bir şekilde güncelleme işlemi yapıldı.</div>';
print '<meta http-equiv="refresh" content="3;url='.$link_myaccount.'">';
}else{
print '<div class="error">Bir hata meydana geldi. Lütfen daha sonra tekrar deneyiniz.</div>';
print '<meta http-equiv="refresh" content="3;url='.$link_myaccount.'">';
}
}else{}
?>
<div class="profil" style="display:block;">
<table width="100%" cellspacing="0" cellpadding="0" class="form_table">
<tr>
<td width="16%"><strong class="form_form_text">Adınız Soyadınız </strong></td>
<td width="1%"><strong class="form_form_text">:</strong></td>
<td width="83%"><strong style="font-size:16px;"><?=$Members['name'] ?></strong></td>
</tr>
<tr>
<td><strong class="form_form_text">E-Mail Adresiniz</strong></td>
<td><strong class="form_form_text">:</strong></td>
<td><strong style="font-size:16px;"><?=$Members['email'] ?></strong></td>
</tr>
<tr>
<td><strong class="form_form_text">Cinsiyet</strong></td>
<td><strong class="form_form_text">:</strong></td>
<td><strong style="font-size:16px;"><?=$Members['gender'] ?></strong></td>
</tr>
<tr>
<td><strong class="form_form_text">Şehir </strong></td>
<td><strong class="form_form_text">:</strong></td>
<td><strong style="font-size:16px;"><?=CityWrite($Members['city']) ?></strong></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
<div class="inpultar" style="display:none;">
<form action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="act" value="1" />
<table width="100%" bgcolor="#F8F8F8" class="form_table">
<tr>
<td colspan="2" class="yesil_b"><div align="center">Hesap Bilgileriniz</div></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">Üye Adı Soyadı : </td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8" ><input type="text" class="form_input" name="name" style=" font-size:22px;" value="<?=$Members['name'] ?>" /></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">E-Mail Adresi ( Bu alan değiştirilemez. ) : </td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8" ><input type="text" class="form_input" name="email" disabled="disabled" style=" font-size:22px;" value="<?=$Members['email'] ?>" /></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">Şifre :</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8" ><input type="password" class="form_input" name="password" style=" font-size:22px;" value="##########" /></td>
</tr>
<tr>
<td width="50%" bgcolor="F8F8F8" class="form_form_text">Cinsiyet</td>
<td width="50%" bgcolor="F8F8F8" class="form_form_text">Şehir</td>
</tr>
<tr>
<td bgcolor="#E8E8E8"><select name="gender" class="form_selectbox">
<option value="Bay" <?php if($Members['gender']=="Bay"){ ?> selected="selected" <?php } ?>>Bay</option>
<option value="Bayan" <?php if($Members['gender']=="Bayan"){ ?> selected="selected" <?php } ?>>Bayan</option>
</select></td>
<td bgcolor="#E8E8E8"><select name="city" class="form_selectbox">
<?=City($Members['city']) ?>
</select></td>
</tr>
<tr>
<td colspan="2" bgcolor="#F8F8F8" class="form_form_text">Üye Profil Resmi Seçiniz : ( Boş bırakılırsa bir önceki resim değeri korunur. )</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8E8E8"><input type="file" tabindex="1" name="detay_resim" class="form_input" style="background-color:#FFF; border:#ABADB3 1px solid" /></td>
</tr>
<tr>
<td colspan="2"><div align="right">
<input type="submit" class="button" style="padding:10px; margin-right:0px;" value=" Güncelle " />
</div></td>
</tr>
</table>
</form>
</div>
<?php }elseif($_GET['p']=="mycomment"){
global $Members; ?>
<table width="100%" class="comment_table" cellspacing="0" cellpadding="0">
<tr>
<td width="51" bgcolor="#EBEBEB"><div align="center"><strong>Sıra</strong></div></td>
<td width="1205" bgcolor="#EBEBEB"><strong>Yorum</strong></td>
<td width="150" align="center" bgcolor="#EBEBEB"><strong>Tür</strong></td>
<td width="107" align="center" bgcolor="#EBEBEB"><strong>İşlemler</strong></td>
</tr>
<?php
$clistid='1';
$csql = "select * from comment where membersid='$Members[id]'";
$cnews_quer=mysql_query("".$csql." order by id desc");
while($cnews=mysql_fetch_array($cnews_quer)){
$cmembers1=Write("select * from members where id='$cnews[membersid]'");
if($cnews['type']=="1"){
$cdata=Write("select * from news where id='$cnews[cid]'");
$cdatatitle=$cdata['title'];
$clink=NewsLink($cdata['id'],$cdata['seotitle']);
}elseif($cnews['type']=="2"){
$cdata=Write("select * from article where id='$cnews[cid]'");
$cdatatitle=$cdata['title'];
$clink=ArticleLink($cdata['id'],$cdata['seotitle']);
}elseif($cnews['type']=="3"){
$cdata=Write("select * from photogallery where id='$cnews[cid]'");
$cdatatitle=$cdata['name'];
$clink=GalleryLink($cdata['id'],$cdata['seoname']);
}elseif($cnews['type']=="4"){
$cdata=Write("select * from video where id='$cnews[cid]'");
$cdatatitle=$cdata['title'];
$clink=VideoLink($cdata['id'],$cdata['seotitle']);
}
if($cmembers1['name']==""){
$cname=$news['name'];
$cemail=$news['email'];
}else{
$cname=$cmembers1['name'];
$cemail=$cmembers1['email'];
}
?>
<tr class="User" onmouseover="this.style.backgroundColor='#F1FFD5'; " onmouseout="this.style.backgroundColor='';">
<td><div style="font-weight:bold; color:#036" align="center"><?=$clistid ?></div></td>
<td >
<div style=" font-weight:bold; font-size:12px; line-height:20px; margin-bottom:10px; color: #C00; border-bottom: #EAEAEA 2px dotted;"><?=WriteTool($cname) ?> - <?=$cemail ?> - <span style="font-size:11px; font-weight:normal; color: #666"><?=$cnews['comment_date'] ?></span></div>
<div style="display:blcok; font-size:14px; padding-bottom:3px; font-weight:bold;" class="news_title_nor"><a style="color: #036" href="<?=$clink ?>#comment" target="_blank"><?=WriteTool($cdatatitle) ?></a></div>
<div style="display:blcok; font-size:13px; font-weight:bold; color:#000" class="news_title_nor"><?=WriteTool($cnews['title']) ?><br />
<div style=" font-weight:normal; font-size:12px; line-height:20px; margin-top:5px;"><?=stripslashes($cnews['comment']) ?></div></div>
</td>
<td align="center"><div style="text-align:center"><span style="color: #C00; font-weight:bold;"><?=CommentState($cnews['type']) ?></span></div></td>
<td align="center">
<div style="text-align:center"><?php if($cnews['state']=="0"){ ?>Onay Bekliyor <?php }else{ ?>Onaylandı<?php } ?></div></td>
</tr>
<?php $listid++; } ?>
</table>
<?php }elseif($_GET['p']=="myask"){
global $Members; ?>
<table width="100%" class="comment_table" cellspacing="0" cellpadding="0">
<tr>
<td width="51" bgcolor="#EBEBEB"><div align="center"><strong>Sıra</strong></div></td>
<td bgcolor="#EBEBEB"><strong>Soru</strong></td>
<td width="107" align="center" bgcolor="#EBEBEB"><strong>İşlemler</strong></td>
</tr>
<?php
$clistid='1';
$csql = "select * from ask_question where member='$Members[id]'";
$cnews_quer=mysql_query("".$csql." order by id desc");
while($cnews=mysql_fetch_array($cnews_quer)){
$cmembers1=Write("select * from members where id='$cnews[membersid]'");
$cname=$news['name'];
$cemail=$news['email'];
?>
<tr class="User" onmouseover="this.style.backgroundColor='#F1FFD5'; " onmouseout="this.style.backgroundColor='';">
<td><div style="font-weight:bold; color:#036" align="center"><?=$clistid ?></div></td>
<td >
<div style=" font-weight:bold; font-size:12px; line-height:20px; margin-bottom:10px; color: #C00; border-bottom: #EAEAEA 2px dotted;"><span style="font-size:11px; font-weight:normal; color: #666"><?=$cnews['date'] ?></span></div>
<div style="display:blcok; font-size:14px; padding-bottom:3px; font-weight:bold;" class="news_title_nor"><a style="color: #036" href="ask.php?id=<?=$cnews['id']?>" target="_blank"><?=WriteTool($cnews['title']) ?></a></div>
<div style=" font-weight:normal; font-size:12px; line-height:20px; margin-top:5px;"><?=stripslashes($cnews['question']) ?></div>
</td>
<td align="center">
<div style="text-align:center"><?php if($cnews['state']=="0"){ ?>Onay Bekliyor <?php }else{ ?>Onaylandı<?php } ?></div></td>
</tr>
<?php $listid++; } ?>
</table>
<?php }elseif($_GET['p']=="myadvert"){ ?>
<table width="100%" class="comment_table" cellspacing="0" cellpadding="0">
<tr>
<td width="55" bgcolor="#EBEBEB"><div align="center"><strong>Sıra</strong></div></td>
<td width="65" bgcolor="#EBEBEB"><strong>Resim</strong></td>
<td width="985" bgcolor="#EBEBEB"><strong>Başlık</strong></td>
<td width="66" align="center" bgcolor="#EBEBEB"><strong>Detay</strong></td>
<td width="233" align="center" bgcolor="#EBEBEB"><strong>Kategori</strong></td>
<td width="248" bgcolor="#EBEBEB"><strong>İşlemler</strong></td>
</tr>
<?php
$listid='1';
$ilanq=mysql_query("select * from ilan where members='$Members[id]' order by id desc");
while($ilan=mysql_fetch_array($ilanq)){
$ilancatid=$ilan['category'];
$ilancat=fetch(query("select * from ilancategory where id='$ilancatid'"));
?>
<tr class="User" onmouseover="this.style.backgroundColor='#F1FFD5'; " onmouseout="this.style.backgroundColor='';">
<td><div style="font-weight:bold; color:#036" align="center"><?=$listid ?></div></td>
<td><img src="files/ilan/thumb/<?=$ilan['images'] ?>" width="62" height="50" /></td>
<td >
<div style="display:blcok; font-size:14px; font-weight:bold; color:#000" class="news_title_nor"><?=WriteTool($ilan['title']) ?></div>
</td>
<td align="center" ><a href="<?=AdvertLink($ilan['id'],$ilan['seotitle']) ?>" target="_blank"><img border="0" src="admin/images/url_icon.png" /></a></td>
<td align="center"><span style="color:#999999; font-weight:bold;"><a style="color: #C00;" href="index.php?case=ilan&cat=<?=$cat['id'] ?>&state=<?=$_GET['state'] ?>"><?=stripslashes($ilancat['name']) ?></a></span></td>
<td>
<?php if($ilan['state']=="0"){ ?> Onay Bekliyor <?php }else{ ?> Yayında! <?php } ?>
</td>
</tr>
<?php $listid++; } ?>
</table>
<?php }elseif($_GET['p']=="mylikes"){ ?>
Beğendiklerim
<?php } ?>
</td>
</tr>
</table>
<?php } ?>
<?php }function logaut(){
if ($_SESSION['members_session'])
$header_user = $_SESSION['members_session'];
else
$header_user = "Ziyareti";
if (!$_SESSION['members_session']) {
header("Location:index.php?");
}
else {
unset($_SESSION['members_session']);
header("Location:index.php?");
}
?>
<?php
}
$p=$_GET["page"];
switch($p){
default:
index();
break;
case "register";
register();
break;
case "forgot_psw";
forgot_psw();
break;
case "reset_psw";
reset_psw();
break;
case "login";
login();
break;
case "myaccount";
myaccount();
break;
case "logaut";
logaut();
break;
}
?>