diff --git a/docs/comment.php b/docs/comment.php
index 4b2c20e..1abcdda 100644
--- a/docs/comment.php
+++ b/docs/comment.php
@@ -4,6 +4,8 @@ require(__DIR__ . "/../libs/page.php");
require(__DIR__ . "/../libs/form.php");
require(__DIR__ . "/../libs/comment.php");
+$ref = 1732684297;
+
page_header();
comments("comment", $_GET['id']);
page_footer();
diff --git a/docs/css/main.css b/docs/css/main.css
index 22955cf..99edeba 100755
--- a/docs/css/main.css
+++ b/docs/css/main.css
@@ -202,10 +202,6 @@ iframe {
justify-content: center;
}
-.header a.leave {
- margin-left: auto;
-}
-
.clickie {
width: min-content;
margin-top: 40px;
diff --git a/docs/index.php b/docs/index.php
index 1ea5085..2c12284 100644
--- a/docs/index.php
+++ b/docs/index.php
@@ -4,17 +4,25 @@ require(__DIR__ . "/../libs/form.php");
require(__DIR__ . "/../libs/comment.php");
page_header();
-if (!($_GET['page'] > 0) && is_null($username)) { ?>
+if (!is_null($username)) {
+ //comments("root","root");
+}
+if (!($_GET['page'] > 0)) { ?>
diff --git a/docs/meta.php b/docs/meta.php
index cddee71..ba9c6f2 100644
--- a/docs/meta.php
+++ b/docs/meta.php
@@ -50,13 +50,28 @@ function get_handler()
$followers = $stmt->fetchAll(PDO::FETCH_DEFAULT);
}
get_handler();
+//todo: rewrite
?>
0) { ?>
Previous
diff --git a/libs/markdown.php b/libs/markdown.php
index 28a7656..eec5fd0 100755
--- a/libs/markdown.php
+++ b/libs/markdown.php
@@ -2,24 +2,40 @@
function markdown($text)
{
$search = array(
- '~(https://[^.]+\.dervland\.net/[^\s<]+\.(png|jpg|jpeg|gif))~i',
- '~(https://[^.]+\.dervland\.net/[^\s<]+\.(mp3|wav))~i',
- '~(https://[^.]+\.dervland\.net/[^\s<]+\.(webm|mp4))~i',
- //'~(https://studio\.penguinmod\.com/[^\s#]*[#]([^\s<]*))~i',
- //'~(https://studio\.penguinmod\.com/[^\s#]*[?#]?([^\s<#]*)[#]?([^\s<]*))~i',
- '~(?:\s|^)(?:(https?)://([^\s<]+)|(www\.[^\s<]+?\.[^\s<]+))(?
$1

',
- '
$1
',
- '
$1
',
- //'https://studio.penguinmod.com/?#$2',
- //'
$1
',
- '
$0',
- '
@$1',
- );
+ '
$1

',
+ '
$1
',
+ '
$1
',
+ //'https://studio.penguinmod.com/?#$2',
+ //'
$1
',
+ '
$0',
+ '
@$1',
+ '
$2',
+ '
$2',
+ '
$2',
+ '
',
+ '
$2',
+ '
$2
',
+ '
$4',
+ '
$2'
+ );
$text = preg_replace($search, $replace, $text);
diff --git a/libs/page.php b/libs/page.php
index 40d74d8..81f7494 100755
--- a/libs/page.php
+++ b/libs/page.php
@@ -7,66 +7,39 @@ function page_header()
global $username;
$stmt = $db->prepare("SELECT * FROM comment WHERE targetType = ? AND targetId = ? ORDER BY date DESC");
$stmt->execute([
- "notification",
- $username,
+ "notification",
+ $username,
]);
$posts2 = $stmt->fetchAll(PDO::FETCH_DEFAULT);
-
- $stmt = $db->prepare("SELECT * FROM main.read WHERE username = ?");
- $stmt->execute([
- $username
- ]);
-
- $counter = $stmt->fetchAll(PDO::FETCH_DEFAULT);
-
- $edge = count($posts2) - $counter[0]['msgs'];
+ $edge = count($posts2);
?>
-
-
-
-
BiglyChat
-
-
-
-
-
-
-
-
-
+
+
+
+
BiglyChat
+
+
+
+
+
+