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 27... Line 27...
27
 
27
 
28
        public function gui($id, &$out, &$handled) {
28
        public function gui($id, &$out, &$handled) {
29
                if ($id === 'oidplus:contact') {
29
                if ($id === 'oidplus:contact') {
30
                        $handled = true;
30
                        $handled = true;
31
                        $out['title'] = _L('Contact administrator');
31
                        $out['title'] = _L('Contact administrator');
32
                        $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : '';
32
                        $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : '';
33
 
33
 
34
                        if (empty(OIDplus::config()->getValue('admin_email'))) {
34
                        if (empty(OIDplus::config()->getValue('admin_email'))) {
35
                                $out['text'] = '<p>'._L('The administrator of this OIDplus system has not entered a contact email address.').'</p>';
35
                                $out['text'] = '<p>'._L('The administrator of this OIDplus system has not entered a contact email address.').'</p>';
36
                        } else {
36
                        } else {
37
                                $admin_email = OIDplus::config()->getValue('admin_email');
37
                                $admin_email = OIDplus::config()->getValue('admin_email');
Line 43... Line 43...
43
        public function publicSitemap(&$out) {
43
        public function publicSitemap(&$out) {
44
                $out[] = 'oidplus:contact';
44
                $out[] = 'oidplus:contact';
45
        }
45
        }
46
 
46
 
47
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
47
        public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {
48
                if (file_exists(__DIR__.'/treeicon.png')) {
48
                if (file_exists(__DIR__.'/img/main_icon16.png')) {
49
                        $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png';
49
                        $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png';
50
                } else {
50
                } else {
51
                        $tree_icon = null; // default icon (folder)
51
                        $tree_icon = null; // default icon (folder)
52
                }
52
                }
53
 
53
 
54
                $json[] = array(
54
                $json[] = array(