2006-10-04 18:12:22 +00:00
|
|
|
<?php
|
2018-01-03 17:40:51 +00:00
|
|
|
namespace LAM\TOOLS\TESTS;
|
|
|
|
use \htmlResponsiveRow;
|
|
|
|
use \htmlOutputText;
|
|
|
|
use \htmlLink;
|
|
|
|
use \htmlTitle;
|
2006-10-04 18:12:22 +00:00
|
|
|
/*
|
|
|
|
|
2009-10-27 18:47:12 +00:00
|
|
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
2018-01-03 17:03:00 +00:00
|
|
|
Copyright (C) 2006 - 2018 Roland Gruber
|
2006-10-04 18:12:22 +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.
|
2017-02-11 16:11:37 +00:00
|
|
|
|
2006-10-04 18:12:22 +00:00
|
|
|
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.
|
2017-02-11 16:11:37 +00:00
|
|
|
|
2006-10-04 18:12:22 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides a list of LAM tests.
|
|
|
|
*
|
|
|
|
* @author Roland Gruber
|
|
|
|
* @package tools
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** security functions */
|
|
|
|
include_once("../../lib/security.inc");
|
|
|
|
/** access to configuration options */
|
|
|
|
include_once("../../lib/config.inc");
|
|
|
|
|
|
|
|
// start session
|
|
|
|
startSecureSession();
|
2017-02-11 16:11:37 +00:00
|
|
|
enforceUserIsLoggedIn();
|
2006-10-04 18:12:22 +00:00
|
|
|
|
2007-12-30 13:15:39 +00:00
|
|
|
// die if no write access
|
|
|
|
if (!checkIfWriteAccessIsAllowed()) die();
|
|
|
|
|
2012-07-22 10:37:01 +00:00
|
|
|
checkIfToolIsActive('toolTests');
|
|
|
|
|
2006-10-04 18:12:22 +00:00
|
|
|
setlanguage();
|
|
|
|
|
2018-01-03 17:03:00 +00:00
|
|
|
include '../../lib/adminHeader.inc';
|
2013-01-19 13:18:52 +00:00
|
|
|
echo "<div class=\"user-bright smallPaddingContent\">\n";
|
2006-10-04 18:12:22 +00:00
|
|
|
|
2018-01-03 17:03:00 +00:00
|
|
|
$container = new htmlResponsiveRow();
|
|
|
|
$container->add(new htmlTitle(_("LAM tests")), 12);
|
2006-10-04 18:12:22 +00:00
|
|
|
|
2018-01-03 17:03:00 +00:00
|
|
|
$container->add(new htmlLink(_("Lamdaemon test"), 'lamdaemonTest.php', '../../graphics/lamdaemonSmall.png'), 12, 4);
|
|
|
|
$container->add(new htmlOutputText(_("Check if quotas and homedirectories can be managed.")), 12, 8);
|
2006-10-04 18:12:22 +00:00
|
|
|
|
2018-01-03 17:03:00 +00:00
|
|
|
$container->addVerticalSpacer('2rem');
|
2007-12-29 11:02:00 +00:00
|
|
|
|
2018-01-03 17:03:00 +00:00
|
|
|
$container->add(new htmlLink(_("Schema test"), 'schemaTest.php', '../../graphics/schemaTest.png'), 12, 4);
|
|
|
|
$container->add(new htmlOutputText(_("Check if the LDAP schema fits the requirements of the selected account modules.")), 12, 8);
|
|
|
|
|
2010-10-17 13:38:32 +00:00
|
|
|
$tabindex = 1;
|
|
|
|
parseHtml(null, $container, array(), true, $tabindex, 'user');
|
2007-12-29 11:02:00 +00:00
|
|
|
|
2010-10-17 13:38:32 +00:00
|
|
|
echo "</div>\n";
|
2018-01-03 17:03:00 +00:00
|
|
|
include '../../lib/adminFooter.inc';
|
2006-10-04 18:12:22 +00:00
|
|
|
|
|
|
|
?>
|