1<?php 2namespace LAM\CONFIG; 3use htmlLink; 4use htmlResponsiveRow; 5/* 6 7 This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) 8 Copyright (C) 2003 - 2020 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 */ 36include_once('../../lib/config.inc'); 37 38// start session 39if (strtolower(session_module_name()) == 'files') { 40 session_save_path("../../sess"); 41} 42lam_start_session(); 43 44setlanguage(); 45 46echo $_SESSION['header']; 47printHeaderContents(_("Configuration overview"), '../..'); 48$tabindex = 0; 49$content = new htmlResponsiveRow(); 50 51?> 52 </head> 53 <body class="admin"> 54 <?php 55 // include all JavaScript files 56 printJsIncludes('../..'); 57 ?> 58 <table class="lamTop ui-corner-all"> 59 <tr> 60 <td align="left"> 61 <a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window"> 62 <?php echo getLAMVersionText(); ?> 63 </a> 64 </td> 65 </tr> 66 </table> 67 <br><br> 68 69 <?php 70 $topContent = new htmlResponsiveRow(); 71 $topContent->setCSSClasses(array('maxrow fullwidth roundedShadowBox spacing5')); 72 $mainCfgLink = new htmlLink(_("Edit general settings"), 'mainlogin.php', '../../graphics/bigTools.png'); 73 $mainCfgLink->setCSSClasses(array('img-padding1 display-as-block')); 74 $topContent->add($mainCfgLink, 12); 75 $cfgLink = new htmlLink(_("Edit server profiles"), 'conflogin.php', '../../graphics/profiles.png'); 76 $cfgLink->setCSSClasses(array('img-padding1 display-as-block')); 77 $topContent->add($cfgLink, 12); 78 if (isLAMProVersion()) { 79 $selfServiceLink = new htmlLink(_("Edit self service"), '../selfService/adminLogin.php', '../../graphics/bigPeople.png'); 80 $selfServiceLink->setCSSClasses(array('img-padding1 display-as-block')); 81 $topContent->add($selfServiceLink, 12); 82 } 83 $topContent->addVerticalSpacer('1rem'); 84 $importExportLink = new htmlLink(_("Import and export configuration"), 'confImportExport.php', '../../graphics/confImportExport.png'); 85 $importExportLink->setCSSClasses(array('img-padding1 display-as-block')); 86 $topContent->add($importExportLink, 12); 87 $content->add($topContent, 12); 88 $content->addVerticalSpacer('4rem'); 89 ?> 90 91 <?php 92 if (isLAMProVersion()) { 93 include_once(__DIR__ . "/../../lib/env.inc"); 94 $printer = new \LAM\ENV\LAMLicenseInfoPrinter(); 95 $content->add($printer->getLicenseInfo(), 12); 96 $content->addVerticalSpacer('2rem'); 97 } 98 99 $content->add(new htmlLink(_("Back to login"), '../login.php', '../../graphics/undo.png'), 12); 100 $content->addVerticalSpacer('2rem'); 101 102 parseHtml('none', $content, array(), true, $tabindex, 'none'); 103 104 ?> 105 106 </body> 107</html> 108