logo

PHP Fusionda 404 Hata Sayfası Modülü – 404 Page Error Module For PHP Fusion

logo

Bu mod sayesinde sitenizde artık hatalı linke giderse sayfa bulunamadı (error 404 – page not found) yerine sitenizden belirlediğiniz sayfa çıkacak (fusion klasörü dışında da geçerli hem de :) ), ayrıca isterseniz kişinin nereden geldiği vs de email olarak mailinize gönderilebilecek

Within this mod, you can generate custom 404 error pages for php fusion over its environment, and the code can even inform you with email messages about the error page

yapacaklarınız (to do):

sitenizin ana klasöründe bir .htaccess dosyası oluşturun, eğer varsa da açın ve ilk satıra şunu ekeyin
Generate a simple .htaccess file into your ftp’s root and just add the following code into it (if there’s one already, addthis as first line)

1
ErrorDocument 404 /404.php

Daha sonra şu kodu fusion kök klasörüne 404.php olarak ekleyin:
Then Add this code into fusion’s root folder as 404.php

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
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
/*-----------------------------------------------------*\
| 404 Sayfa Bulunamadı Modülü |
| Kodlayan: SoulSmasher - phpfusion-tr.com |
| www.soulsmasher.net |
\*-----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once INCLUDES."sendmail_include.php";
require_once "side_left.php";
$emailuyarisi = 0; //gitmesi için 1, gitmemesi için 0 ya da başka bir sayı
 
 
opentable("404 Hatası - Sayfa Bulunamadı");
echo "<p align='center'><font size='6'>404 - Sayfa Bulunamadı</font><p>";
echo "<center>Ana Sayfaya Dönmek İçin <a href='".BASEDIR."index.php'>Tıklayın</a></center>";
closetable();
 
/*e-mail uyarısı için bölüm*/
if ($emailuyarisi == 1) {
sendemail($settings['siteusername'],$settings['siteemail'],$settings['siteusername'],$settings['siteemail'],"404 Hatası","Ziyaretçi IP: ".$_SERVER["REMOTE_ADDR"] .
"<p>Server Adı: " . $_SERVER["SERVER_NAME"] .
"<p>Kırık Link: " . $_SERVER["REQUEST_URI"] .
"<p>Nereden Geldi: ".$_SERVER["HTTP_REFERER"],"");
}
 
require_once "side_right.php";
require_once "footer.php";
?>

Not: sitenizi klasör altından çalıştırıyorsanız 404.php yi fusion klasörünüz içine atın ve htaccessdeki eklemeyi şöyle değiştirin (fusion yerine fusionun kurulu olduğu klasör adını yazın):
Note: If you’re running fusion under a folder, then just edit the .htaccess file as like this (edit the fusion as the folder root of php fusion):

1
ErrorDocument 404 /fusionklasörü/404.php

ayrıca her hatalı sayfanın email olarak size bildirilmesini istiyorsanız:

1
$emailuyarisi = 0;

buradaki 0′ı 1 yapın

Also If You want to get informed with email messages:

1
$emailuyarisi = 0;

Change 0 with 1

VN:F [1.9.3_1094]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
PHP Fusionda 404 Hata Sayfası Modülü - 404 Page Error Module For PHP Fusion, 10.0 out of 10 based on 2 ratings
blog comments powered by Disqus
logo
logo
Powered by Wordpress | Designed by Elegant Themes