getPosition();
}
asort($toSort);
$tools = array();
foreach ($toSort as $key => $value) {
$tools[] = new $key();
}
echo "
\n";
// print tools table
$container = new htmlTable();
$container->addElement(new htmlTitle(_('Tools')), true);
$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->addElement(new htmlLink($tools[$i]->getName(), $tools[$i]->getLink(), '../graphics/' . $tools[$i]->getImageLink()));
$container->addElement(new htmlSpacer('10px', null));
$container->addElement(new htmlOutputText($tools[$i]->getDescription()), true);
$container->addElement(new htmlSpacer(null, '20px'), true);
}
$tabindex = 1;
parseHtml(null, $container, array(), true, $tabindex, 'user');
echo "
";
include 'main_footer.php';
?>