From f8fc729c046ee2a8a671711017c77424f06b25d8 Mon Sep 17 00:00:00 2001 From: bg5sbk Date: Tue, 20 Jul 2021 01:33:21 +0800 Subject: [PATCH] Close #40, Close #39, Close #38, Close #36, Close #34, Close #31, Close #30, Close #27, Close #26, Close #24, Close #23, Close #22, Close #21, Close #20, Close #18, Close #16, Close #15 --- mc-admin/conf.php | 4 +- mc-admin/head.php | 4 +- mc-admin/index.php | 2 +- mc-admin/page-edit.php | 23 +- mc-admin/page.php | 32 +- mc-admin/post-edit.php | 21 +- mc-admin/post.php | 34 +- mc-files/Michelf/License.md | 36 + mc-files/Michelf/Markdown.inc.php | 10 + mc-files/Michelf/Markdown.php | 1909 ++++++++++++++++++++ mc-files/Michelf/MarkdownExtra.inc.php | 11 + mc-files/Michelf/MarkdownExtra.php | 1893 +++++++++++++++++++ mc-files/Michelf/MarkdownInterface.inc.php | 9 + mc-files/Michelf/MarkdownInterface.php | 38 + mc-files/mc-tags.php | 37 +- 15 files changed, 3990 insertions(+), 73 deletions(-) create mode 100644 mc-files/Michelf/License.md create mode 100644 mc-files/Michelf/Markdown.inc.php create mode 100644 mc-files/Michelf/Markdown.php create mode 100644 mc-files/Michelf/MarkdownExtra.inc.php create mode 100644 mc-files/Michelf/MarkdownExtra.php create mode 100644 mc-files/Michelf/MarkdownInterface.inc.php create mode 100644 mc-files/Michelf/MarkdownInterface.php diff --git a/mc-admin/conf.php b/mc-admin/conf.php index da6ccdf..28adb04 100755 --- a/mc-admin/conf.php +++ b/mc-admin/conf.php @@ -10,7 +10,7 @@ $mc_config['site_link'] = $_POST['site_link']; $mc_config['user_nick'] = $_POST['user_nick']; $mc_config['user_name'] = $_POST['user_name']; - $mc_config['comment_code'] = get_magic_quotes_gpc() ? stripslashes(trim($_POST['comment_code'])) : trim($_POST['comment_code']); + $mc_config['comment_code'] = trim($_POST['comment_code']); if ($_POST['user_pass'] != '') $mc_config['user_pass'] = $_POST['user_pass']; @@ -33,7 +33,7 @@ $user_name = $mc_config['user_name']; $comment_code = isset($mc_config['comment_code']) ? $mc_config['comment_code'] : ''; ?> -
+
设置保存成功!
diff --git a/mc-admin/head.php b/mc-admin/head.php index d2bdb40..1c47eed 100755 --- a/mc-admin/head.php +++ b/mc-admin/head.php @@ -31,7 +31,7 @@ function shorturl($input) { for ($i = 0; $i < $subHexLen; $i++) { $subHex = substr ($hex, $i * 8, 8); - $int = 0x3FFFFFFF & (1 * ('0x'.$subHex)); + $int = 0x3FFFFFFF & (1 * hexdec('0x'.$subHex)); $out = ''; for ($j = 0; $j < 6; $j++) { $val = 0x0000001F & $int; @@ -62,7 +62,7 @@ function post_sort($a, $b) {