diff --git a/themes/minimalpunk/css/user.css.php b/themes/minimalpunk/css/user.css.php index 2d6111c..2c72f62 100644 --- a/themes/minimalpunk/css/user.css.php +++ b/themes/minimalpunk/css/user.css.php @@ -36,7 +36,9 @@ } -/* Form column */ + + /* Form column */ + .form-column{ background-color: = $color_2 ?>; padding: 10px; @@ -55,7 +57,8 @@ background-color: = $color_main ?> } -/* Highlighted post (?p=id) */ + + /* Highlighted post (?p=p) */ .highlighted-post{ background-color: = $color_2 ?>; @@ -88,7 +91,9 @@ color: = $color_4 ?>; } -/* Questions */ + + /* Questions */ + .question-container{ padding: 10px; background-color: = $color_main ?>; @@ -127,7 +132,25 @@ margin-top: 20px; } -/* Footer */ + + /* Page selector */ + +.page-selector{ + text-align: center; + color: = $color_4 ?>; +} + .ps_item{ + display: inline-block; + } + .ps_item a{ + padding: 5px; + font-weight: bold; + text-decoration: none; + } + + + /* Footer */ + #footer{ padding: 10px; /*background-color: = $color_3 ?>;*/ diff --git a/user.php b/user.php index 7968ec1..c4c41be 100644 --- a/user.php +++ b/user.php @@ -7,7 +7,7 @@ include("include/settings.php"); $db = new SQLite3('ask.db'); $p_user = $db->query("SELECT * FROM users WHERE username = '" . $_GET["q"] . "';")->fetchArray(SQLITE3_ASSOC); -if(!$p_user || !$p_user["id"]){ +if(!$p_user || $p_user["id"] == 0){ // Test if user exists or if it is the id 0, anonymous include("404.php"); die(); } @@ -27,10 +27,10 @@ if(isset($_SESSION["uid"])){
-= $p_user["username"] ?>
-+
= $p_user["username"] ?>
+ @@ -121,28 +121,28 @@ if(isset($_GET["p"])){ } ?> -" ); if($q_user["id"] == 0){ // no link if anonymous echo($q_user["name"]); @@ -172,45 +174,113 @@ if(isset($_GET["p"])){ echo ("/"); else echo(".php?q="); - echo($q_user["name"] . "'>" . $q_user["name"] ."\n"); + echo($q_user["name"] . "'>" . $q_user["name"] .""); } - echo("
"); + echo("\n"); // Actual text body - echo("\t". $current["question"] ."
\n"); + echo("\t\t\t\t"); + echo("". $current["question"] ."
\n"); /* Question footer */ + echo("\t\t\t\t"); echo(' '); // Footer + echo("\t\t\t\t"); + echo("" . $current["answer"] . "
"); - $time->settimestamp($current["a_date"]); - echo("" . $time->format("Y-m-d h:i:s") . "
"); - echo("" . $current["answer"] . "
\n")); + + $time->settimestamp($current["a_date"]); + echo("\t\t\t\t\t"); + echo("" . $time->format("Y-m-d h:i:s") . "
\n"); + + echo("\t\t\t\t"); + echo("