From 29af7dbda57fd8ddf6eeaa4a8ed010e853c1369b Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 31 Jan 2022 12:38:56 +0100 Subject: [PATCH 1/3] fix - loosing filetype information --- acp/core/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acp/core/functions.php b/acp/core/functions.php index 06ffce3e..83051ea7 100644 --- a/acp/core/functions.php +++ b/acp/core/functions.php @@ -928,7 +928,7 @@ function fc_write_media_data($filename,$title=NULL,$notes=NULL,$keywords=NULL,$t $string_labels = ""; } - $filetype = mime_content_type("../$filename"); + $filetype = mime_content_type(realpath($filename)); $cnt = $db_content->count("fc_media", [ "AND" => [ From bfc8c44c5b88f1f0e1ecf699493dc56dd302a844 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 31 Jan 2022 17:24:36 +0100 Subject: [PATCH 2/3] optional - show a snippet when the search returns no results --- core/search.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/search.php b/core/search.php index 4a38b97c..6eb558d4 100644 --- a/core/search.php +++ b/core/search.php @@ -9,12 +9,17 @@ $search_msg = $lang['msg_search_undersized']; } +$msg_no_serach_results = get_textlib('no_search_results',$languagePack); +if($msg_no_serach_results == '') { + $msg_no_serach_results = $lang['msg_search_no_results']; +} + if($s != '' && $start_search == "true") { $sr = fc_search($s,1,10); $cnt_result = count($sr); if($cnt_result < 1) { - $search_msg = $lang['msg_search_no_results']; + $search_msg = $msg_no_serach_results; } else { $search_msg = sprintf($lang['msg_search_results'], $cnt_result); From b155298418f486628013c8c627fc6d8f94fb4a98 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 31 Jan 2022 17:26:16 +0100 Subject: [PATCH 3/3] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d2b4a55..99439306 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## flatCore CMS -flatCore is a lightweight Content Management System based on PHP and SQLite. MySQL database support is in progress and will be released soon. +flatCore is a lightweight Content Management System based on PHP and MySQL or SQLite. GitHub release (latest by date) GitHub GitHub commit activity [![huntr](https://cdn.huntr.dev/huntr_security_badge_mono.svg)](https://huntr.dev) @@ -34,7 +34,6 @@ This branch will be merged into main branch, as soon as a new stable version is + bootstrap-tagsinput - https://github.com/bootstrap-tagsinput/bootstrap-tagsinput + clipboard.js- https://github.com/zenorocha/clipboard.js + DropzoneJS - http://www.dropzonejs.com -+ fancyBox - http://fancyapps.com/fancybox/3/ + featherlight - https://github.com/noelboss/featherlight/ + image-picker - https://github.com/rvera/image-picker + jQuery - https://jquery.com/