51,7 → 51,7 |
if ($id === 'oidplus:phpinfo') { |
$handled = true; |
$out['title'] = _L('PHP information'); |
$out['icon'] = OIDplus::webpath(__DIR__,true).'img/php_icon.png'; |
$out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/php_icon.png'; |
|
if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
$out['icon'] = 'img/error.png'; |
85,7 → 85,7 |
else if ($id === 'oidplus:systeminfo') { |
$handled = true; |
$out['title'] = _L('System information'); |
$out['icon'] = OIDplus::webpath(__DIR__,true).'img/main_icon.png'; |
$out['icon'] = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png'; |
|
if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
$out['icon'] = 'img/error.png'; |
122,7 → 122,7 |
$out['text'] .= ' <td>'.(!$sysid_oid ? '<i>'._L('unknown').'</i>' : htmlentities($sysid_oid)).'</td>'; |
$out['text'] .= ' </tr>'; |
|
$sys_url = OIDplus::webpath(); |
$sys_url = OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL); |
$out['text'] .= ' <tr>'; |
$out['text'] .= ' <td>'._L('System URL').'</td>'; |
$out['text'] .= ' <td>'.htmlentities($sys_url).'</td>'; |
302,13 → 302,13 |
if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
|
if (file_exists(__DIR__.'/img/main_icon16.png')) { |
$tree_icon = OIDplus::webpath(__DIR__,true).'img/main_icon16.png'; |
$tree_icon = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon16.png'; |
} else { |
$tree_icon = null; // default icon (folder) |
} |
|
if (file_exists(__DIR__.'/img/php_icon16.png')) { |
$tree_icon_php = OIDplus::webpath(__DIR__,true).'img/php_icon16.png'; |
$tree_icon_php = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/php_icon16.png'; |
} else { |
$tree_icon_php = null; // default icon (folder) |
} |