Rev 4 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
3 | // Please reply this code with your actual implementation |
||
4 | |||
5 | function logviewer_check_access()/*: void*/ { |
||
6 | // Here you can add some code for general access. If you don't want the user to access LogViewer, throw an Exception here. |
||
7 | |||
8 | // if (check_login()) { |
||
9 | // throw new Exception("Please login first"); |
||
10 | // } |
||
11 | } |
||
12 | |||
13 | function logviewer_allow_solvemark(): bool { |
||
14 | return true; // allow |
||
15 | } |
||
16 | |||
17 | function logviewer_additional_filter(): string { |
||
18 | $filter = ''; // no filter |
||
19 | |||
20 | // Example: |
||
21 | // $filter = '`text` like '%/home/foobar/%' |
||
22 | |||
23 | return $filter; |
||
24 | } |