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);
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;
}
// 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';
?>