");
foreach ($allUsers as $userId => $userObject)
{
if($userId == "shared") continue;
print("
");
$imgSrc = "user_normal.png";
if($userId == "admin") $imgSrc = "user_sysadmin.png";
else if($userId == "guest") $imgSrc = "user_guest.png";
print("

User
$userId");
print("
");
print("
");
//.$userObject->getId()."
");
}
//print("");
exit(1);
break;
case "drivers_list":
AJXP_XMLWriter::header("ajxpdrivers");
print(ConfService::availableDriversToXML());
AJXP_XMLWriter::close("ajxpdrivers");
exit(1);
break;
case "create_repository" :
$options = array();
$repDef = $_GET;
unset($repDef["get_action"]);
foreach ($repDef as $key => $value){
if(get_magic_quotes_gpc()) $value = stripslashes($value);
if(strpos($key, "DRIVER_OPTION_")!== false && strpos($key, "DRIVER_OPTION_")==0){
$options[substr($key, strlen("DRIVER_OPTION_"))] = $value;
unset($repDef[$key]);
}else{
$repDef[$key] = $value;
}
}
if(count($options)){
$repDef["DRIVER_OPTIONS"] = $options;
}
// NOW SAVE THIS REPOSITORY!
$newRep = ConfService::createRepositoryFromArray(0, $repDef);
$res = ConfService::addRepository($newRep);
AJXP_XMLWriter::header();
if($res == -1){
AJXP_XMLWriter::sendMessage(null, "The conf directory is not writeable");
}else{
AJXP_XMLWriter::sendMessage("Successfully created repository", null);
}
AJXP_XMLWriter::close();
exit(1);
break;
case "repository_list" :
$repList = ConfService::getRootDirsList();
AJXP_XMLWriter::header("repositories");
foreach ($repList as $index => $value){
$nested = array();
print("