Rev 800 | Rev 935 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 800 | Rev 801 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | $handled = true; |
29 | $handled = true; |
30 | 30 | ||
31 | $antispam_email = explode('$',$id.'$')[1]; |
31 | $antispam_email = explode('$',$id.'$')[1]; |
32 | $ra_email = str_replace('&', '@', $antispam_email); |
32 | $ra_email = str_replace('&', '@', $antispam_email); |
33 | 33 | ||
34 | $out['icon'] = OIDplus::webpath(__DIR__,true).'img/rainfo_icon.png'; |
34 | $out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/rainfo_icon.png'; |
35 | 35 | ||
36 | if (OIDplus::authUtils()->isAdminLoggedIn()) { |
36 | if (OIDplus::authUtils()->isAdminLoggedIn()) { |
37 | $listRaPlugin = OIDplus::getPluginByOid('1.3.6.1.4.1.37476.2.5.2.4.3.500'); // OIDplusPageAdminListRAs |
37 | $listRaPlugin = OIDplus::getPluginByOid('1.3.6.1.4.1.37476.2.5.2.4.3.500'); // OIDplusPageAdminListRAs |
38 | if (!is_null($listRaPlugin)) { |
38 | if (!is_null($listRaPlugin)) { |
39 | $out['text'] = '<p><a '.OIDplus::gui()->link('oidplus:list_ra').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to RA listing').'</a></p>'; |
39 | $out['text'] = '<p><a '.OIDplus::gui()->link('oidplus:list_ra').'><img src="img/arrow_back.png" width="16" alt="'._L('Go back').'"> '._L('Go back to RA listing').'</a></p>'; |
Line 64... | Line 64... | ||
64 | $out['text'] .= '<p><i>'._L('This RA has no objects.').'</i></p>'; |
64 | $out['text'] .= '<p><i>'._L('This RA has no objects.').'</i></p>'; |
65 | } |
65 | } |
66 | } else { |
66 | } else { |
67 | foreach ($ra_roots as $loc_root) { |
67 | foreach ($ra_roots as $loc_root) { |
68 | $ico = $loc_root->getIcon(); |
68 | $ico = $loc_root->getIcon(); |
69 | $icon = !is_null($ico) ? $ico : OIDplus::webpath(__DIR__,true).'img/link_icon16.png'; |
69 | $icon = !is_null($ico) ? $ico : OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/link_icon16.png'; |
70 | $out['text'] .= '<p><a '.OIDplus::gui()->link($loc_root->nodeId()).'><img src="'.$icon.'"> '._L('Jump to RA root %1',$loc_root->objectTypeTitleShort().' '.$loc_root->crudShowId(OIDplusObject::parse($loc_root::root()))).'</a></p>'; |
70 | $out['text'] .= '<p><a '.OIDplus::gui()->link($loc_root->nodeId()).'><img src="'.$icon.'"> '._L('Jump to RA root %1',$loc_root->objectTypeTitleShort().' '.$loc_root->crudShowId(OIDplusObject::parse($loc_root::root()))).'</a></p>'; |
71 | } |
71 | } |
72 | } |
72 | } |
73 | 73 | ||
74 | if (!empty($ra_email)) { |
74 | if (!empty($ra_email)) { |