@@ 18-27 (lines=10) @@ | ||
15 | * initialization |
|
16 | * @return void |
|
17 | */ |
|
18 | function init() |
|
19 | { |
|
20 | // forbit access if the user is not an administrator |
|
21 | $oMemberModel = getModel('member'); |
|
22 | $logged_info = $oMemberModel->getLoggedInfo(); |
|
23 | if($logged_info->is_admin != 'Y') |
|
24 | { |
|
25 | return $this->stop("msg_is_not_administrator"); |
|
26 | } |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Admin menu reset |
@@ 19-28 (lines=10) @@ | ||
16 | * Initialization |
|
17 | * @return void |
|
18 | */ |
|
19 | function init() |
|
20 | { |
|
21 | // forbit access if the user is not an administrator |
|
22 | $oMemberModel = getModel('member'); |
|
23 | $logged_info = $oMemberModel->getLoggedInfo(); |
|
24 | if($logged_info->is_admin != 'Y') |
|
25 | { |
|
26 | return $this->stop("msg_is_not_administrator"); |
|
27 | } |
|
28 | } |
|
29 | ||
30 | /** |
|
31 | * Insert log |