diff --git a/docs/index.php b/docs/index.php index 921cc04..a8aab3d 100755 --- a/docs/index.php +++ b/docs/index.php @@ -1,35 +1,44 @@ 1024) { - return 'Post is too long or short.'; - } + getOut($postType,$postId); + } $stmt = $db->prepare("INSERT INTO main.comment (username, targetType, targetId, date, content, id) VALUES (?,?,?,?,?,?)"); - $stmt->execute([$username,"root","root",microtime(true) - $ref,$postie,bin2hex(random_bytes(16))]); - - header("Location: " . $_SERVER["REQUEST_URI"]); - die(); - } + $stmt->execute([$username,$postType,$postId,microtime(true) - $ref,$postie,bin2hex(random_bytes(16))]); + + getOut($postType,$postId); + } + + post_handler(); page_header(); - - $form_message = post_handler(); - - $page = array_key_exists('page',$_GET) ? ($_GET['page']) : 0; ?>
- 'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => '') - )); - } -?> - - - -prepare("SELECT * FROM comment ORDER BY date DESC LIMIT ? OFFSET ?"); - $stmt->execute([ - 10, - $page * 10 - ]); - - $posts = $stmt->fetchAll(PDO::FETCH_DEFAULT); - - foreach ($posts as $post) { ?> -Disruption to constructive discussion within BiglyChat is prohibited:
+Respect the BiglyChat community. Specifically, don't:
Official communications of BiglyChat are the native website and Discord. Report +
Official communication with BiglyChat staff is on the native website. Report misbehavior, suggestions, and bug fixes to these channels.
Don't exploit destructive functionality in Dervland services or hijack accounts to do so.
+Don't exploit unintended functionality in Dervland services or hijack accounts to do so.
You must be 13 years or older.
+You must be 13 years or older to use private channels that aren't with staff members or related to computer science.
Certain topics disallowed in public spaces frequently spiral to unhealthy discussion or impulsive behavior:
+Certain topics are disallowed in public spaces that frequently spiral to unhealthy discussion or impulsive behavior: