diff --git a/imgboard.php b/imgboard.php index e3413f3..d97c10b 100644 --- a/imgboard.php +++ b/imgboard.php @@ -331,6 +331,9 @@ if (isset($_POST["message"]) || isset($_POST["file"])) { session_destroy(); die('--> --> -->'); } + if ($text == '') { + $text = 'Thread count: ' . countThreads() . ' · Ban count: ' . count(allBans()); + } } else { $onload = manageOnLoad('login'); $text .= manageLogInForm(); diff --git a/inc/functions.php b/inc/functions.php index 42497f3..2d79f40 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -106,7 +106,7 @@ function nameAndTripcode($name) { } function nameBlock($name, $tripcode, $email, $timestamp) { - $output = ""; + $output = ''; if ($name == "" && $tripcode == "") { $output .= "Anonymous"; @@ -118,11 +118,13 @@ function nameBlock($name, $tripcode, $email, $timestamp) { $output .= '!' . $tripcode; } + $output .= ''; + if ($email != "") { $output = '' . $output . ''; } - - return '' . $output . ' ' . date('y/m/d(D)H:i:s', $timestamp); + + return $output . ' ' . date('y/m/d(D)H:i:s', $timestamp); } function writePage($filename, $contents) { diff --git a/inc/html.php b/inc/html.php index cb0eca6..b7c4c95 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1,6 +1,36 @@ + +
+