-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakinghappy.php
47 lines (34 loc) · 881 Bytes
/
makinghappy.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
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* @Author: James McCarthy <sjamesmccarthy>
* @Date: 05-02-2017 12:11:58
* @Email: [email protected]
* @Filename: makinghappy.php
* @Last modified by: sjamesmccarthy
* @Last modified time: 05-17-2017 7:00:46
* @Copyright: 2017
*/
ini_set('display_errors', 1);
error_reporting(E_ALL ^ E_NOTICE);
spl_autoload_register(function ($class) {
include 'controller/' . $class . '.php';
});
if(!isset($_REQUEST['a'])) { $_REQUEST['a'] = 'showform'; }
$location = new LocationForm;
switch($_REQUEST['a']) {
case "cheers":
$layout = $location->LocationFormAdd();
break;
case "roundtwo":
$layout = $location->LocationFormEdit($_REQUEST['tap']);
break;
case "cashout":
$layout= $locations->LocationFormDelete($_REQUEST['cashout']);
break;
case "showform":
$layout = $location->showForm();
break;
}
//$core->CreatePage();
print $layout;
?>