Subversion Repositories oidplus

Rev

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

Rev 699 Rev 800
Line 33... Line 33...
33
                if ($parts[0] == 'oidplus:system_file_check') {
33
                if ($parts[0] == 'oidplus:system_file_check') {
34
                        @set_time_limit(0);
34
                        @set_time_limit(0);
35
 
35
 
36
                        $handled = true;
36
                        $handled = true;
37
                        $out['title'] = _L('System file check');
37
                        $out['title'] = _L('System file check');
38
                        $out['icon']  = OIDplus::webpath(__DIR__).'icon_big.png';
38
                        $out['icon']  = OIDplus::webpath(__DIR__,true).'img/main_icon.png';
39
 
39
 
40
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
40
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
41
                                $out['icon'] = 'img/error_big.png';
41
                                $out['icon'] = 'img/error.png';
42
                                $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>';
42
                                $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>';
43
                                return;
43
                                return;
44
                        }
44
                        }
45
 
45
 
46
                        $out['text'] = '<p>'._L('This tool compares the checksums of the files of your OIDplus installation with the checksums of the OIDplus original SVN version.').'<br>';
46
                        $out['text'] = '<p>'._L('This tool compares the checksums of the files of your OIDplus installation with the checksums of the OIDplus original SVN version.').'<br>';
Line 131... Line 131...
131
        }
131
        }
132
 
132
 
133
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
133
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
134
                if (!OIDplus::authUtils()->isAdminLoggedIn()) return false;
134
                if (!OIDplus::authUtils()->isAdminLoggedIn()) return false;
135
 
135
 
136
                if (file_exists(__DIR__.'/treeicon.png')) {
136
                if (file_exists(__DIR__.'/img/main_icon16.png')) {
137
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
137
                        $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png';
138
                } else {
138
                } else {
139
                        $tree_icon = null; // default icon (folder)
139
                        $tree_icon = null; // default icon (folder)
140
                }
140
                }
141
 
141
 
142
                $json[] = array(
142
                $json[] = array(