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' => '') - )); - } -?> - -
- 0) { ?> - Previous - -Next -
- -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) { ?> -
-
- .png' class='avatar-img'> -
-
- '> - - -
-
- -
-
-
-
-
- diff --git a/docs/tou.php b/docs/tou.php index d20973e..a19f48f 100755 --- a/docs/tou.php +++ b/docs/tou.php @@ -6,32 +6,31 @@

Terms of Use

1. Respect

-

Disruption to constructive discussion within BiglyChat is prohibited:

+

Respect the BiglyChat community. Specifically, don't:

    -
  1. Repeated personal attacks
  2. -
  3. Exposing non-public personal information
  4. -
  5. Illegal activity in the United States
  6. +
  7. Repeatedly attack a person
  8. +
  9. Expose personal information
  10. +
  11. Encourage illegal activity with respect to United States law

2. Communication

-

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.

3. Exploits

-

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.

4. Age

-

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.

5. Blanket bans

-

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:

  1. Non-historical politics
  2. -
  3. Bigotry against sexuality, race, religion
  4. -
  5. Cryptocurrency or financial services
  6. -
  7. Channels that primarily focus on drama
  8. +
  9. Bigotry against sexuality, race, or religion
  10. +
  11. Cryptocurrency or financial services, excluding commissions for art services
  12. +
  13. Accounts that promote external drama or mostly post drama
  14. Terrorism or violent radicalism
  15. Lewd or shock content
-
\ No newline at end of file +?> diff --git a/docs/user.php b/docs/user.php index 42a6eb7..f09c414 100755 --- a/docs/user.php +++ b/docs/user.php @@ -1,7 +1,8 @@ \ No newline at end of file +?> diff --git a/libs/comment.php b/libs/comment.php new file mode 100644 index 0000000..d4a6f24 --- /dev/null +++ b/libs/comment.php @@ -0,0 +1,54 @@ + 'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => ''), + array('key' => '','type' => 'hidden','name' => 'type', 'default' => $typer), + array('key' => '','type' => 'hidden','name' => 'id', 'default' => $idr) + ),'/index.php'); + } + ?> + +
+ 0) { ?> + Previous + + Next +
+ + prepare("SELECT * FROM comment WHERE targetType = ? AND targetId = ? ORDER BY date DESC LIMIT ? OFFSET ?"); + $stmt->execute([ + $typer, + $idr, + 10, + $page * 10 + ]); + + $posts = $stmt->fetchAll(PDO::FETCH_DEFAULT); + + foreach ($posts as $post) { ?> +
+
+ .png' class='avatar-img'> +
+
+ '> + + +
+
+ +
+
+
+
+
+ diff --git a/libs/form.php b/libs/form.php index 71e4411..0b51280 100755 --- a/libs/form.php +++ b/libs/form.php @@ -17,6 +17,7 @@ class='form-input' type="" name="" + value="" >' : '') ?> \ No newline at end of file +?>