' .
_("Could not create hashed directory structure!") . "
\n" .
_("Please contact your system administrator and report this error.") . "
\n";
exit;
}
}
}
/* And return that directory. */
return ($real_hash_dir);
}
function computeHashDirs($username) {
/* Compute the hash for this user and extract the hash directories. */
$hash = base_convert(crc32($username), 10, 16);
$hash_dirs = array();
for ($h = 0; $h < 4; ++ $h) {
$hash_dirs[] = substr($hash, $h, 1);
}
/* Return our array of hash directories. */
return ($hash_dirs);
}
?>