get_ActiveTypes(); $headerPrefix = ""; if (is_file("../login.php")) $headerPrefix = "../"; elseif (is_file("../../login.php")) $headerPrefix = "../../"; /** tool definitions */ include_once($headerPrefix . "../lib/tools.inc"); // HTML header and title echo $_SESSION['header']; echo "LDAP Account Manager\n"; // include all CSS files $cssDirName = dirname(__FILE__) . '/../style'; $cssDir = dir($cssDirName); while ($cssEntry = $cssDir->read()) { if (substr($cssEntry, strlen($cssEntry) - 4, 4) != '.css') continue; echo "\n"; } echo "\n"; // include all JavaScript files $jsDirName = dirname(__FILE__) . '/lib'; $jsDir = dir($jsDirName); $jsFiles = array(); while ($jsEntry = $jsDir->read()) { if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; $jsFiles[] = $jsEntry; } sort($jsFiles); foreach ($jsFiles as $jsEntry) { echo "\n"; } // get tool list $availableTools = getTools(); // sort tools $toSort = array(); for ($i = 0; $i < sizeof($availableTools); $i++) { $myTool = new $availableTools[$i](); if ($myTool->getRequiresWriteAccess() && !checkIfWriteAccessIsAllowed()) { continue; } if ($myTool->getRequiresPasswordChangeRights() && !checkIfPasswordChangeIsAllowed()) { continue; } $toSort[$availableTools[$i]] = $myTool->getPosition(); } asort($toSort); $tools = array(); foreach ($toSort as $key => $value) { $tools[] = new $key(); } ?>
 LDAP Account Manager  LDAP Account Manager