From 62c7e1a74b35ef6d054fdf015d60ba52dc10eb14 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 15:16:59 +0200 Subject: Social page + additional admin options + patch Parsedown --- admin/index.php | 44 ++++++++++++++++++++++++++++++++++++++------ includes/Parsedown.php | 10 +++++----- includes/gui/header.php | 2 +- social/index.php | 24 ++++++++++++++++++++++++ 4 files changed, 68 insertions(+), 12 deletions(-) create mode 100644 social/index.php diff --git a/admin/index.php b/admin/index.php index 0b03f35..f45cd62 100644 --- a/admin/index.php +++ b/admin/index.php @@ -4,10 +4,27 @@

Welcome back !

-
-
+
+
+
+

General

+

General website configuration data.

+ Manage +
+
+
+
+
+
+

File Uploader

+

Encrypted, secure and fast file uploader.

+ Manage +
+
+
+

PluralKit

@@ -16,7 +33,7 @@
-
+

Projects

@@ -25,7 +42,7 @@
-
+

Contact Info

@@ -34,12 +51,27 @@
+
+
+
+

Software Updates

+

Ensure this version of the website is up-to-date.

+ Manage +
+
+
-
-

This website is managed by $item): ?> (you) and , , edit...

+

This website is managed by $item): ?> (you) and , (edit...) and updated through Minteck's TeamCity instance

powered by Pawer Technologies

+ + \ No newline at end of file diff --git a/includes/Parsedown.php b/includes/Parsedown.php index 1b9d6d5..88c0b72 100644 --- a/includes/Parsedown.php +++ b/includes/Parsedown.php @@ -17,7 +17,7 @@ class Parsedown { # ~ - const version = '1.7.4'; + const version = '1.7.4.ProjectCloudsdale'; # ~ @@ -794,7 +794,7 @@ class Parsedown $Block['depth'] ++; } - if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close + if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'])) # close { if ($Block['depth'] > 0) { @@ -823,7 +823,7 @@ class Parsedown protected function blockReference($Line) { - if (preg_match('/^\[(.+?)\]:[ ]*?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches)) + if (preg_match('/^\[(.+?)]:[ ]*?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches)) { $id = strtolower($matches[1]); @@ -1272,7 +1272,7 @@ class Parsedown $remainder = $Excerpt['text']; - if (preg_match('/\[((?:[^][]++|(?R))*+)\]/', $remainder, $matches)) + if (preg_match('/\[((?:[^][]++|(?R))*+)]/', $remainder, $matches)) { $Element['text'] = $matches[1]; @@ -1298,7 +1298,7 @@ class Parsedown } else { - if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) + if (preg_match('/^\s*\[(.*?)]/', $remainder, $matches)) { $definition = strlen($matches[1]) ? $matches[1] : $Element['text']; $definition = strtolower($definition); diff --git a/includes/gui/header.php b/includes/gui/header.php index dff6b67..5f5bc25 100644 --- a/includes/gui/header.php +++ b/includes/gui/header.php @@ -1,6 +1,6 @@ + +
+
+

Social

+
+ +
+ + + +
+
+ + \ No newline at end of file -- cgit