Rev 790 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 790 | Rev 800 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | 74 | ||
75 | if ($id == 'oidplus:create_ra') { |
75 | if ($id == 'oidplus:create_ra') { |
76 | $handled = true; |
76 | $handled = true; |
77 | $email = isset($parts[1]) ? $parts[1] : ''; |
77 | $email = isset($parts[1]) ? $parts[1] : ''; |
78 | $out['title'] = _L('Manual creation of a RA'); |
78 | $out['title'] = _L('Manual creation of a RA'); |
79 | $out['icon'] = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webpath(__DIR__).'icon_big.png' : ''; |
79 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : ''; |
80 | 80 | ||
81 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
81 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
82 | $out['icon'] = 'img/error_big.png'; |
82 | $out['icon'] = 'img/error.png'; |
83 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
83 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')).'</p>'; |
84 | return; |
84 | return; |
85 | } |
85 | } |
86 | 86 | ||
87 | $out['text'] .= '<form id="adminCreateRaFrom" action="javascript:void(0);" onsubmit="return OIDplusPageAdminCreateRa.adminCreateRaFormOnSubmit();">'; |
87 | $out['text'] .= '<form id="adminCreateRaFrom" action="javascript:void(0);" onsubmit="return OIDplusPageAdminCreateRa.adminCreateRaFormOnSubmit();">'; |
Line 93... | Line 93... | ||
93 | } |
93 | } |
94 | 94 | ||
95 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
95 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
96 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
96 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
97 | 97 | ||
98 | if (file_exists(__DIR__.'/treeicon.png')) { |
98 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
99 | $tree_icon = OIDplus::webpath(__DIR__).'treeicon.png'; |
99 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
100 | } else { |
100 | } else { |
101 | $tree_icon = null; // default icon (folder) |
101 | $tree_icon = null; // default icon (folder) |
102 | } |
102 | } |
103 | 103 | ||
104 | $json[] = array( |
104 | $json[] = array( |