| 1 |
<?php |
| 2 |
namespace LAM\TOOLS\TESTS; |
| 3 |
use htmlResponsiveRow; |
| 4 |
use htmlOutputText; |
| 5 |
use htmlLink; |
| 6 |
use htmlTitle; |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
include_once(__DIR__ . "/../../lib/security.inc"); |
| 37 |
|
| 38 |
include_once(__DIR__ . "/../../lib/config.inc"); |
| 39 |
|
| 40 |
|
| 41 |
startSecureSession(); |
| 42 |
enforceUserIsLoggedIn(); |
| 43 |
|
| 44 |
|
| 45 |
if (!checkIfWriteAccessIsAllowed()) { |
| 46 |
die(); |
| 47 |
} |
| 48 |
|
| 49 |
checkIfToolIsActive('toolTests'); |
| 50 |
|
| 51 |
setlanguage(); |
| 52 |
|
| 53 |
include_once __DIR__ . '/../../lib/adminHeader.inc'; |
| 54 |
echo "<div class=\"smallPaddingContent\">\n"; |
| 55 |
|
| 56 |
$container = new htmlResponsiveRow(); |
| 57 |
$container->add(new htmlTitle(_("LAM tests"))); |
| 58 |
|
| 59 |
$container->add(new htmlLink(_("Schema test"), 'schemaTest.php', '../../graphics/search-color.svg'), 12, 4); |
| 60 |
$container->add(new htmlOutputText(_("Check if the LDAP schema fits the requirements of the selected account modules.")), 12, 8); |
| 61 |
|
| 62 |
$container->addVerticalSpacer('2rem'); |
| 63 |
|
| 64 |
$container->add(new htmlLink(_("Lamdaemon test"), 'lamdaemonTest.php', '../../graphics/script.svg'), 12, 4); |
| 65 |
$container->add(new htmlOutputText(_("Check if quotas and homedirectories can be managed.")), 12, 8); |
| 66 |
|
| 67 |
parseHtml(null, $container, [], true); |
| 68 |
|
| 69 |
echo "</div>\n"; |
| 70 |
include_once __DIR__ . '/../../lib/adminFooter.inc'; |