Seditio ve Ldu hakkında sınırsız arama yapın
 
Arama motoru dostu linkler için ücretsiz bir eklenti.
Author: Xiao
Submitted by: Xiao   Date: 2007-12-23 20:38
Comments: (5)   Ratings:

Etiketler: advanced rewrite extension türkçe anlatım
ilk önce http://www.seditioforge.com/page.php?id=44&a=dl adresinden eklentiyi indirin.
Yüklenecek Dosyalar
system/rewrite.php
plugins/rewrite/rewrite.admin.php
plugins/rewrite/rewrite.input.php
plugins/rewrite/rewrite.setup.php
plugins/rewrite/rewrite.users.php

Değişiklik Yapılacak Dosyalar
system/common.php
system/functions.php
system/core/pfs/pfs.inc.php
system/core/polls/polls.inc.php


NOT:PHP Dosyalarında Değişiklik Yapmadan Önce Yedek Almayı Unutmayınız

daha sonra
system/common.php dosyasını açın

Bulun:
Code:
/* ======== Anti-XSS protection ======== */

$xg = sed_import('x','G','ALP');
$xp = sed_import('x','P','ALP');

$xk = sed_check_xp();


Bununla Değiştirin:

Code:
/* === Hook === */
$extp = sed_getextplugins('input');
if (is_array <http://www.php.net/is_array>($extp))
{ foreach($extp as $k => $pl) { include('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ======================== */

/* ======== Anti-XSS protection ======== */

$xg = sed_import('x','G','ALP');
$xp = sed_import('x','P','ALP');

$xk = sed_check_xp();


yine common.php içinde bulun:

Code:
/* ======== Gzip and output filtering ======== */

if ($cfg['gzip'])
{ @ob_start <http://www.php.net/ob_start>('ob_gzhandler'); }
else
{ ob_start <http://www.php.net/ob_start>(); }

ob_start <http://www.php.net/ob_start>('sed_outputfilters');


Üstüne ekleyin:

Code:
// Enables rewrite
ob_start <http://www.php.net/ob_start>('rewrite_output');
kaydedin ve ftp ye yükleyin.

system/functions.php dosyasını açın.

bulun:

Code:
function sed_javascript($more='')
{
$result = "<script type=\"text/javascript\">
<!--

function popup(code,w,h)
{ window.open('plug.php?o='+code,'','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width='+w+',height='+h+',left=32,top=16'); }

function pfs(id,c1,c2)
{ window.open('pfs.php?userid='+id+'&c1='+c1+'&c2='+c2,'PFS','status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16'); }

function help(rcode,c1,c2)
{ window.open('plug.php?h='+rcode+'&c1='+c1+'&c2='+c2,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=32,top=16'); }

function comments(rcode)
{ window.open('comments.php?id='+rcode,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16'); }

function ratings(rcode)
{ window.open('ratings.php?id='+rcode,'Ratings','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16'); }

function polls(rcode)
{ window.open('polls.php?id='+rcode,'Polls','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=608,height=448,left=16,top=16'); }

function pollvote(rcode,rvote)
{ window.open('polls.php?a=send&id='+rcode+'&vote='+rvote,'Polls','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=608,height=448,left=16,top=16'); }

function picture(url,sx,sy)
{ window.open('pfs.php?m=view&v='+url,'Picture','toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width='+sx+',height='+sy+',left=0,top=0'); }

function redirect(url)
{ location.href = url.options[url.selectedIndex].value; }

function toggleblock(id)
{
var bl = document.getElementById(id);
if(bl.style.display == 'none')
{ bl.style.display = ''; }
else
{ bl.style.display = 'none'; }
}

window.name='main';

".$more."

//-->
</script>";
return ($result);
}

/* ------------------ */


Alttaki ile değiştirin:

Code:
function sed_javascript($more='')
{
$result = "<script type=\"text/javascript\">
<!--

function popup(code,w,h) {
var l = 'plug.php?o=_CODE_';
l = l.replace('_CODE_', code);
window.open(l,'','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width='+w+',height='+h+',left=32,top=16');
}

function pfs(id,c1,c2) {
var l = 'pfs.php?userid=_ID_&c1=_C1_&c2=_C2_';
l = l.replace('_ID_', id);
l = l.replace('_C1_', c1);
l = l.replace('_C2_', c2);
window.open(l,'PFS','status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16');
}

function help(rcode,c1,c2) {
var l = 'plug.php?h=_RCODE_&c1=_C1_&c2=_C2_';
l = l.replace('_RCODE_', rcode);
l = l.replace('_C1_', c1);
l = l.replace('_C2_', c2);
window.open(l,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=32,top=16');
}

function comments(rcode) {
var l = 'plug.php?id=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16');
}

function ratings(rcode) {
var l = 'ratings.php?id=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Ratings','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16');
}

function polls(rcode) {
var l = 'polls.php?id=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Polls','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=608,height=448,left=16,top=16');
}

function pollvote(rcode,rvote) {
var l = 'polls.php?a=send&id=_RCODE_&vote=_RVOTE_';
l = l.replace('_RCODE_', rcode);
l = l.replace('_RVOTE_', rvote);
window.open(l,'Polls','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=608,height=448,left=16,top=16');
}

function picture(url,sx,sy) {
var l = 'pfs.php?m=view&v=_URL';
l = l.replace('_URL_', url);
window.open(l,'Picture','toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width='+sx+',height='+sy+',left=0,top=0');
}

function redirect(url)
{ location.href = url.options[url.selectedIndex].value; }

function toggleblock(id)
{
var bl = document.getElementById(id);
if(bl.style.display == 'none')
{ bl.style.display = ''; }
else
{ bl.style.display = 'none'; }
}

window.name='main';

".$more."

//-->
</script>";
return ($result);
}


Bulun: (bu kod php dosyasının en sonunda olur!)

Code:
?>


üztüne ekleyin:

Code:
// Rewrite patch
$SEP = (strstr(__FILE__, '\\') === FALSE) ? '/' : '\\';
require_once dirname(__FILE__).$SEP.'rewrite.php';


kaydedin ve ftp deki dizinine yükleyin.

açın:

'system/core/pfs/pfs.inc.php'
bulun:
Code:
$pfs_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".sed_htmlmetas()."
<script type=\"text/javascript\">
<!--
function help(rcode,c1,c2)
{ window.open('plug.php?h='+rcode+'&c1='+c1+'&c2='+c2,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=512,top=16'); }
function addthumb(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[thumb=".$cfg['th_dir_user']."'+gfile+']'+gfile+'[/thumb]'; }
function addpix(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[img]'+gfile+'[/img]'; }
function addfile(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[pfs]".$cfg['rel_dir_user']."'+gfile+'[/pfs]'; }
function addglink(id,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[gallery='+id+']".$L["pfs_gallery"]." #'+id+'[/gallery]'; }
function comments(rcode)
{ window.open('comments.php?id='+rcode,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=576,top=64'); }
function picture(url,sx,sy)
{ window.open('pfs.php?m=view&id='+url,'Picture','toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width='+sx+',height='+sy+',left=0,top=0'); }
function ratings(rcode)
{ window.open('ratings.php?id='+rcode,'Ratings','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16'); }
//-->
</script>
";


alttaki ile değiştirin:

Code:
$pfs_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".sed_htmlmetas()."
<script type=\"text/javascript\">
<!--
function help(rcode,c1,c2) {
var l = 'plug.php?h=_RCODE_&c1=_C1_&c2=_C2_';
l = l.replace('_RCODE_', rcode);
l = l.replace('_C1_', c1);
l = l.replace('_C2_', c2);
window.open(l,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=32,top=16');
}

function addthumb(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[thumb=".$cfg['th_dir_user']."'+gfile+']'+gfile+'[/thumb]'; }
function addpix(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[img]'+gfile+'[/img]'; }
function addfile(gfile,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[pfs]".$cfg['rel_dir_user']."'+gfile+'[/pfs]'; }
function addglink(id,c1,c2)
{ opener.document.".$c1.".".$c2.".value += '[gallery='+id+']".$L["pfs_gallery"]." #'+id+'[/gallery]'; }

function comments(rcode) {
var l = 'plug.php?id=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16');
}

function picture(url,sx,sy) {
var l = 'pfs.php?m=view&v=_URL';
l = l.replace('_URL_', url);
window.open(l,'Picture','toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width='+sx+',height='+sy+',left=0,top=0');
}

function ratings(rcode) {
var l = 'ratings.php?id=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Ratings','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16');
}

//-->
</script>
";


kaydedin ve ftp deki dizine yükleyin.

system/core/polls/polls.inc.php dosyasını açın:

Bulun:
Code:
$polls_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".sed_htmlmetas()."
<script type=\"text/javascript\">
<!--
function help(rcode)
{ window.open('plug.php?h='+rcode,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=400,height=512,left=32,top=16'); }
function comments(rcode)
{ window.open('comments.php?id='+rcode,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=400,height=512,left=16,top=16'); }
function help(rcode,c1,c2)
{ window.open('plug.php?h='+rcode+'&c1='+c1+'&c2='+c2,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=512,top=16'); }
function pfs(id,c1,c2)
{
window.open('pfs.php?userid='+id+'&c1='+c1+'&c2='+c2,'PFS','status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16');
}
//-->
</script>";


Alttaki ile değiştirin:
Code:
$polls_header1 = $cfg['doctype']."<html><head>
<title>".$cfg['maintitle']."</title>".sed_htmlmetas()."
<script type=\"text/javascript\">
<!--
function pfs(id,c1,c2) {
var l = 'pfs.php?userid=_ID_&c1=_C1_&c2=_C2_';
l = l.replace('_ID_', id);
l = l.replace('_C1_', c1);
l = l.replace('_C2_', c2);
window.open(l,'PFS','status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16');
}

function help(rcode) {
var l = 'plug.php?h=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=32,top=16');
}

function help(rcode,c1,c2) {
var l = 'plug.php?h=_RCODE_&c1=_C1_&c2=_C2_';
l = l.replace('_RCODE_', rcode);
l = l.replace('_C1_', c1);
l = l.replace('_C2_', c2);
window.open(l,'Help','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=32,top=16');
}

function comments(rcode) {
var l = 'plug.php?id=_RCODE_';
l = l.replace('_RCODE_', rcode);
window.open(l,'Comments','toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=16,top=16');
}
//-->
</script>";


Bu işlemleri yaptıktan sonra Yönetim paneli -> Araçlar -> Rewrite Extension and generate kısmına girin.orada htaccess kodlarınızı göreceksiniz.bunları bir text içine kaydettikten sonra ftp nizin ana dizinine yani index.php forums.php users.php gibi dosyaların bulunduğu dizine yükleyin ve adını .htaccess yapın.
Daha sonra yönetim paneli -> Konfigürasyon -> Rewrite Extension Bölümüne girin ve the rewrite engine seçeneğini enable yapın.
Bu makale Gökhan Yıldız tarafından seditio-tr.com için yazılmıştır.Kaynak gösterilmeden yayınlanamaz.
İlgili Bağlantılar: e-klasor.net
webkampus.com
xiaostudios.com

Benzer sayfalar (Similar pages) #BETA

Keywords (beta):

Forum Arşiv (beta):

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39] [40] [41] [42] [43] [44] [45] [46] [47] [48] [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88] [89] [90] [91] [92] [93] [94] [95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111] [112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] [133] [134] [135] [136] [137] [138] [139] [140] [141] [142] [143] [144] [145] [146] [147] [148] [149] [150] [151] [152] [153] [154] [155] [156] [157] [158] [159] [160] [161] [162] [163] [164] [165] [166] [167] [168] [169] [170] [171] [172] [173] [174] [175] [176] [177] [178] [179] [180] [181] [182] [183] [184] [185] [186] [187] [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] [198] [199] [200] [201] [202] [203] [204] [205] [206] [207] [208] [209] [210] [211] [212] [213] [214] [215] [216] [217] [218] [219] [220] [221] [222] [223] [224] [225] [226] [227] [228] [229] [230] [231] [232] [233] [234] [235]