|
|
|
@ -29,7 +29,6 @@ class User { |
|
|
|
/** |
|
|
|
* Class constructor. Reloads the user's session or attempts to authenticate |
|
|
|
* the user. |
|
|
|
* Note that the constructor is private. This class is a singleton. |
|
|
|
*/ |
|
|
|
function __construct() |
|
|
|
{ |
|
|
|
@ -109,6 +108,15 @@ class User { |
|
|
|
Session::dispose(); |
|
|
|
} |
|
|
|
|
|
|
|
function createDir() |
|
|
|
{ |
|
|
|
if(!is_dir($this->userdir) |
|
|
|
&& $this->userdir != '') { |
|
|
|
mkdir($this->userdir); |
|
|
|
touch($this->userdir.'index.html'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function getLogin() |
|
|
|
{ |
|
|
|
return $this->username; |
|
|
|
|