-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
36 lines (30 loc) · 1.09 KB
/
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
33
34
35
36
<?php
/*--------------------------------------------------------------------------------------------------
MEDITATION WORKSHOP WEBSITE
BUILD: x13701
www.andresusanto.com
CREATED BY ANDRE SUSANTO
(C) 2013
----------------------------------------------------------------------------------------------------*/
require_once 'cfg.php';
require_once 'function.php';
$request = $_SERVER['REQUEST_URI'];
$request = explode("/index.php/", $request);
$ref = explode("/",$_SERVER['HTTP_REFERER']);
$site = explode("/", $sitepath);
if ($ref[2] == $site[2] && stripos($_SERVER['HTTP_REFERER'], "index.php/") !== FALSE)
$byref = 1;
if (count($request) > 1) {
$request = explode("/", $request[1]);
switch ($request[0]) {
case 'main' : include("home.php"); break;
case 'about' : include("about.php"); break;
case 'sponsor' : include("sponsor.php"); break;
case 'read' : include("read.php"); break;
case 'reg' : include("reg.php"); break;
default : include("splash.php"); break;
}
}else{
include("splash.php");
}
?>