phpldapadmin/htdocs/welcome.php

46 lines
1.2 KiB
PHP
Raw Normal View History

2009-06-30 09:22:30 +00:00
<?php
2009-06-30 11:52:55 +00:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/welcome.php,v 1.26.2.4 2008/12/12 08:41:30 wurley Exp $
2009-06-30 10:26:08 +00:00
2009-06-30 09:29:51 +00:00
/**
* @package phpLDAPadmin
*/
2009-06-30 11:46:44 +00:00
2009-06-30 09:29:51 +00:00
/**
2009-06-30 11:46:44 +00:00
* Show a simple welcome page.
2009-06-30 09:29:51 +00:00
*/
2009-06-30 10:46:00 +00:00
2009-06-30 10:26:08 +00:00
require './common.php';
2009-06-30 10:46:00 +00:00
echo '<center>';
echo '<br /><br />';
2009-06-30 11:52:55 +00:00
printf('<img src="%s/logo.png" title="%s" alt="%s" />',IMGDIR,_('phpLDAPadmin logo'),_('phpLDAPadmin logo'));
2009-06-30 10:46:00 +00:00
echo '<br /><br />';
echo _('Use the menu to the left to navigate');
echo '<br /><br />';
$links = '';
2009-06-30 08:07:14 +00:00
2009-06-30 11:46:44 +00:00
if ($_SESSION[APPCONFIG]->isCommandAvailable('external_links')) {
if ($_SESSION[APPCONFIG]->isCommandAvailable('external_links', 'credits')) {
2009-06-30 10:46:00 +00:00
$links .= sprintf('<a href="%s" target="new">%s</a>',get_href('credits'),_('Credits'));
}
2009-06-30 11:46:44 +00:00
if ($_SESSION[APPCONFIG]->isCommandAvailable('external_links', 'help')) {
2009-06-30 10:46:00 +00:00
if ($links) $links .= ' | ';
$links .= sprintf('<a href="%s" target="new">%s</a>',get_href('documentation'),_('Documentation'));
}
2009-06-30 11:46:44 +00:00
if ($_SESSION[APPCONFIG]->isCommandAvailable('external_links', 'donation')) {
2009-06-30 10:46:00 +00:00
if ($links) $links .= ' | ';
$links .= sprintf('<a href="%s" target="new">%s</a>',get_href('donate'),_('Donate'));
}
}
if ($links) {
echo $links;
echo '<br /><br />';
}
echo '</center>';
?>