summaryrefslogtreecommitdiff
path: root/forum/utils/users.php
diff options
context:
space:
mode:
authordeva <deva>2008-10-26 16:06:16 +0000
committerdeva <deva>2008-10-26 16:06:16 +0000
commit9d7dbbf351aa7983f0fe499a3f80b59ee2f68547 (patch)
tree331d7a2e616a0be0e3a0a1e2b49fbe48e1798f4b /forum/utils/users.php
parent648878fb3a0430506c3b0f5a92bc7699b7ceb3ed (diff)
Added signature support in profile and forum posts.
Diffstat (limited to 'forum/utils/users.php')
-rw-r--r--forum/utils/users.php10
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);