{
function __construct($dir)
{
+ if (!file_exists($dir)) {
+ throw new Exception("Gebruiker niet gevonden in $dir");
+ }
$this->dir = $dir;
$this->login = basename($dir);
}
function rawname()
{
- return @file_get_contents("{$this->dir}/name.txt");
+ return rtrim(@file_get_contents("{$this->dir}/name.txt"));
}
function name()