PHP Classes

File: 404.php

Recommend this page to a friend!
  Classes of Roman Shneer  >  PHP Web Application Firewall  >  404.php  >  Download  
File: 404.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Application Firewall
Block malicious requests using a white list
Author: By
Last change:
Date: 5 years ago
Size: 1,187 bytes


Class file image Download
$db=new DB($config['db_host'],$config['db_name'],$config['db_user'],$config['db_pass']);
$result=$db->ROW_Q("SELECT value FROM waf_settings WHERE name='webmaster_email'");
$web_email= isset($result['value'])?$result['value']:false;
?><!DOCTYPE html>
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
        <title>404: Content not Found</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <h1>404 Error</h1>
        <p style="color:red">The content not found or Access Blocked by <a href="" target="_blank">Web App. Firewall</a> </p>
        <?php if($web_email):?>
<p>If a page is blocked not because of a criminal activity , please notify the administrator about bug.
            <br><a href="mailto:<?php echo $web_email;?>"><?php echo $web_email;?></a></p>
        <?php endif;?>

For more information send a message to info at phpclasses dot org.