[PHP]




Kodun Neresinde Sıkıntı Olabilir ?
[PHP]








Yeni Konu Ekle | Atrays Blog













header("refresh:0;url=AnaSayfa");
}else{ ?>




function seo_yap($str){
$preg = array('Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#', '.');
$match = array('c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp', '');
$perma = strtolower(str_replace($preg, $match, $str));
$perma = preg_replace("@[^A-Za-z0-9\-_\.\+]@i", ' ', $perma);
$perma = trim(preg_replace('/\s+/', ' ', $perma));
$perma = str_replace(' ', '-', $perma);
return $perma;
}
if(isset($_POST["konu_ac"])){


$art_title = strip_tags(trim($_POST["art_title"]));
$art_seo = seo_yap(strip_tags(trim($_POST["art_title"])));
$art_seo_link = strip_tags(trim($art_seo));

$art_keywords = strip_tags(trim($_POST["art_keywords"]));
$art_description = strip_tags(trim($_POST["art_description"]));
$art_image = strip_tags(trim($_POST["art_image"]));
$art_content = strip_tags(trim($_POST["art_content"]));
$art_author = strip_tags(trim($_SESSION['user_nickname']));
$art_category = strip_tags(trim($_POST["art_category"]));
$art_date = strip_tags(trim($_POST["art_date"]));
echo '
<script>
$("#art_seo).value = "'.seo_yap(strip_tags(trim($_POST["art_title"]))).'"