Rev 800 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 800 | Rev 801 | ||
---|---|---|---|
Line 78... | Line 78... | ||
78 | $handled = true; |
78 | $handled = true; |
79 | 79 | ||
80 | $ra_email = explode('$',$id)[1]; |
80 | $ra_email = explode('$',$id)[1]; |
81 | 81 | ||
82 | $out['title'] = _L('Edit RA contact data'); |
82 | $out['title'] = _L('Edit RA contact data'); |
83 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,true).'img/main_icon.png' : ''; |
83 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
84 | 84 | ||
85 | if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) { |
85 | if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) { |
86 | $out['icon'] = 'img/error.png'; |
86 | $out['icon'] = 'img/error.png'; |
87 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as the requested RA %2.',OIDplus::gui()->link('oidplus:login$ra$'.$ra_email),'<b>'.htmlentities($ra_email).'</b>').'</p>'; |
87 | $out['text'] = '<p>'._L('You need to <a %1>log in</a> as the requested RA %2.',OIDplus::gui()->link('oidplus:login$ra$'.$ra_email),'<b>'.htmlentities($ra_email).'</b>').'</p>'; |
88 | return; |
88 | return; |
Line 132... | Line 132... | ||
132 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
132 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
133 | if (!$ra_email) return false; |
133 | if (!$ra_email) return false; |
134 | if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) return false; |
134 | if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) return false; |
135 | 135 | ||
136 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
136 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
137 | $tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
137 | $tree_icon = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon16.png'; |
138 | } else { |
138 | } else { |
139 | $tree_icon = null; // default icon (folder) |
139 | $tree_icon = null; // default icon (folder) |
140 | } |
140 | } |
141 | 141 | ||
142 | $json[] = array( |
142 | $json[] = array( |