-
Notifications
You must be signed in to change notification settings - Fork 0
/
ajax.php
81 lines (77 loc) · 1.35 KB
/
ajax.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
ob_start();
$action = $_GET['action'];
include 'admin_class.php';
$crud = new Action();
if($action == 'login'){
$login = $crud->login();
if($login)
echo $login;
}
if($action == 'logout'){
$logout = $crud->logout();
if($logout)
echo $logout;
}
if($action == 'save_user'){
$save = $crud->save_user();
if($save)
echo $save;
}
if($action == 'save_page_img'){
$save = $crud->save_page_img();
if($save)
echo $save;
}
if($action == 'delete_user'){
$save = $crud->delete_user();
if($save)
echo $save;
}
if($action == 'delete_data'){
$save = $crud->delete_data();
if($save)
echo $save;
}
if($action == "save_survey"){
$save = $crud->save_survey();
if($save)
echo $save;
}
if($action == "save_edition"){
$save = $crud->save_edition();
if($save)
echo $save;
}
if($action == "delete_survey"){
$delete = $crud->delete_survey();
if($delete)
echo $delete;
}
if($action == "save_question"){
$save = $crud->save_question();
if($save)
echo $save;
}
if($action == "delete_question"){
$delsete = $crud->delete_question();
if($delsete)
echo $delsete;
}
if($action == "action_update_qsort"){
$save = $crud->action_update_qsort();
if($save)
echo $save;
}
if($action == "save_answer"){
$save = $crud->save_answer();
if($save)
echo $save;
}
if($action == "update_user"){
$save = $crud->update_user();
if($save)
echo $save;
}
ob_end_flush();
?>