mirror of
https://github.com/php/doc-tr.git
synced 2026-03-23 23:02:09 +01:00
update for sync with English docs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 05568582247276cc2ee7b2b87f7df7d602e566c0 Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="win32service.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -23,20 +23,6 @@
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="win32service.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="win32service.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<section xml:id="win32service.security">
|
||||
<title>Güvenlik değerlendirmesi</title>
|
||||
<para>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: f8f7abd6d2641f88867ce92d1357af0bde5793b8 Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xattr.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -16,8 +15,9 @@
|
||||
<para>
|
||||
Bu işlevler sadece ek özniteliklerin desteklendiği dosya sistemlerinde
|
||||
dosya sistemi bağlanırken etkinleştirildikleri takdirde çalışır. Ek
|
||||
öznitelikleri desteklediği bilinen dosya sistemleri şunlardır: ext2,
|
||||
ext3, reiserfs, jfs ve xfs.
|
||||
öznitelikleri desteklediği bilinen dosya sistemleri şunlardır:
|
||||
<literal>ext2</literal>, <literal>ext3</literal>,
|
||||
<literal>reiserfs</literal>, <literal>jfs</literal> ve <literal>xfs</literal>.
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
@@ -27,20 +27,6 @@
|
||||
&reference.xattr.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xattr.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xattr.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: af4410a7e15898c3dbe83d6ea38246745ed9c6fb Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xdiff.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -25,19 +24,6 @@
|
||||
&reference.xdiff.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xdiff.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xdiff.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
</chapter>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: e700973701abc1897fb9af01d6efca3a53507f23 Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: ad323a863f0795ef39c4d8ae85e182b9086321d1 Maintainer: nilgun Status: ready -->
|
||||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.xml-error-string">
|
||||
<refnamediv>
|
||||
<refname>xml_error_string</refname>
|
||||
@@ -38,7 +38,7 @@
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
Belirtilen <parameter>hata_kodu</parameter> ile ilgili bir açıklama yoksa
|
||||
&null;, aksi takdirde açıklama dizgesini döndürür.
|
||||
&null; veya <literal>"Unknown"</literal>, aksi takdirde açıklama dizgesini döndürür.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: a8f6a0f119261d13b6d06aafd54a868fef18a5dd Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 765b2d6eec7dfbaeed900b32aa91a1360d73df42 Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xml.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -33,13 +33,6 @@ libexpat.a: $(OBJS)
|
||||
&reference.xml.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xml.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xml.resources">
|
||||
&reftitle.resources;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 8cdc6621f9826d04abc3e50438c010804d7e8683 Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xmlreader.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -21,20 +21,6 @@
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xmlreader.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xmlreader.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 4a742792da6fd1ba27acd118bfeeed326c8d9aaf Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 776c80a692c1c59d97250be2c5633ca5e3911110 Maintainer: nilgun Status: ready -->
|
||||
<refentry xml:id="xmlreader.isvalid" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>XMLReader::isValid</refname>
|
||||
@@ -13,7 +13,7 @@
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Çözümlenen düğüm geçerli ise &true; döner.
|
||||
Çözümlenen düğüm XML veya RelaxNG şemaya göre geçerli ise &true; döner.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
@@ -23,7 +23,7 @@
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
Belge geçerli ise &true;, değilse &false; döner.
|
||||
</para>
|
||||
</refsect1>
|
||||
<refsect1 role="examples">
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 383b579aef7ccf8e553603db99fd3c4a89bddabe Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 765b2d6eec7dfbaeed900b32aa91a1360d73df42 Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xmlrpc.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -15,13 +14,6 @@
|
||||
&reference.xmlrpc.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xmlrpc.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xmlrpc.resources">
|
||||
&reftitle.resources;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 8cdc6621f9826d04abc3e50438c010804d7e8683 Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 765b2d6eec7dfbaeed900b32aa91a1360d73df42 Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xmlwriter.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -23,13 +23,6 @@
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xmlwriter.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xmlwriter.resources">
|
||||
&reftitle.resources;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 383b579aef7ccf8e553603db99fd3c4a89bddabe Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="xsl.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -20,20 +19,6 @@
|
||||
&reference.xsl.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="xsl.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="xsl.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 95bdd6883b5dde9504701777ba81b3c5f15df52b Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="yaz.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -21,20 +20,6 @@
|
||||
&reference.yaz.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="yaz.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="yaz.resources">
|
||||
&reftitle.resources;
|
||||
&no.resource;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: aebf045bfb7f4f2350db5e1e908cf290be334075 Maintainer: nilgun Status: ready -->
|
||||
<!-- EN-Revision: 765b2d6eec7dfbaeed900b32aa91a1360d73df42 Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="zip.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
&reftitle.setup;
|
||||
|
||||
@@ -30,13 +30,6 @@
|
||||
&reference.zip.configure;
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Configuration -->
|
||||
<section xml:id="zip.configuration">
|
||||
&reftitle.runtime;
|
||||
&no.config;
|
||||
</section>
|
||||
<!-- }}} -->
|
||||
|
||||
<!-- {{{ Resources -->
|
||||
<section xml:id="zip.resources">
|
||||
&reftitle.resources;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- EN-Revision: 476ab39857fb032076f280fa5397ed483bf7e28d Maintainer: haluk Status: ready -->
|
||||
<!-- EN-Revision: b61758269e3619194047cb5d6d4962734372c0a6 Maintainer: haluk Status: ready -->
|
||||
<refentry xml:id="ziparchive.extractto" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>ZipArchive::extractTo</refname>
|
||||
@@ -22,6 +22,12 @@
|
||||
sağlar. Bu geçerli umask değeri ile sınırlanabilir. Geçerli umask değeri
|
||||
<function>umask</function> işlevi ile değiştirilebilir.
|
||||
</para>
|
||||
<para>
|
||||
Güvenlik nedeniyle özgün izinlere dokunulmaz. Bunun örneği
|
||||
<methodname>ZipArchive::getExternalAttributesIndex</methodname> sayfasındaki
|
||||
<link linkend="ziparchive.getexternalattributesindex.examples.perms">kod örneğinde</link>
|
||||
görülebilir.
|
||||
</para>
|
||||
</warning>
|
||||
</refsect1>
|
||||
<refsect1 role="parameters">
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: c5d92fd7127e059d448d43ba339f19956f83b05a Maintainer: nilgun Status: ready -->
|
||||
<!-- splitted from ./index.xml, last change in rev 1.66 -->
|
||||
<!-- EN-Revision: 91570644fbbe4d23e79908e1a04c4c4d003fe587 Maintainer: nilgun Status: ready -->
|
||||
<chapter xml:id="security.filesystem" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Dosya Sistemi Güvenliği</title>
|
||||
<simpara>
|
||||
@@ -13,7 +11,7 @@
|
||||
</simpara>
|
||||
<simpara>
|
||||
<acronym>PHP</acronym>, dosya sistemine kullanıcı seviyesinde düşük seviyeli erişime izin
|
||||
verecek şekilde tasarlandığından, /etc/passwd gibi sistem dosyalarını
|
||||
verecek şekilde tasarlandığından, <filename>/etc/passwd</filename> gibi sistem dosyalarını
|
||||
okumak, eternet bağlantılarını değiştirmek, yazıcılara iş göndermek ve
|
||||
benzerleri tamamen mümkündür. Bu durum sizin bazı önlemler almanızı
|
||||
gerektirir; dosyaları kimlerin okuyabileceğine ve kimlerin yazabileceğine
|
||||
@@ -31,6 +29,7 @@
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// Kullanıcının ev dizininden bir dosya silelim
|
||||
$kullanıcı = $_POST['kullanıcının_belirttiği_isim'];
|
||||
$kullanıcı_dosyası = $_POST['kullanıcının_belirttiği_dosyaismi'];
|
||||
@@ -39,6 +38,7 @@ $evdizini = "/home/$kullanıcı";
|
||||
unlink("$evdizini/$kullanıcı_dosyası");
|
||||
|
||||
echo "Dosya silindi!";
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -46,13 +46,15 @@ echo "Dosya silindi!";
|
||||
Birine ait bir kullanıcı ve dosya ismi bir formdan gönderilebileceğinden
|
||||
bunu yapmaya izni olmayan biri bile bu betikle dosya silebilir. Bu durumda
|
||||
kimlik doğrulaması yapabilen bir betik kullanmak daha iyi olabilir.
|
||||
Birinin formu kullanarak "../etc/" ve "passwd" girdiğini varsayalım ve
|
||||
Birinin formu kullanarak <literal>"../etc/"</literal> ve
|
||||
<literal>"passwd"</literal> girdiğini varsayalım ve
|
||||
betikte neler oluyor bakalım:
|
||||
<example>
|
||||
<title>... Bir dosya sistemi saldırısı</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// PHP kullanıcısının erişebildiği bir yerden bir dosyayı silelim.
|
||||
// PHP root yetkilerine sahip olsun.
|
||||
$kullanıcı = $_POST['kullanıcının_belirttiği_isim']; // "../etc"
|
||||
@@ -62,6 +64,7 @@ $evdizini = "/home/$kullanıcı"; // "/home/../etc"
|
||||
unlink("$evdizini/$kullanıcı_dosyası"); // "/home/../etc/passwd"
|
||||
|
||||
echo "Dosya silindi!";
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -85,6 +88,7 @@ echo "Dosya silindi!";
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
// PHP kullanıcısının erişebildiği bir dosyayı silelim.
|
||||
$kullanıcı = $_SERVER['REMOTE_USER']; // kimlik doğrulaması yapıyoruz
|
||||
$dosya = basename($_POST['kullanıcının_belirttiği_dosyaismi']);
|
||||
@@ -109,13 +113,14 @@ echo htmlentities($logstring, ENT_QUOTES);
|
||||
</example>
|
||||
Ancak, bu bile kusurları örtmeye yetmez. Eğer kimlik doğrulama sisteminiz
|
||||
kullanıcıya kendi ev dizinini belirtmesine izin veriyorsa ve kullanıcı
|
||||
"../etc/" dizinine oturum açmayı istiyorsa sistem hala tehdit altında
|
||||
<literal>"../etc/"</literal> dizinine oturum açmayı istiyorsa sistem hala tehdit altında
|
||||
demektir. Bu nedenle, sınanacak noktaları genişletmelisiniz:
|
||||
<example>
|
||||
<title>- Daha da güvenilir bir dosya silme betiği</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$kullanıcı = $_SERVER['REMOTE_USER']; // kimlik doğrulaması yapıyoruz
|
||||
$dosya = $_POST['kullanıcının_belirttiği_dosyaismi'];
|
||||
$evdizini = "/home/$kullanıcı";
|
||||
@@ -127,7 +132,8 @@ if (!ctype_alnum($kullanıcı) ||
|
||||
die("Kullanıcı veya dosya ismi hatalı");
|
||||
}
|
||||
|
||||
//vs...
|
||||
// vs...
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -135,10 +141,11 @@ if (!ctype_alnum($kullanıcı) ||
|
||||
</para>
|
||||
<para>
|
||||
Kullandığınız işletim sistemine bağlı olarak, dikkate alacağınız geniş
|
||||
bir dosya isimleri yelpazesi vardır: aygıt dosyaları (/dev/ veya COM1
|
||||
gibi), yapılandırma dosyaları (/etc/ ve .ini dosyaları), bildik saklama
|
||||
alanları (/home/, My Documents), vb. Bu nedenle, açıkça izin verilenler
|
||||
dışında kalan herşeyi yasaklamak en kolayıdır.
|
||||
bir dosya isimleri yelpazesi vardır: aygıt dosyaları (<filename>/dev/</filename>
|
||||
veya <filename>COM1</filename> gibi), yapılandırma dosyaları
|
||||
(<filename>/etc/</filename> ve <literal>.ini</literal> dosyaları), bildik saklama
|
||||
alanları (<filename>/home/</filename>, <filename>My Documents</filename>), vb.
|
||||
Bu nedenle, açıkça izin verilenler dışında kalan herşeyi yasaklamak en kolayıdır.
|
||||
</para>
|
||||
<sect1 xml:id="security.filesystem.nullbytes">
|
||||
<title>Boş baytlı girdiler</title>
|
||||
@@ -155,13 +162,15 @@ if (!ctype_alnum($kullanıcı) ||
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$dosya = $_GET['dosya']; // "../../etc/passwd\0"
|
||||
if (file_exists('/home/siteler/'.$dosya.'.php')) {
|
||||
if (file_exists('/home/siteler/'. $dosya . '.php')) {
|
||||
/* /home/siteler/../../etc/passwd mevcut olduğundan
|
||||
file_exists işlevi TRUE döndürür */
|
||||
include '/home/siteler/'.$dosya.'.php';
|
||||
include '/home/siteler/'. $dosya . '.php';
|
||||
// /etc/passwd dosyası betiğe dahil edildi
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -175,6 +184,7 @@ if (file_exists('/home/siteler/'.$dosya.'.php')) {
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$dosya = $_GET['dosya'];
|
||||
|
||||
// Kabul edilebilir değerlerin listesi
|
||||
@@ -182,11 +192,12 @@ switch ($file) {
|
||||
case 'main':
|
||||
case 'foo':
|
||||
case 'bar':
|
||||
include '/home/siteler/include/'.$dosya.'.php';
|
||||
include '/home/siteler/include/'. $dosya .'.php';
|
||||
break;
|
||||
default:
|
||||
include '/home/siteler/include/main.php';
|
||||
}
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
||||
Reference in New Issue
Block a user