getPosition();
}
asort($toSort);
$tools = array();
foreach ($toSort as $key => $value) {
$tools[] = new $key();
}
echo "
\n";
// print tools table
$container = new htmlResponsiveRow();
$container->add(new htmlTitle(_('Tools')), 12);
$toolSettings = $_SESSION['config']->getToolSettings();
for ($i = 0; $i < sizeof($tools); $i++) {
// check access level
if ($tools[$i]->getRequiresWriteAccess() && !checkIfWriteAccessIsAllowed()) {
continue;
}
if ($tools[$i]->getRequiresPasswordChangeRights() && !checkIfPasswordChangeIsAllowed()) {
continue;
}
// check visibility
if (!$tools[$i]->isVisible()) {
continue;
}
// check if hidden by config
$className = get_class($tools[$i]);
$toolName = substr($className, strrpos($className, '\\') + 1);
if (isset($toolSettings['tool_hide_' . $toolName]) && ($toolSettings['tool_hide_' . $toolName] == 'true')) {
continue;
}
// add tool
$container->add(new htmlLink($tools[$i]->getName(), $tools[$i]->getLink(), '../graphics/' . $tools[$i]->getImageLink()), 12, 4);
$container->add(new htmlOutputText($tools[$i]->getDescription()), 12, 8);
$container->addVerticalSpacer('2rem');
}
$tabindex = 1;
parseHtml(null, $container, array(), true, $tabindex, 'user');
echo "
";
include '../lib/adminFooter.inc';
?>