diff options
Diffstat (limited to 'forum/utils/users.php')
| -rw-r--r-- | forum/utils/users.php | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/forum/utils/users.php b/forum/utils/users.php index 93cc23c..7f54eee 100644 --- a/forum/utils/users.php +++ b/forum/utils/users.php @@ -12,6 +12,7 @@ class User {  	public $avatar;  	public $email;  	public $notified; +	public $signature;  	public function checkPassword($password)  	{ @@ -28,11 +29,12 @@ class User {  		fwrite($fp, "        password=\"" . $this->password . "\"\n");  		fwrite($fp, "        name=\"" . htmlspecialchars($this->name, ENT_QUOTES, "UTF-8") . "\"\n");  		fwrite($fp, "        avatar=\"" . htmlspecialchars($this->avatar, ENT_QUOTES, "UTF-8") . "\"\n"); -		fwrite($fp, "        email=\"" . htmlspecialchars($this->email, ENT_QUOTES, "UTF-8") . "\">\n"); -		fwrite($fp, "  </user>\n"); +		fwrite($fp, "        email=\"" . htmlspecialchars($this->email, ENT_QUOTES, "UTF-8") . "\">"); +		fwrite($fp, htmlspecialchars($this->signature, ENT_QUOTES, "UTF-8")); +		fwrite($fp, "</user>\n");  	} -	public function User($enabled, $uid, $gid, $username, $password, $name, $email, $avatar, $notified) +	public function User($enabled, $uid, $gid, $username, $password, $name, $email, $avatar, $signature, $notified)  	{  		$this->enabled = $enabled;  		$this->gid = $gid; @@ -42,6 +44,7 @@ class User {  		$this->email = $email;  		$this->name = $name;  		$this->avatar = $avatar; +		$this->signature = $signature;  		if($notified == "") $notified = 0;  		$this->notified = $notified;  	} @@ -119,6 +122,7 @@ class Users {  											 $u->getAttribute('name'),  											 $u->getAttribute('email'),  											 $u->getAttribute('avatar'), +											 $u->textContent,  											 $u->getAttribute('notified'));  			$this->add($user); | 
