-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·95 lines (82 loc) · 2.38 KB
/
Copy pathindex.php
File metadata and controls
executable file
·95 lines (82 loc) · 2.38 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
$f3=require('lib/base.php');
$f3->set('DEBUG',1);
if ((float)PCRE_VERSION<7.9)
trigger_error('PCRE version is out of date');
$f3->config('config.ini');
$f3->route('GET /',
function($f3) {
$f3->set('name', 'Home');
$f3->set('content','home.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /events',
function($f3) {
$css = array('colorbox');
$js = array('jquery.colorbox', 'events');
$f3->set('css', $css);
$f3->set('js', $js);
$f3->set('name', 'Events');
$f3->set('content','events.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /sponsors',
function($f3) {
$f3->set('name', 'Sponsors');
$f3->set('content','sponsors.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /contact',
function($f3) {
$f3->set('name', 'Contact');
$f3->set('content','contact.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /press',
function($f3) {
$f3->set('name', 'Press');
$f3->set('content','press.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /donations',
function($f3) {
$css = array('colorbox');
$js = array('jquery.colorbox', 'donations');
$f3->set('css', $css);
$f3->set('js', $js);
$f3->set('name', 'Donations');
$f3->set('content','donations.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /thebigheartracingteam',
function($f3) {
$css = array('colorbox');
$js = array('jquery.colorbox', 'thebigheartracingteam');
$f3->set('css', $css);
$f3->set('js', $js);
$f3->set('name', 'The Big Heart Racing Team');
$f3->set('content','thebigheartracingteam.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /thefactsheet',
function($f3) {
$f3->set('name', 'The Fact Sheet');
$f3->set('content','thefactsheet.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->route('GET /about',
function($f3) {
$f3->set('name', 'About Us');
$f3->set('content','aboutus.htm');
echo View::instance()->render('layout.htm');
}
);
$f3->run();