1 | <?php |
||
19 | class PageController extends Controller { |
||
20 | |||
21 | |||
22 | private $userId; |
||
23 | |||
24 | public function __construct($AppName, IRequest $request, $UserId){ |
||
25 | parent::__construct($AppName, $request); |
||
26 | $this->userId = $UserId; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * CAUTION: the @Stuff turns off security checks; for this page no admin is |
||
31 | * required and no CSRF check. If you don't know what CSRF is, read |
||
32 | * it up in the docs or you might create a security hole. This is |
||
33 | * basically the only required method to add this exemption, don't |
||
34 | * add it to any other method if you don't exactly know what it does |
||
35 | * |
||
36 | * @NoAdminRequired |
||
37 | * @NoCSRFRequired |
||
38 | */ |
||
39 | 1 | public function index() { |
|
43 | |||
44 | |||
45 | /** |
||
46 | * @NoAdminRequired |
||
47 | * @NoCSRFRequired |
||
48 | */ |
||
49 | 1 | public function bookmarklet($url='',$title='') { |
|
53 | |||
54 | /** |
||
55 | * @NoAdminRequired |
||
56 | * @NoCSRFRequired |
||
57 | * @PublicPage |
||
58 | */ |
||
59 | 1 | public function publicSharePage() { |
|
62 | |||
63 | } |