This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
81 lines (62 loc) · 1.5 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
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
<?php
require_once ($_SERVER['DOCUMENT_ROOT'].'/class/displayManager.Class.php');
//session_start();
//session_destroy(); die;
$smarty = new displayManager();
$action = $_REQUEST['action'];
if ($action != 'register' && $action != 'login' && $action != 'activate' && !$smarty->engine->session->isLoggedIn()){
$smarty->default_action();
die;
}
switch ($action){
case 'login':
$smarty->login($_REQUEST);
break;
case 'register':
$smarty->register($_REQUEST['fields']);
break;
case 'activate':
$smarty->activate($_REQUEST);
break;
case 'm_date':
$smarty->ajax_m_date();
break;
case 'm_time':
$smarty->ajax_m_time($_REQUEST);
break;
case 'add_volunteer_to_meeting':
$smarty->add_volunteer_to_meeting($_REQUEST);
break;
case 'logout':
$smarty->logout();
break;
case 'volunteer_list':
$smarty->volunteer_list();
break;
case 'volunteer_view':
$smarty->volunteer_view($_REQUEST['id']);
break;
case 'notice_view':
$smarty->notice_view($_REQUEST);
break;
case 'update_notice_form':
$smarty->update_notice_form($_REQUEST);
break;
case 'notice_create':
$smarty->update_notice_form($_REQUEST);
break;
case 'change_user_data':
$smarty->change_user_data_form($_REQUEST);
break;
case 'update_volunteer_data':
$smarty->update_volunteer_data($_REQUEST['fields']);
break;
case 'meetings':
$smarty->meetings();
break;
case 'download_statement':
$smarty->download_statement($_REQUEST);
break;
default: $smarty->default_action();
}
?>