Arkadaşlar Sitemin Admin Paneline Fck Editör Ekledim. Yalnız Çalışmadı :S
fck editör yerine sitenin ana sayfası çıkıyor 404 sayfası ana sayfaya yönleniyor.
admin panel sayfa kodlarım;
<?php
error_reporting(1);
/**********************************************************************************/
/* L & D MAKALE SİSTEMİ V.1.O */
/*================================================================================*/
/* */
/* Copyright (c) 2007-2008 By LiderDesign.Com- Net - Org */
/* Sistem Yazılım : Burak Altunok Sistem Yazılım Tarihi : 12.03.2008 Çarşamba */
/* http://www.liderdesign.com */
/* */
/**********************************************************************************/
function anasayfa($kategori, $altkategori){
global $baglanti;
sayfaac("YÖNETİM PANELİ - MAKALE EKLE - SEÇİM YAP");
include("fckeditor.php") ;
?><table border="1" width="100%" height="71" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<form action="?op=makaleekle" method="post">
<tr>
<td height="24" width="160"><b> Kategori Seç</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><select onchange="submit()" size="1" name="kategori"><option value="">Lütfen Kategori Seçin</option>
<?php
$kategoricek=mysql_query("select id, katadi from "._BURAK."kategoriler");
while(list($id, $katadi)=mysql_fetch_row($kategoricek))
if($kategori == $id) echo "<option value=$id selected>$katadi</option>";
else echo "<option value=$id>$katadi</option>";
?>
</select></td>
</tr>
</table>
</form>
<?
if($kategori){
?>
<table border="1" width="100%" height="71" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<form action="?op=makaleekle&kategori=<?=$kategori?>" method="post">
<tr>
<td height="24" width="160"><b> Alt Kategori Seç</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><select onchange="submit()" size="1" name="altkategori"><option value="">Lütfen Alt Kategori Seçin</option>
<?php
$kategoricek=mysql_query("select id, katadi from "._BURAK."altkategori where anakatid='$kategori'");
while(list($id, $katadi)=mysql_fetch_row($kategoricek))
if($altkategori == $id) echo "<option value=$id selected>$katadi</option>";
else echo "<option value=$id>$katadi</option>";
?>
</select></td>
</tr>
</table>
</form>
<?
?>
<table border="1" width="100%" height="71" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<form action="?op=makaleekle&tur=makalekaydet&kategori=<?=$kategori?>&altkategori=<?=$altkategori?>" method="post">
<tr>
<td height="24" width="160"><b> Alt-Alt Kategori Seç</b></td><option value="">Lütfen Alt Kategori Seçin</option>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><select size="1" name="altaltkategori">
<option value=""></option><?php
$kategoricek=mysql_query("select id, katadi from "._BURAK."altkategoriiki where altkatid='$altkategori'");
while(list($id, $katadi)=mysql_fetch_row($kategoricek))
echo "<option value=$id>$katadi</option>";
?>
</select></td>
</tr>
<tr>
<td height="24" width="160"><b> Makale Başlığı</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="baslik" size="45">
</td>
</tr>
<tr>
<td height="24" width="160"><b> Dil</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="dil" size="45">
</td>
</tr>
<tr>
<td height="24" width="160"><b> Boyut</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="boyut" size="45"></td>
</tr>
<tr>
<td height="24" width="160"><b> <font color="red">Download Link</font></b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="lisans" size="45"></td>
</tr>
<tr>
<td height="24" width="160"><b> Tag Ekleyin</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="tag" size="45"></td>
</tr>
<tr>
<td height="24" width="160"><b> Nasıl Oynanır?</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="oynama" size="45"></td>
</tr>
<tr>
<td height="24" width="160"><b> Ekleyen</b></td>
<option value="">Lütfen Alt2 Kategori Seçin</option>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="ekleyen" size="45"></td>
</tr>
<tr>
<td height="24" width="897" colspan="3">
<p align="center">
<div style="border:solid 1px #000000">
<?php
$sBasePath = $_SERVER['PHP_SELF'] ;
$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
$oFCKeditor = new FCKeditor('icerik') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->Value = html_entity_decode($icerik) ;
$oFCKeditor->Height = '397' ;
$oFCKeditor->Width = '600' ;
$oFCKeditor->Create() ;
?></div>
</td>
</tr>
<tr>
<td height="24" width="192" colspan="2"> </td>
<td height="24" width="699">
<input type="submit" value="Gönder Baba"></td>
</tr>
</table>
</form>
<?
}
sayfakapat();
}
//
function makalekaydet($kategori, $altkategori, $altaltkategori, $icerik, $baslik, $tag, $ekleyen, $dil, $boyut, $lisans, $oynama){
global $baglanti;
sayfaac("YÖNETİM PANELİ - ALT KATEGORİ KAYIT EDİLİYOR");
if(! $icerik){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale İçeriğini Boş Geçemezsiniz...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else{
$icerik =mysql_real_escape_string($icerik);
$tarih=date("Y-m-d");
$kaydetbakalim=mysql_query("insert into "._BURAK."makaleler (anakatid, altkatid, altaltid, baslik, icerik, tarih, tag, ekleyen, dil, boyut, lisans, oynama) values ('$kategori', '$altkategori', '$altaltkategori', '$baslik', '$icerik', '$tarih', '$tag', '$ekleyen', '$dil', '$boyut', '$lisans', '$oynama')") or die(mysql_error().'<br>'.mysql_errno());
if(! $kaydetbakalim){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale Eklenirken Bir Hata Meydana Geldi - Lütfen Tekrar Deneyiniz...Kod: 65s4dfg</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else{
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/onay.gif" width="46" height="47"><br>
<br>
<b>Makale Sisteme Başarıyla Eklenmiştir...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<meta http-equiv="Refresh" content="0; URL=?op=makaleekle">
<?
}
}
sayfakapat();
}
//
function anakategori(){
global $baglanti;
sayfaac("YÖNETİM PANELİ - MAKALE EKLE - ANA KATEGORİ");
include("spaw2/spaw.inc.php");
$spa = new SpawEditor("icerik");
?>
<table border="1" width="100%" bgcolor="#F5F5F5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<form action="?op=makaleekle&tur=anakategorikaydet" method="post">
<tr>
<td height="24" width="160"><b> Kategori Seç</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><select size="1" name="kategori">
<?php
$kategoricek=mysql_query("select id, katadi from "._BURAK."kategoriler");
while(list($id, $katadi)=mysql_fetch_row($kategoricek))
echo "<option value=$id>$katadi</option>";
?>
</select></td>
</tr>
<tr>
<td height="24" width="160"><b> Makale Başlığı</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="baslik" size="45"></td>
</tr>
<tr>
<td height="24" width="897" colspan="3">
<p align="center">
<?php
$spa ->show();
?>
</td>
</tr>
<tr>
<td height="24" width="192" colspan="2"> </td>
<td height="24" width="699">
<input type="submit" value="Makaleyi Kaydet"></td>
</tr>
</form>
</table>
<?
sayfakapat();
}
function altkategori(){
global $baglanti;
sayfaac("YÖNETİM PANELİ - MAKALE EKLE - ALT KATEGORİ");
include("spaw2/spaw.inc.php");
$spa = new SpawEditor("icerik");
?>
<table border="1" width="100%" bgcolor="#F5F5F5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<form action="?op=makaleekle&tur=altkategorikaydet" method="post">
<tr>
<td height="24" width="160"><b> Kategori Seç</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><select size="1" name="kategori">
<?php
$kategoricek=mysql_query("select id, katadi from "._BURAK."altkategori");
while(list($id, $katadi)=mysql_fetch_row($kategoricek))
echo "<option value=$id>$katadi</option>";
?>
</select></td>
</tr>
<tr>
<td height="24" width="160"><b> Makale Başlığı</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="baslik" size="45"></td>
</tr>
<tr>
<td height="24" width="897" colspan="3">
<p align="center">
<?php
$spa ->show();
?>
</td>
</tr>
<tr>
<td height="24" width="192" colspan="2"> </td>
<td height="24" width="699">
<input type="submit" value="Makaleyi Kaydet"></td>
</tr>
</form>
</table>
<?
sayfakapat();
}
function altkategori2(){
global $baglanti;
sayfaac("YÖNETİM PANELİ - MAKALE EKLE - ALT KATEGORİ 2");
include("spaw2/spaw.inc.php");
$spa = new SpawEditor("icerik");
?>
<table border="1" width="100%" bgcolor="#F5F5F5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<form action="?op=makaleekle&tur=altkategori2kaydet" method="post">
<tr>
<td height="24" width="160"><b> Kategori Seç</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><select size="1" name="kategori">
<?php
$kategoricek=mysql_query("select id, katadi from "._BURAK."altkategoriiki");
while(list($id, $katadi)=mysql_fetch_row($kategoricek))
echo "<option value=$id>$katadi</option>";
?>
</select></td>
</tr>
<tr>
<td height="24" width="160"><b> Makale Başlığı</b></td>
<td height="24" width="26">
<p align="center"><b>:</b></td>
<td height="24" width="699"><input type="text" name="baslik" size="45"></td>
</tr>
<tr>
<td height="24" width="897" colspan="3">
<p align="center">
<?php
$spa ->show();
?>
</td>
</tr>
<tr>
<td height="24" width="192" colspan="2"> </td>
<td height="24" width="699">
<input type="submit" value="Makaleyi Kaydet"></td>
</tr>
</form>
</table>
<?
sayfakapat();
}
function anakategorikaydet($kategori, $icerik, $baslik){
global $baglanti;
sayfaac("YÖNETİM PANELİ - ALT KATEGORİ KAYIT EDİLİYOR");
if(! $icerik){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale İçeriğini Boş Geçemezsiniz...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else{
$tarih=date("Y-m-d");
$kaydetbakalim=mysql_query("insert into "._BURAK."makaleler (anakatid, baslik, icerik, tarih) values ('$kategori', '$baslik', '$icerik', '$tarih')");
if(! $kaydetbakalim){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale Eklenirken Bir Hata Meydana Geldi - Lütfen Tekrar Deneyiniz...Kod: s4d5f4</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/onay.gif" width="46" height="47"><br>
<br>
<b>Makale Sisteme Başarıyla Eklenmiştir...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<meta http-equiv="Refresh" content="0; URL=?op=makaleekle">
<?
}
sayfakapat();
}
function altkategorikaydet($kategori, $icerik, $baslik){
global $baglanti;
sayfaac("YÖNETİM PANELİ - ALT KATEGORİ KAYIT EDİLİYOR");
if(! $icerik){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale İçeriğini Boş Geçemezsiniz...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else{
$tarih=date("Y-m-d");
$kaydetbakalim=mysql_query("insert into "._BURAK."makaleler (altkatid, baslik, icerik, tarih) values ('$kategori', '$baslik', '$icerik', '$tarih')");
if(! $kaydetbakalim){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale Eklenirken Bir Hata Meydana Geldi - Lütfen Tekrar Deneyiniz...Kod: s5d4f446</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/onay.gif" width="46" height="47"><br>
<br>
<b>Makale Sisteme Başarıyla Eklenmiştir...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<meta http-equiv="Refresh" content="0; URL=?op=makaleekle">
<?
}
sayfakapat();
}
function altkategori2kaydet($kategori, $icerik, $baslik){
global $baglanti;
sayfaac("YÖNETİM PANELİ - ALT KATEGORİ KAYIT EDİLİYOR");
if(! $icerik){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale İçeriğini Boş Geçemezsiniz...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else{
$tarih=date("Y-m-d");
$kaydetbakalim=mysql_query("insert into "._BURAK."makaleler (altaltid, baslik, icerik, tarih) values ('$kategori', '$baslik', '$icerik', '$tarih')");
if(! $kaydetbakalim){
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/reddet.gif" width="46" height="47"><br>
<br>
<b>Makale Eklenirken Bir Hata Meydana Geldi - Lütfen Tekrar Deneyiniz...Kod: a0sd2f1</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<?
}else
?>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#E6E6E6" width="100%">
<tr>
<td width="100%" bgcolor="#F3F3F3">
<p align="center"><br>
<img border="0" src="Resimler/onay.gif" width="46" height="47"><br>
<br>
<b>Makale Sisteme Başarıyla Eklenmiştir...</b></p>
<p align="center"><b>Lütfen Bekleyiniz <font color="#FF0000">5 Saniye </font>
Sonra Yönlendirileceksiniz...</b><br>
</td>
</tr>
</table>
<meta http-equiv="Refresh" content="0; URL=?op=makaleekle">
<?
}
sayfakapat();
}
if(!isset($tur)) $tur="anasayfa";
switch ($tur) {
case "anasayfa": anasayfa($kategori, $altkategori);break;
case "anakategori": anakategori();break;
case "altkategori": altkategori();break;
case "altkategori2": altkategori2();break;
case "anakategorikaydet": anakategorikaydet($kategori, $icerik, $baslik);break;
case "altkategorikaydet": altkategorikaydet($kategori, $icerik, $baslik);break;
case "altkategori2kaydet": altkategori2kaydet($kategori, $icerik, $baslik);break;
case "makalekaydet": makalekaydet($kategori, $altkategori, $altaltkategori, $icerik, $baslik, $tag, $ekleyen, $dil, $boyut, $lisans, $oynama);break;
}
?>Httaces Kodlarım;
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^anasayfa.html$ index.php [L]
RewriteRule ^bahtikara.html$ baht.php [L]
RewriteRule ^frodo.html$ frodo2.php [L]
RewriteRule ^kategoriler.html$ kategoriler.php [L]
RewriteRule ^(.*)/$ kategorilist.php?id=$1 [L]
RewriteRule ^(.*)-([0-9]+)$ kategori1.php?id=$2 [L]
RewriteRule ^(.*)/([0-9]+)/(.*).html$ makaledetay.php?makale_id=$2 [L]
RewriteRule ^tag/(.*)$ Arama.php?q=$1 [L]
RewriteRule ^(.*)/(.*).html$ kategori2.php?id=$1 [L]
Bi Türlü Çözemedim Sorunu. Yardım Eden Arkadaşlara Şimdiden Teşekkürler