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(); foreach ($tools as $tool) { // check access level if ($tool->getRequiresWriteAccess() && !checkIfWriteAccessIsAllowed()) { continue; } if ($tool->getRequiresPasswordChangeRights() && !checkIfPasswordChangeIsAllowed()) { continue; } // check visibility if (!$tool->isVisible()) { continue; } // check if hidden by config $className = get_class($tool); $toolName = substr($className, strrpos($className, '\\') + 1); if (isset($toolSettings['tool_hide_' . $toolName]) && ($toolSettings['tool_hide_' . $toolName] == 'true')) { continue; } // add tool $container->add(new htmlLink($tool->getName(), $tool->getLink(), '../graphics/' . $tool->getImageLink()), 12, 4); $container->add(new htmlOutputText($tool->getDescription()), 12, 8); $container->addVerticalSpacer('2rem'); } $tabindex = 1; parseHtml(null, $container, array(), true, $tabindex, 'user'); echo "
"; include '../lib/adminFooter.inc'; ?>