1 | <?php
|
---|
2 |
|
---|
3 | include_once(dirname(__FILE__).'/../../Base/Controller.php');
|
---|
4 | include_once(dirname(__FILE__).'/../../Application/View/Page.php');
|
---|
5 | include_once(dirname(__FILE__).'/View.php');
|
---|
6 |
|
---|
7 | class UserController extends Controller
|
---|
8 | {
|
---|
9 | function Login()
|
---|
10 | {
|
---|
11 | $Page = new PageView($this->System);
|
---|
12 | $View = new UserView($this->System);
|
---|
13 | return($Page->GetOutput($View->Login()));
|
---|
14 | }
|
---|
15 |
|
---|
16 | function LoginFinish()
|
---|
17 | {
|
---|
18 | $Page = new PageView($this->System);
|
---|
19 | $View = new UserView($this->System);
|
---|
20 | return($Page->GetOutput($View->LoginFinish()));
|
---|
21 | }
|
---|
22 |
|
---|
23 | function Logout()
|
---|
24 | {
|
---|
25 | $Page = new PageView($this->System);
|
---|
26 | $View = new UserView($this->System);
|
---|
27 | return($Page->GetOutput($View->Logout()));
|
---|
28 | }
|
---|
29 |
|
---|
30 | function Options()
|
---|
31 | {
|
---|
32 | $Page = new PageView($this->System);
|
---|
33 | $View = new UserView($this->System);
|
---|
34 | return($Page->GetOutput($View->Options()));
|
---|
35 | }
|
---|
36 |
|
---|
37 | function OptionsSave()
|
---|
38 | {
|
---|
39 | $Page = new PageView($this->System);
|
---|
40 | $View = new UserView($this->System);
|
---|
41 | return($Page->GetOutput($View->OptionsSave()));
|
---|
42 | }
|
---|
43 |
|
---|
44 | function Register()
|
---|
45 | {
|
---|
46 | $Page = new PageView($this->System);
|
---|
47 | $View = new UserView($this->System);
|
---|
48 | return($Page->GetOutput($View->Register()));
|
---|
49 | }
|
---|
50 |
|
---|
51 | function RegisterConfirm()
|
---|
52 | {
|
---|
53 | $Page = new PageView($this->System);
|
---|
54 | $View = new UserView($this->System);
|
---|
55 | return($Page->GetOutput($View->Confirm()));
|
---|
56 | }
|
---|
57 |
|
---|
58 | function PasswordRecovery()
|
---|
59 | {
|
---|
60 | $Page = new PageView($this->System);
|
---|
61 | $View = new UserView($this->System);
|
---|
62 | return($Page->GetOutput($View->PasswordRecovery()));
|
---|
63 | }
|
---|
64 |
|
---|
65 | function PasswordRecoveryFinish()
|
---|
66 | {
|
---|
67 | $Page = new PageView($this->System);
|
---|
68 | $View = new UserView($this->System);
|
---|
69 | return($Page->GetOutput($View->PasswordRecovery()));
|
---|
70 | }
|
---|
71 |
|
---|
72 | function PasswordRecoveryConfirm()
|
---|
73 | {
|
---|
74 | $Page = new PageView($this->System);
|
---|
75 | $View = new UserView($this->System);
|
---|
76 | return($Page->GetOutput($View->PasswordRecoveryConfirm()));
|
---|
77 | }
|
---|
78 |
|
---|
79 | function RegisterSave()
|
---|
80 | {
|
---|
81 | $Page = new PageView($this->System);
|
---|
82 | $View = new UserView($this->System);
|
---|
83 | return($Page->GetOutput($View->RegisterSave()));
|
---|
84 | }
|
---|
85 | }
|
---|