Subversion Repositories oidplus

Rev

Rev 635 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 635 Rev 800
Line 39... Line 39...
39
                        @set_time_limit(0);
39
                        @set_time_limit(0);
40
 
40
 
41
 
41
 
42
                        $handled = true;
42
                        $handled = true;
43
                        $out['title'] = _L('VNag version check');
43
                        $out['title'] = _L('VNag version check');
44
                        $out['icon']  = OIDplus::webpath(__DIR__).'icon_big.png';
44
                        $out['icon']  = OIDplus::webpath(__DIR__,true).'img/main_icon.png';
45
 
45
 
46
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
46
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
47
                                $out['icon'] = 'img/error_big.png';
47
                                $out['icon'] = 'img/error.png';
48
                                $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>';
48
                                $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>';
49
                                return;
49
                                return;
50
                        }
50
                        }
51
 
51
 
52
                        if (file_exists(__DIR__ . '/tutorial$'.OIDplus::getCurrentLang().'.html')) {
52
                        if (file_exists(__DIR__ . '/tutorial$'.OIDplus::getCurrentLang().'.html')) {
Line 84... Line 84...
84
        }
84
        }
85
 
85
 
86
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
86
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
87
                if (!OIDplus::authUtils()->isAdminLoggedIn()) return false;
87
                if (!OIDplus::authUtils()->isAdminLoggedIn()) return false;
88
 
88
 
89
                if (file_exists(__DIR__.'/treeicon.png')) {
89
                if (file_exists(__DIR__.'/img/main_icon16.png')) {
90
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
90
                        $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png';
91
                } else {
91
                } else {
92
                        $tree_icon = null; // default icon (folder)
92
                        $tree_icon = null; // default icon (folder)
93
                }
93
                }
94
 
94
 
95
                $json[] = array(
95
                $json[] = array(