Subversion Repositories oidplus

Rev

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

Rev 796 Rev 797
Line 46... Line 46...
46
 
46
 
47
                return $s_inis;
47
                return $s_inis;
48
        }
48
        }
49
 
49
 
50
        public function gui($id, &$out, &$handled) {
50
        public function gui($id, &$out, &$handled) {
51
                if ($id === 'oidplus:phpinfo') {
51
                if ($id === 'oidplus:systeminfo$phpinfo') {
52
                        $handled = true;
52
                        $handled = true;
53
                        $out['title'] = _L('PHP information');
53
                        $out['title'] = _L('PHP information');
54
                        $out['icon']  = OIDplus::webpath(__DIR__).'icon_big.png';
54
                        $out['icon']  = OIDplus::webpath(__DIR__).'icon_big.png';
55
 
55
 
56
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
56
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
Line 163... Line 163...
163
                        $out['text'] .= '       <tr>';
163
                        $out['text'] .= '       <tr>';
164
                        $out['text'] .= '               <td>'._L('Installed extensions').'</td>';
164
                        $out['text'] .= '               <td>'._L('Installed extensions').'</td>';
165
                        $out['text'] .= '               <td>'.htmlentities(implode(', ',get_loaded_extensions())).'</td>';
165
                        $out['text'] .= '               <td>'.htmlentities(implode(', ',get_loaded_extensions())).'</td>';
166
                        $out['text'] .= '       </tr>';
166
                        $out['text'] .= '       </tr>';
167
                        $out['text'] .= '</table>';
167
                        $out['text'] .= '</table>';
168
                        $out['text'] .= '<p><a '.OIDplus::gui()->link('oidplus:phpinfo').'>'._L('Show PHP server configuration (phpinfo)').'</a></p>';
168
                        $out['text'] .= '<p><a '.OIDplus::gui()->link('oidplus:systeminfo$phpinfo').'>'._L('Show PHP server configuration (phpinfo)').'</a></p>';
169
                        $out['text'] .= '</div></div>';
169
                        $out['text'] .= '</div></div>';
170
 
170
 
171
                        # ---
171
                        # ---
172
 
172
 
173
                        $out['text'] .= '<h2>'._L('Webserver').'</h2>';
173
                        $out['text'] .= '<h2>'._L('Webserver').'</h2>';
Line 315... Line 315...
315
 
315
 
316
                return true;
316
                return true;
317
        }
317
        }
318
 
318
 
319
        public function tree_search($request) {
319
        public function tree_search($request) {
-
 
320
                if ($request === 'oidplus:systeminfo$phpinfo') return array('oidplus:login', $request); // TODO: Problem: Inside we will find 'oidplus:systeminfo', but not 'oidplus:systeminfo$phpinfo'!
320
                return false;
321
                return false;
321
        }
322
        }
322
 
323
 
323
        public function implementsFeature($id) {
324
        public function implementsFeature($id) {
324
                return false;
325
                return false;