-
Notifications
You must be signed in to change notification settings - Fork 4
/
ipb.php
executable file
·32 lines (29 loc) · 1019 Bytes
/
ipb.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
<?php
define("BASEPATH", true);
include './system/config.php';
include("./classes/Database.php");
$db = new database;
$db->configure();
$db->connect();
$ipq = $db->query("SELECT * FROM `ipban` WHERE `ip`='".$_SERVER['REMOTE_ADDR']."'");
if ($db->num_rows() == 1) {
$ip = $db->fetch_object();
?>
<link rel="stylesheet" href="style.css" type="text/css">
<table width="25%" class="C2">
<tr>
<th colspan="1" align="center">Du har blitt IP-Bannet!</th>
</tr>
<?php
echo "
<tr>
<td>Ip-adressen: <u>".$ip->ip."</u> er blitt utestengt!<br><br>
Grunn: ".$ip->grunn."<br>
Bannet dato: ".date("H:i:s d.m.Y", $ip->dato)."
</tr>";
echo '
</table>
<p>Om du mener at denne IP-bannen er gjort på gale vilkår/grunnlag, send en mail til denne mailadressen: <a href="mailto:'.HENVEND_MAIL.'?subject=Ip-ban%20på%20'.$_SERVER['REMOTE_ADDR'].'">'.HENVEND_MAIL.'</a></p><br><br><a href="loggut.php">Logg ut!</a>';
} else {
header("Location: /nyheter.php");
}