bu dosyayı içermesi için yazılmış bu kod, setting.php'yi notepad ile aç, senin sunucunun bilgileri ile uyuşup uyuşmadığını kontrol et bakalım.
setting.php
<?php
include("config.php");
$link = mysql_connect ($host,$user,$password);
function guvenlik($q) {
$q = htmlspecialchars(stripslashes($q));
$oldchar=Array("<script","<script","'","(",")",";","(",")","<iframe","<iframe","insert into","delete from","mysql_query");
$q = str_replace($oldchar,"",$q);
$q = trim($q);
return $q;
}
function seo($deger) {
$deger = strtolower($deger);
$turkce=array("ş", "Ş", "ı", "(", ")", "", "ü", "Ü", "ö", "Ö", "ç", "Ç", " ", "/", "*", "?", "ş", "Ş", "ı", "ğ", "Ğ", "İ", "ö", "Ö", "Ç", "ç", "ü", "Ü");
$duzgun=array("s", "S", "i", "", "", "", "u", "U", "o", "O", "c", "C", "-", "-", "-", "", "s", "S", "i", "g", "G", "I", "o", "O", "C", "c", "u", "U");
$deger=str_replace($turkce,$duzgun,$deger);
$deger = preg_replace("@[^A-Za-z0-9\-_]+@i","",$deger);
return $deger;
}
$db_sec = mysql_select_db($database,$link);
mysql_query("set names utf8");
$sql = mysql_query("SELECT * FROM ayarlar");
$a = mysql_fetch_assoc($sql);
$title = $a[title];
$description = $a[description];
$keywords = $a[keywords];
$maxilan = $a[maxilan];
$bakim = $a[bakim];
$normal_resim_siniri= $a[normal_resim_siniri];;
$normal_magaza_resim_siniri= $a[normal_magaza_resim_siniri];;
$super_magaza_resim_siniri= $a[super_magaza_resim_siniri];;
$nowww=$a[nowww];
$siteadres="www.".$nowww;
$watermark=$a[watermark];
$mailhost=$a[mailhost];
$sitemail=$a[sitemail];
$mailsifresi=$a[mailsifresi];
$_SERVER[REQUEST_URI]=urldecode($_SERVER[REQUEST_URI]);
$ucretkat=mysql_query("select * from kategoriler where ust_kategori='0'");
while($kat=mysql_fetch_assoc($ucretkat)){
$ilan_ucret[$kat[Id]]=$kat[ilan_ucreti];
}
$ucretkat2=mysql_query("select * from kategoriler where ust_kategori='0'");
while($kat2=mysql_fetch_assoc($ucretkat2)){
$magaza_ucret[$kat2[Id]."-6ay-normal"]=$kat2["magaza_normal_6"];
$magaza_ucret[$kat2[Id]."-12ay-normal"]=$kat2["magaza_normal_12"];
$magaza_ucret[$kat2[Id]."-6ay-super"]=$kat2["magaza_super_6"];
$magaza_ucret[$kat2[Id]."-12ay-super"]=$kat2["magaza_super_12"];
}
function yeni_tarih($tarih)
{
$tarih1 = substr($tarih,0,4);
$tarih2 = substr($tarih,5,2);
$tarih3 = substr($tarih,8,2);
$saat = substr($tarih,11,8);
$ay1=array('01','02','03','04','05','06','07','08','09','10','11','12');
$ay2=array('Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık');
$yeniay=str_replace($ay1,$ay2,$tarih2);
echo $tarih3." ".$yeniay." ".$tarih1." ".$saat;
}
function doping_time($str)
{
$oldstr=array("1m","2m","3m","6m","12m");
$newstr=array("1 Ay","2 Ay","3 Ay","6 Ay","12 Ay");
$new_time = str_replace($oldstr,$newstr,$str);
return $new_time;
}
function doping_price($price)
{
echo $price." TL";
}
$pg=guvenlik($_GET['page']);
$ilnid=guvenlik($_GET['id']);
if($pg=='firma'and $ilnid!=''){
$ilngoruntule='1';
}
$mgzsor=mysql_query("select * from magaza_kullanicilari where uyeId='$_SESSION[uye]'");
$mgzsrg=mysql_num_rows($mgzsor);
$mgz_detay=mysql_fetch_array($mgzsor);
$sprmgz=mysql_fetch_assoc(mysql_query("select * from magazalar where Id='".$mgz_detay[magazaId]."' and onay='1'"));
if($ilngoruntule==1){
$rsmlimit=$super_magaza_resim_siniri;
}elseif($mgzsrg!=0 and $sprmgz[supermagaza]=='1'){
$rsmlimit=$super_magaza_resim_siniri;
}elseif($mgzsrg!=0 and $sprmgz[supermagaza]=='0'){
$rsmlimit=$normal_magaza_resim_siniri;
}else{
$rsmlimit=$normal_resim_siniri;
}
function ek_ilan_detaylari($field,$adId)
{
$ilan_ek_detayi=mysql_fetch_assoc(mysql_query("select * from custom_fields where field_name='$field' and ilanId='$adId'"));
return $ilan_ek_detayi[field_value];
}
function ek_detay($bolum,$ilnId)
{
$ilndetay=mysql_fetch_assoc(mysql_query("select * from custom_fields where field_name='$bolum' and ilanId='$ilnId'"));
echo $ilndetay[field_value];
}
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value)
{
$value = is_array($value) ?
array_map('stripslashes_deep',$value) :
stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep',$_POST);
$_GET = array_map('stripslashes_deep',$_GET);
$_COOKIE = array_map('stripslashes_deep',$_COOKIE);
$_REQUEST = array_map('stripslashes_deep',$_REQUEST);
}
?>