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: 8 years ago
Size: 1,187 bytes
 

Contents

Class file image Download
<?php
session_start
();
require_once
"libs/db.inc.php";
$config=DB::get_config();
$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.
-->
<html>
    <head>
        <title>404: Content not Found</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
    <center>
        <h1>404 Error</h1>
        <p style="color:red">The content not found or Access Blocked by <a href="https://github.com/shaman33/web_app_firewall/" 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;?>
</center>
    </body>
</html>