summaryrefslogtreecommitdiff
path: root/html/pages/report.php
diff options
context:
space:
mode:
authorMatthijs Kuiper <info@matthijskuiper.nl>2017-02-04 16:05:45 +0100
committerMatthijs Kuiper <info@matthijskuiper.nl>2017-02-04 16:05:45 +0100
commit40dfa7d5c0dc8e4cb2c95e403b6b4b2c4bf70644 (patch)
tree6ac6279ac26749ffe7ca0ae9603fbcae2e757e6e /html/pages/report.php
Original UTStats beta 4.2.84.2.8
Diffstat (limited to 'html/pages/report.php')
-rwxr-xr-xhtml/pages/report.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/html/pages/report.php b/html/pages/report.php
new file mode 100755
index 0000000..946b847
--- /dev/null
+++ b/html/pages/report.php
@@ -0,0 +1,24 @@
+<?php
+$id = preg_replace('/\D/', '', $_GET["id"]);
+$wid = preg_replace('/\D/', '', $_GET["wid"]);
+$stage = my_addslashes($_GET["stage"]);
+$oururl = $_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF"];
+$oururl = str_replace("index.php", "", $oururl);
+$rtype = my_addslashes($_GET["rtype"]);
+
+if (empty($id)) {
+ die("No ID given");
+}
+
+IF ($rtype == "clanbase") {
+ include("pages/report_cb.php");
+}
+
+IF ($rtype == "bbcode") {
+ include("pages/report/bbcode.php");
+}
+
+IF ($rtype == "clanbase" && $stage == "generate") {
+ include("pages/report/clanbase.php");
+}
+?> \ No newline at end of file