diff --git a/assets/common/styles.css b/assets/common/styles.css index c21d08e..a4e6827 100755 --- a/assets/common/styles.css +++ b/assets/common/styles.css @@ -284,8 +284,13 @@ code { height: 5em; } +.comment-content { + margin: 0.5em; +} + .comment-author { margin: 0.5em; + max-width: 100%; display: inline-block; } @@ -312,4 +317,5 @@ input[type=checkbox]:checked ~ .comment-response{ .comment-response { display: none; border-top: double black; + padding: 0.5em; } diff --git a/docs/common/header.php b/docs/common/header.php index 215f951..9a51045 100755 --- a/docs/common/header.php +++ b/docs/common/header.php @@ -3,6 +3,9 @@ // Include config file include_once("config.php"); +// Include utils to have access to custom classes +include_once("utils.php"); + // Start session session_start(); diff --git a/docs/common/utils.php b/docs/common/utils.php index dfef57c..7b6908d 100644 --- a/docs/common/utils.php +++ b/docs/common/utils.php @@ -1,4 +1,26 @@ user_id = $userId; + $this->user_name = $username; + $this->email = $email; + $this->permissions = $permissions; + } +} + /** * Sanitize a given input string to be safe to display and process. */ diff --git a/docs/www/blog/article.php b/docs/www/blog/article.php index c9dd152..8b129d1 100644 --- a/docs/www/blog/article.php +++ b/docs/www/blog/article.php @@ -2,7 +2,6 @@ $COMMONS = $_SERVER['DOCUMENT_ROOT'] . "/../common"; include_once($COMMONS."/header.php"); -include_once($COMMONS."/utils.php"); class BlogpostComment { @@ -10,6 +9,7 @@ class BlogpostComment public $blogpost_id; public $poster_id; public $poster_name; + public $parent_id; public $timestamp; public $content; public $children; @@ -32,13 +32,26 @@ class BlogpostComment %s
Email: | +Username: | - + | - + |
Password: | @@ -124,7 +130,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {