LDAPAccountManager/lam/templates/config/index.php

108 lines
3.5 KiB
PHP
Raw Normal View History

2006-05-23 14:46:58 +00:00
<?php
2020-04-12 11:51:36 +00:00
namespace LAM\CONFIG;
use htmlLink;
use htmlResponsiveRow;
2006-05-23 14:46:58 +00:00
/*
2009-10-27 18:47:12 +00:00
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
2020-04-10 18:34:36 +00:00
Copyright (C) 2003 - 2020 Roland Gruber
2006-05-23 14:46:58 +00:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* Displays links to all configuration pages.
*
* @package configuration
* @author Roland Gruber
*/
/** Access to config functions */
include_once('../../lib/config.inc');
// start session
2009-07-08 18:03:28 +00:00
if (strtolower(session_module_name()) == 'files') {
session_save_path("../../sess");
}
2018-03-10 17:48:11 +00:00
lam_start_session();
2006-05-23 14:46:58 +00:00
setlanguage();
echo $_SESSION['header'];
2017-11-04 10:29:38 +00:00
printHeaderContents(_("Configuration overview"), '../..');
2020-04-11 13:41:26 +00:00
$tabindex = 0;
$content = new htmlResponsiveRow();
2006-05-23 14:46:58 +00:00
?>
</head>
2016-08-27 13:56:23 +00:00
<body class="admin">
2019-12-13 17:24:28 +00:00
<?php
// include all JavaScript files
printJsIncludes('../..');
?>
2016-08-27 13:56:23 +00:00
<table class="lamTop ui-corner-all">
2010-07-30 16:08:20 +00:00
<tr>
2016-08-27 13:56:23 +00:00
<td align="left">
2019-05-12 07:50:23 +00:00
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
2010-07-30 16:08:20 +00:00
</td>
</tr>
</table>
2009-05-03 16:01:07 +00:00
<br><br>
2020-04-11 13:41:26 +00:00
<?php
$topContent = new htmlResponsiveRow();
$topContent->setCSSClasses(array('maxrow fullwidth roundedShadowBox spacing5'));
$mainCfgLink = new htmlLink(_("Edit general settings"), 'mainlogin.php', '../../graphics/bigTools.png');
$mainCfgLink->setCSSClasses(array('img-padding1 display-as-block'));
$topContent->add($mainCfgLink, 12);
$cfgLink = new htmlLink(_("Edit server profiles"), 'conflogin.php', '../../graphics/profiles.png');
$cfgLink->setCSSClasses(array('img-padding1 display-as-block'));
$topContent->add($cfgLink, 12);
if (isLAMProVersion()) {
$selfServiceLink = new htmlLink(_("Edit self service"), '../selfService/adminLogin.php', '../../graphics/bigPeople.png');
$selfServiceLink->setCSSClasses(array('img-padding1 display-as-block'));
$topContent->add($selfServiceLink, 12);
}
2020-07-12 07:48:49 +00:00
$topContent->addVerticalSpacer('1rem');
$importExportLink = new htmlLink(_("Import and export configuration"), 'confImportExport.php', '../../graphics/confImportExport.png');
$importExportLink->setCSSClasses(array('img-padding1 display-as-block'));
$topContent->add($importExportLink, 12);
2020-04-11 13:41:26 +00:00
$content->add($topContent, 12);
$content->addVerticalSpacer('4rem');
?>
2016-08-27 08:40:05 +00:00
<?php
if (isLAMProVersion()) {
2018-12-23 16:52:56 +00:00
include_once(__DIR__ . "/../../lib/env.inc");
2016-08-27 08:40:05 +00:00
$printer = new \LAM\ENV\LAMLicenseInfoPrinter();
2020-04-11 13:41:26 +00:00
$content->add($printer->getLicenseInfo(), 12);
$content->addVerticalSpacer('2rem');
2016-08-27 08:40:05 +00:00
}
2020-04-11 13:41:26 +00:00
$content->add(new htmlLink(_("Back to login"), '../login.php', '../../graphics/undo.png'), 12);
$content->addVerticalSpacer('2rem');
parseHtml('none', $content, array(), true, $tabindex, 'none');
?>
2006-05-23 14:46:58 +00:00
</body>
</html>