/_taios.php |
---|
257,11 → 257,20 |
{ |
$post = new BlogPost; |
$post->ID = $row['ID']; |
if ($row['ParentID'] == -1) |
{ |
$post->parent = -1; |
} |
else |
{ |
$post->parent = $this->getBlogPost($row['ParentID']); |
} |
$post->user = $this->getUserByID($row['AuthorID']); |
$post->title = $row['Title']; |
$post->content = $row['Content']; |
$post->datePosted = strtotime($row['DatePosted']); |
$post->category = $row['Category']; |
$post->spam = $row['Spam']; |
return $post; |
} |
306,11 → 315,13 |
class BlogPost |
{ |
public $ID; |
public $parent; |
public $author; |
public $title; |
public $content; |
public $datePosted; |
public $category; |
public $spam; |
} |
function write($str) |
/admin/account.php |
---|
16,10 → 16,12 |
?> |
<table> |
<tr> |
<td class="bold">ID: </td> |
<td><?php echo $user->ID; ?></td> |
</tr> |
<tr><td class="bold">ID: </td><td><?php echo $user->ID; ?></td></tr> |
<tr><td class="bold">AccessID: </td><td><?php echo $user->accessID; ?></td></tr> |
<tr><td class="bold">Username: </td><td><?php echo $user->username; ?></td></tr> |
<tr><td class="bold">Password: </td><td><?php echo $user->password; ?></td></tr> |
<tr><td class="bold">Email Address: </td><td><?php echo $user->emailAddress; ?></td></tr> |
<tr><td class="bold">Name: </td><td><?php echo $user->name; ?></td></tr> |
</table> |
<?php |