-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
32 lines (24 loc) · 857 Bytes
/
index.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
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
// sets timezone
date_default_timezone_set('America/Sao_Paulo');
// includes the database class file
include("../php-database-class/DbClass.php");
// adds "default" connection
db::addConnection("default", array(
"HOST" => "localhost",
"USER" => "user",
"PASSWORD" => "148700",
"NAME" => "test"
));
// includes firewall
include("FirewallClass.php");
// sets firewall tables
Firewall::setTable("whiteListTable", "firewall_white_list");
Firewall::setTable("blackListTable", "firewall_black_list");
Firewall::setTable("temporaryListTable", "firewall_temporary_list");
Firewall::setTable("minuteListTable", "firewall_minute_list");
// starts the firewall, passing (int) 20 as max requests per minute.
//Firewall::init(20);