| 1 |
<?php |
| 2 |
namespace LAM\CONFIG; |
| 3 |
use htmlLink; |
| 4 |
use htmlResponsiveRow; |
| 5 |
/* |
| 6 |
|
| 7 |
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) |
| 8 |
Copyright (C) 2003 - 2024 Roland Gruber |
| 9 |
|
| 10 |
This program is free software; you can redistribute it and/or modify |
| 11 |
it under the terms of the GNU General Public License as published by |
| 12 |
the Free Software Foundation; either version 2 of the License, or |
| 13 |
(at your option) any later version. |
| 14 |
|
| 15 |
This program is distributed in the hope that it will be useful, |
| 16 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 |
GNU General Public License for more details. |
| 19 |
|
| 20 |
You should have received a copy of the GNU General Public License |
| 21 |
along with this program; if not, write to the Free Software |
| 22 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 23 |
|
| 24 |
*/ |
| 25 |
|
| 26 |
|
| 27 |
/** |
| 28 |
* Displays links to all configuration pages. |
| 29 |
* |
| 30 |
* @package configuration |
| 31 |
* @author Roland Gruber |
| 32 |
*/ |
| 33 |
|
| 34 |
|
| 35 |
/** Access to config functions */ |
| 36 |
include_once(__DIR__ . '/../../lib/config.inc'); |
| 37 |
|
| 38 |
// start session |
| 39 |
if (isFileBasedSession()) { |
| 40 |
session_save_path("../../sess"); |
| 41 |
} |
| 42 |
lam_start_session(); |
| 43 |
|
| 44 |
setlanguage(); |
| 45 |
|
| 46 |
echo $_SESSION['header']; |
| 47 |
printHeaderContents(_("Configuration overview"), '../..'); |
| 48 |
$content = new htmlResponsiveRow(); |
| 49 |
|
| 50 |
?> |
| 51 |
</head> |
| 52 |
<body> |
| 53 |
<?php |
| 54 |
// include all JavaScript files |
| 55 |
printJsIncludes('../..'); |
| 56 |
?> |
| 57 |
<div id="lam-topnav" class="lam-header"> |
| 58 |
<div class="lam-header-left lam-menu-stay"> |
| 59 |
<a href="https://www.ldap-account-manager.org/" target="new_window"> |
| 60 |
<img class="align-middle" width="24" height="24" alt="help" src="../../graphics/logo.svg"> |
| 61 |
<span class="hide-on-mobile"> |
| 62 |
<?php |
| 63 |
echo getLAMVersionText(); |
| 64 |
?> |
| 65 |
</span> |
| 66 |
</a> |
| 67 |
</div> |
| 68 |
<?php |
| 69 |
if (is_dir(__DIR__ . '/../../docs/manual')) { |
| 70 |
?> |
| 71 |
<a class="lam-header-right lam-menu-icon hide-on-tablet" href="javascript:void(0);" class="icon" onclick="window.lam.topmenu.toggle();"> |
| 72 |
<img class="align-middle" width="16" height="16" alt="menu" src="../../graphics/menu.svg"> |
| 73 |
<span class="padding0"> </span> |
| 74 |
</a> |
| 75 |
<a class="lam-header-right lam-menu-entry" target="_blank" href="../../docs/manual/index.html"> |
| 76 |
<span class="padding0"><?php echo _("Help") ?></span> |
| 77 |
</a> |
| 78 |
<?php |
| 79 |
} |
| 80 |
?> |
| 81 |
</div> |
| 82 |
<br><br> |
| 83 |
|
| 84 |
<?php |
| 85 |
$topContent = new htmlResponsiveRow(); |
| 86 |
$topContent->setCSSClasses(['maxrow fullwidth roundedShadowBox spacing5']); |
| 87 |
$mainCfgLink = new htmlLink(_("Edit general settings"), 'mainlogin.php', '../../graphics/configure.svg'); |
| 88 |
$mainCfgLink->setCSSClasses(['lam-margin-large display-as-block']); |
| 89 |
$topContent->add($mainCfgLink); |
| 90 |
$cfgLink = new htmlLink(_("Edit server profiles"), 'conflogin.php', '../../graphics/world.svg'); |
| 91 |
$cfgLink->setCSSClasses(['lam-margin-large display-as-block']); |
| 92 |
$topContent->add($cfgLink); |
| 93 |
if (isLAMProVersion()) { |
| 94 |
$selfServiceLink = new htmlLink(_("Edit self-service"), '../selfService/adminLogin.php', '../../graphics/people.svg'); |
| 95 |
$selfServiceLink->setCSSClasses(['lam-margin-large display-as-block']); |
| 96 |
$topContent->add($selfServiceLink); |
| 97 |
} |
| 98 |
if (isLAMProVersion()) { |
| 99 |
$whitePagesLink = new htmlLink(_("Edit white pages"), '../whitePages/adminLogin.php', '../../graphics/white-pages.svg'); |
| 100 |
$whitePagesLink->setCSSClasses(['lam-margin-large display-as-block icon']); |
| 101 |
$topContent->add($whitePagesLink); |
| 102 |
} |
| 103 |
$topContent->addVerticalSpacer('1rem'); |
| 104 |
$importExportLink = new htmlLink(_("Import and export configuration"), 'confImportExport.php', '../../graphics/export.svg'); |
| 105 |
$importExportLink->setCSSClasses(['lam-margin-large display-as-block']); |
| 106 |
$topContent->add($importExportLink); |
| 107 |
$content->add($topContent); |
| 108 |
$content->addVerticalSpacer('4rem'); |
| 109 |
?> |
| 110 |
|
| 111 |
<?php |
| 112 |
if (isLAMProVersion()) { |
| 113 |
include_once(__DIR__ . "/../../lib/env.inc"); |
| 114 |
$printer = new \LAM\ENV\LAMLicenseInfoPrinter(); |
| 115 |
$content->add($printer->getLicenseInfo()); |
| 116 |
$content->addVerticalSpacer('2rem'); |
| 117 |
} |
| 118 |
|
| 119 |
$content->add(new htmlLink(_("Back to login"), '../login.php')); |
| 120 |
$content->addVerticalSpacer('2rem'); |
| 121 |
|
| 122 |
parseHtml(null, $content, [], true, null); |
| 123 |
|
| 124 |
?> |
| 125 |
|
| 126 |
</body> |
| 127 |
</html> |