summaryrefslogtreecommitdiff
path: root/html/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'html/index.php')
-rwxr-xr-xhtml/index.php76
1 files changed, 27 insertions, 49 deletions
diff --git a/html/index.php b/html/index.php
index 545bc2d..089c989 100755
--- a/html/index.php
+++ b/html/index.php
@@ -1,11 +1,11 @@
<?php
+
include ("includes/config.php");
include ("includes/functions.php");
if (!isset($_GET['noheader'])) include ("includes/header.php");
-switch ($_GET["p"])
-{
+switch ($_GET["p"]) {
case "": page(); break; // Our opening page
case "recent": recent(); break; // list of recent games, 30 in date order
@@ -35,123 +35,101 @@ switch ($_GET["p"])
case "credits": credits(); break; // Credits
case "help": help(); break; // Help Page
- default : page(); break; // Our opening page
+ default: page(); break; // Our opening page
}
-function page()
-{
+function page() {
include("pages/home.php");
}
-function admin()
-{
+function admin() {
include("admin.php");
}
-function recent()
-{
+function recent() {
include("pages/recent.php");
}
-function match()
-{
+function match() {
include("pages/match.php");
}
-function matchp()
-{
+function matchp() {
include("pages/match_player.php");
}
-function report()
-{
+function report() {
include("pages/report.php");
}
-function rank()
-{
+function rank() {
include("pages/rank.php");
}
-function ext_rank()
-{
+function ext_rank() {
include("pages/rank_extended.php");
}
-function servers()
-{
+function servers() {
include("pages/servers.php");
}
-function sinfo()
-{
+function sinfo() {
include("pages/servers_info.php");
}
-function squery()
-{
+function squery() {
include("pages/servers_query.php");
}
-function players()
-{
+function players() {
include("pages/players.php");
}
-function psearch()
-{
+function psearch() {
include("pages/players_search.php");
}
-function pinfo()
-{
+function pinfo() {
include("pages/players_info.php");
}
-function pexplrank()
-{
+function pexplrank() {
include("pages/players_explain_ranking.php");
}
-function pmatchs()
-{
+function pmatchs() {
include("pages/players_matchs.php");
}
-function pmaps()
-{
+function pmaps() {
include("pages/players_maps.php");
}
-function maps()
-{
+function maps() {
include("pages/maps.php");
}
-function minfo()
-{
+function minfo() {
include("pages/maps_info.php");
}
-function totals()
-{
+function totals() {
include("pages/totals.php");
}
-function watchlist()
-{
+function watchlist() {
include("pages/watchlist.php");
}
-function credits()
-{
+function credits() {
include("pages/credits.php");
}
-function help()
-{
+function help() {
include("pages/help.php");
}
include("includes/footer.php");
+
?>