From 9d7dbbf351aa7983f0fe499a3f80b59ee2f68547 Mon Sep 17 00:00:00 2001
From: deva <deva>
Date: Sun, 26 Oct 2008 16:06:16 +0000
Subject: Added signature support in profile and forum posts.

---
 forum/utils/users.php | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'forum/utils/users.php')

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);
-- 
cgit v1.2.3