Subversion Repositories oidplus

Rev

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

Rev 279 Rev 281
Line 35... Line 35...
35
                        $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : '';
35
                        $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : '';
36
 
36
 
37
                        if (!OIDplus::authUtils()::isAdminLoggedIn()) {
37
                        if (!OIDplus::authUtils()::isAdminLoggedIn()) {
38
                                $out['icon'] = 'img/error_big.png';
38
                                $out['icon'] = 'img/error_big.png';
39
                                $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>';
39
                                $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>';
40
                        } else {
40
                                return;
-
 
41
                        }
-
 
42
 
41
                                $out['text'] = file_get_contents(__DIR__ . '/info.tpl');
43
                        $out['text'] = file_get_contents(__DIR__ . '/info.tpl');
42
 
44
 
43
                                if (!OIDplus::getPkiStatus()) {
45
                        if (!OIDplus::getPkiStatus()) {
44
                                        $out['text'] .= '<p><font color="red">Error: Your system could not generate a private/public key pair. (OpenSSL is probably missing on your system). Therefore, you cannot register/unregister your OIDplus instance.</font></p>';
46
                                $out['text'] .= '<p><font color="red">Error: Your system could not generate a private/public key pair. (OpenSSL is probably missing on your system). Therefore, you cannot register/unregister your OIDplus instance.</font></p>';
45
                                } else {
47
                        } else {
Line 88... Line 90...
88
                                        $out['text'] .= '<p>After clicking "change", your OIDplus installation will contact the ViaThinkSoft server to adjust (add or remove information) your privacy setting. This may take a few minutes.</p>';
90
                                $out['text'] .= '<p>After clicking "change", your OIDplus installation will contact the ViaThinkSoft server to adjust (add or remove information) your privacy setting. This may take a few minutes.</p>';
89
 
91
 
90
                                        $out['text'] .= '<p><i>Privacy information:</i> Please note that removing your system from the directory does not automatically delete information about OIDs which are already published at oid-info.com. To remove already submitted OIDs at oid-info.com, please contact the <a href="mailto:admin@oid-info.com">OID Repository Webmaster</a>.';
92
                                $out['text'] .= '<p><i>Privacy information:</i> Please note that removing your system from the directory does not automatically delete information about OIDs which are already published at oid-info.com. To remove already submitted OIDs at oid-info.com, please contact the <a href="mailto:admin@oid-info.com">OID Repository Webmaster</a>.';
91
                                }
93
                        }
92
                        }
94
                }
93
                }
-
 
94
                if ($id === 'oidplus:srvreg_status') {
95
                if ($id === 'oidplus:srvreg_status') {
95
                        $handled = true;
96
                        $handled = true;
96
 
97
 
97
                        $query = self::QUERY_LIVESTATUS_V1;
98
                        $query = self::QUERY_LIVESTATUS_V1;
98
 
99
 
Line 309... Line 310...
309
                        }
310
                        }
310
                }
311
                }
311
        }
312
        }
312
 
313
 
313
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
314
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
-
 
315
                if (!OIDplus::authUtils()::isAdminLoggedIn()) return false;
-
 
316
               
314
                if (file_exists(__DIR__.'/treeicon.png')) {
317
                if (file_exists(__DIR__.'/treeicon.png')) {
315
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
318
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
316
                } else {
319
                } else {
317
                        $tree_icon = null; // default icon (folder)
320
                        $tree_icon = null; // default icon (folder)
318
                }
321
                }