Require arguments for info.php

This commit is contained in:
ruan 2015-09-14 14:19:19 +02:00
parent 2620a552a9
commit 32e544d431

View File

@ -96,6 +96,10 @@ class KickInfo extends Info {
}
}
if (!isset($_GET['type'], $_GET['id'])) {
die("Missing arguments (type, id).");
}
$type = $_GET['type'];
$id = $_GET['id'];
$page = new Page($type);