r-Output Functions
#
*/
function GenerateFolderList($folder_array, $username)
{
print "<table border=0 align=center>";
for ($l=0; $l<count($folder_array); $l++)
{
echo "<tr><td><a href=\"acl.php?username=",
urlencode($username),
"&folder=",
urlencode($folder_array[$l]),
"\">/$folder_array[$l]</td></tr>\n";
};
print "</table>";
}
function GetUsers($char) {
$users = array();
$this->imap_login();
$output=$this->GetFolders("user.$char");
$this->imap_logout();
$j = 0;
$prev = 0;
for ($i=0; $i < count($output); $i++) {
$username = split("/", $output[$i],-1);
$this->debug("($username),
$users[$prev])");
if ((isset($username)) && (isset($users))) {
if (strcmp($username, $users[$prev])) {
$users[$j] = $username;
$j++;
}
}
if ($j != 0) { $prev = $j - 1; }
}
return $users;
}
function debug($message) {
// echo "<hr>$message<br><hr>";
}
} //KLASSEN ENDE
?>