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 34... Line 34...
34
                        $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : '';
34
                        $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : '';
35
 
35
 
36
                        if (!OIDplus::authUtils()::isAdminLoggedIn()) {
36
                        if (!OIDplus::authUtils()::isAdminLoggedIn()) {
37
                                $out['icon'] = 'img/error_big.png';
37
                                $out['icon'] = 'img/error_big.png';
38
                                $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>';
38
                                $out['text'] = '<p>You need to <a '.OIDplus::gui()->link('oidplus:login').'>log in</a> as administrator.</p>';
39
                        } else {
39
                                return;
-
 
40
                        }
-
 
41
 
40
                                $out['text'] = '<p><abbr title="These ID names can only be edited in the database directly (Tables ###asn1id and ###iri). Usually, there is no need to do this, though.">How to edit these IDs?</abbr></p>';
42
                        $out['text'] = '<p><abbr title="These ID names can only be edited in the database directly (Tables ###asn1id and ###iri). Usually, there is no need to do this, though.">How to edit these IDs?</abbr></p>';
41
 
43
 
42
                                $out['text'] .= '<div class="container box"><div id="suboid_table" class="table-responsive">';
44
                        $out['text'] .= '<div class="container box"><div id="suboid_table" class="table-responsive">';
43
                                $out['text'] .= '<table class="table table-bordered table-striped">';
45
                        $out['text'] .= '<table class="table table-bordered table-striped">';
44
                                $out['text'] .= '       <tr>';
46
                        $out['text'] .= '       <tr>';
Line 70... Line 72...
70
 
72
 
71
                                $out['text'] .= '</table>';
73
                        $out['text'] .= '</table>';
72
                                $out['text'] .= '</div></div>';
74
                        $out['text'] .= '</div></div>';
73
                        }
75
                }
74
                }
76
        }
75
        }
-
 
76
 
77
 
77
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
78
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
-
 
79
                if (!OIDplus::authUtils()::isAdminLoggedIn()) return false;
-
 
80
               
78
                if (file_exists(__DIR__.'/treeicon.png')) {
81
                if (file_exists(__DIR__.'/treeicon.png')) {
79
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
82
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
80
                } else {
83
                } else {
81
                        $tree_icon = null; // default icon (folder)
84
                        $tree_icon = null; // default icon (folder)
82
                }
85
                }