@saintx hocam birşeyin farkına vardım şu anda anasayfadan haberlere tıklayınca linkler şu şekilde görünüyor
http://www.domain/haberler-1579-tali...tan-ldrld.html
ama sayfa şu şekildede
http://www.domain/haberler-1579-tali...oldurludu.html açılıyor hangi dosyada olabilir acaba sorun acaba şu kodlardan olabilir mi ?
<?php
session_start();
ob_start();
include_once("ust.php");
include_once("ayarlar.php");
function alert( $mesaj, $yer )
{
echo "<script>";
echo "alert('{$mesaj}')";
echo "</script>";
header( "refresh:0 url={$yer}" );
}
function rasgele( $kackarakter )
{
$char = "abcdefghijklmnoprstuwvyzqxABCDEFGHIJKLMNOPRSTUVWYZQX1234567890";
$k = 1;
while ( $k <= $kackarakter )
{
$h = substr( $char, mt_rand( 0, strlen( $char ) - 1 ), 1 );
$s .= $h;
++$k;
}
echo $s;
return $s;
}
function tarih( $zaman )
{
$gunler = array( "Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi" );
$aylar = array(
NULL,
"Ocak",
"Şubat",
"Mart",
"Nisan",
"Mayıs",
"Haziran",
"Temmuz",
"Ağustos",
"Eylül",
"Ekim",
"Kasım",
"Aralık"
);
$tarih = date( "d", $zaman )." ".$aylar[date( "n", $zaman )]." ".date( "Y", $zaman )." ".$gunler[date( "w", $zaman )];
return $tarih;
}
function Temizle( $text )
{
$KotuBul = array( "<", ">", "script", "alert", "hacked", "refresh" );
$KotuDegistir = array( "?", "?", "?", "?", "?", "?" );
$text = str_replace( $KotuBul, $KotuDegistir, $text );
return $text;
}
function seoyap( $s )
{
$tr = array( "ş", "Ş", "ı", "I", "ğ", "Ğ", "ü", "Ü", "ö", "Ö", "Ç", "ç", "İ" );
$eng = array( "s", "s", "i", "i", "g", "g", "u", "u", "o", "o", "c", "c", "i" );
$s = str_replace( $tr, $eng, $s );
$s = strtolower( $s );
$s = preg_replace( "/&amp;amp;amp;amp;amp;amp;amp;amp;amp;.+?;/", "", $s );
$s = preg_replace( "/[^%a-z0-9 _-]/", "", $s );
$s = preg_replace( "/\\s+/", "-", $s );
$s = preg_replace( "|-+|", "-", $s );
$s = trim( $s, "-" );
return $s;
}
function trtemizle( $convertStr )
{
$search = array( "ç", "Ç", "ğ", "Ğ", "ı", "İ", "ö", "Ö", "s", "S", "ü", "Ü" );
$replace = array( "c", "c", "g", "G", "ı", "i", "o", "o", "s", "s", "u", "U" );
$convertStr = str_replace( $search, $replace, $convertStr );
$find = array( "é", "è", "ë", "ê", "É", "È", "Ë", "Ê" );
$convertStr = str_replace( $find, "e", $convertStr );
$find = array( "í", "ý", "ì", "î", "ï", "I", "Ý", "Í", "Ì", "Î", "Ï" );
$convertStr = str_replace( $find, "i", $convertStr );
$find = array( "ó", "ò", "ô", "Ó", "Ò", "Ô" );
$convertStr = str_replace( $find, "o", $convertStr );
$find = array( "á", "ä", "â", "à", "â", "Ä", "Â", "Á", "À", "Â" );
$convertStr = str_replace( $find, "a", $convertStr );
$find = array( "ú", "ù", "û", "Ú", "Ù", "Û" );
$convertStr = str_replace( $find, "u", $convertStr );
$find = array( "þ", "Þ" );
$convertStr = str_replace( $find, "s", $convertStr );
$find = array( "ð", "Ð" );
$convertStr = str_replace( $find, "g", $convertStr );
$convertStr = ucwords( $convertStr );
$convertStr = ereg_replace( "[^a-zA-Z0-9[:space:]]", "", $convertStr );
$convertStr = ereg_replace( "[[:space:]]{1,}", " ", $convertStr );
$convertStr = str_replace( " ", " ", $convertStr );
return $convertStr;
}
function time_to_now( $time )
{
$days = array( "Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi" );
$months = array(
NULL,
"Ocak",
"Şubat",
"Mart",
"Nisan",
"Mayıs",
"Haziran",
"Temmuz",
"Ağustos",
"Eylül",
"Ekim",
"Kasım",
"Aralık"
);
$date = date( "d", $time )." ".$months[date( "n", $time )]." ".date( "Y", $time )." ".$days[date( "w", $time )]." Saat ".date( "H:i", $time );
return $date;
}
function valid_email( $email )
{
return preg_match( "/^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})\$/i", $email );
}
function sec1( $a, $b )
{
if ( $a == $b )
{
$c = "selected";
}
else
{
$c = "";
}
return $c;
}
function sec2( $a, $b )
{
if ( $a == $b )
{
$c = "checked";
}
else
{
$c = "";
}
return $c;
}
function sec3( $a, $b )
{
if ( 0 < substr_count( $a, $b ) )
{
$c = "checked";
}
else
{
$c = "";
}
return $c;
}
function sec4( $a, $b )
{
if ( 0 < substr_count( $a, $b ) )
{
$c = "selected";
}
else
{
$c = "";
}
return $c;
}
function mailkontrol( $mail )
{
if ( strlen( $mail ) < 11 || substr_count( $mail, "mynet" ) == "1" )
{
return 0;
}
$mk = ereg( "^[a-zA-Z0-9_\\.\\-]+@[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-\\.]+\$", $mail );
if ( $mk == "" )
{
return 0;
}
return 1;
}
function kontrol( $a )
{
$a = strip_tags( $a );
$a = trim( $a );
$a = strtr( $a, "'\"", "``" );
return $a;
}
function sftemizle( $a )
{
$a = strtr( $a, "'", "`" );
$a = trim( $a );
return $a;
}
function uyari( $veri )
{
$son = "<center><br>{$veri}<br><strong><font size=7 face=\"Georgia, Times New Roman, Times, serif\">!</font></strong><br></center>";
return $son;
}
function yonlen( $sn, $nere )
{
header( "refresh: {$sn}; url={$nere}" );
}
function Orta( $nerde, $icerik )
{
echo "</td>\r\n <td valign=\"top\" class=\"orta-kolon\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td class=\"onay-baslik-back\">".$nerde."</td>\r\n </tr> <tr>\r\n <td><div class=\"uyelik-icerik\">\r\n ".$icerik."\r\n </div></td>\r\n </tr>\r\n \r\n</table></td>\r\n <td width=\"248\" valign=\"top\" class=\"sag-kolon\">\r\n";
}
?>