From f54d245a3c16d21c5e9417b324bec639050ee6f9 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 24 Oct 2019 16:22:29 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=95=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index eeeb05ec7..1e4ed0d6e 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -21,7 +21,8 @@ function get_microtime() function get_paging($write_pages, $cur_page, $total_page, $url, $add="") { //$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url); - $url = preg_replace('#&page=[0-9]*#', '', $url) . '&page='; + $url = preg_replace('#(&)?page=[0-9]*#', '', $url); + $url .= substr($url, -1) === '?' ? 'page=' : '&page='; $str = ''; if ($cur_page > 1) { From 14282c24fee1eb285451ab5ea84cbfb7c39b2406 Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 29 Oct 2019 14:31:21 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=EC=9D=BC=EB=B6=80=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20hook=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_copy.php | 13 ++++++++++++ adm/board_copy_update.php | 5 +++++ adm/board_form.php | 13 ++++++++++++ adm/board_form_update.php | 5 +++++ bbs/view_image.php | 2 +- head.php | 27 ++---------------------- lib/get_data.lib.php | 42 +++++++++++++++++++++++++++++++++++++ mobile/head.php | 30 ++++++++++---------------- theme/basic/head.php | 26 +---------------------- theme/basic/mobile/head.php | 30 ++++++++++---------------- 10 files changed, 104 insertions(+), 89 deletions(-) diff --git a/adm/board_copy.php b/adm/board_copy.php index 92b006256..291a225ac 100644 --- a/adm/board_copy.php +++ b/adm/board_copy.php @@ -58,6 +58,19 @@ include_once(G5_PATH.'/head.sub.php');