From 9e8607ca8e40ccc17a6d4dd7aaaca40364d940d1 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 18 Jan 2025 09:06:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20=E2=99=BB=EF=B8=8F=20=20(rebrand?= =?UTF-8?q?):=20rename=20the=20project=20as=20Koblog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #27 --- .github/issue_template.md | 2 +- bl-kernel/abstract/dbjson.class.php | 4 +- bl-kernel/abstract/dblist.class.php | 2 +- bl-kernel/abstract/plugin.class.php | 16 ++++---- bl-kernel/admin/controllers/about.php | 2 +- bl-kernel/admin/controllers/api.php | 2 +- bl-kernel/admin/controllers/categories.php | 2 +- .../admin/controllers/configure-plugin.php | 2 +- bl-kernel/admin/controllers/content.php | 2 +- bl-kernel/admin/controllers/dashboard.php | 22 +++++----- bl-kernel/admin/controllers/developers.php | 2 +- bl-kernel/admin/controllers/edit-category.php | 2 +- bl-kernel/admin/controllers/edit-content.php | 2 +- bl-kernel/admin/controllers/edit-user.php | 2 +- .../admin/controllers/install-plugin.php | 2 +- bl-kernel/admin/controllers/install-theme.php | 2 +- bl-kernel/admin/controllers/login.php | 2 +- bl-kernel/admin/controllers/logout.php | 2 +- bl-kernel/admin/controllers/new-category.php | 2 +- bl-kernel/admin/controllers/new-content.php | 2 +- bl-kernel/admin/controllers/new-user.php | 2 +- .../admin/controllers/plugins-position.php | 2 +- bl-kernel/admin/controllers/plugins.php | 2 +- bl-kernel/admin/controllers/settings.php | 2 +- bl-kernel/admin/controllers/themes.php | 2 +- .../admin/controllers/uninstall-plugin.php | 2 +- bl-kernel/admin/controllers/user-password.php | 2 +- bl-kernel/admin/controllers/users.php | 2 +- bl-kernel/admin/themes/booty/html/media.php | 30 +++++++------- bl-kernel/admin/themes/booty/html/navbar.php | 2 +- bl-kernel/admin/themes/booty/html/sidebar.php | 2 +- bl-kernel/admin/themes/booty/index.php | 10 ++--- bl-kernel/admin/themes/booty/login.php | 8 ++-- bl-kernel/admin/views/about.php | 16 ++++---- bl-kernel/admin/views/blocks.php | 2 +- bl-kernel/admin/views/categories.php | 2 +- bl-kernel/admin/views/configure-plugin.php | 2 +- bl-kernel/admin/views/developers.php | 6 +-- bl-kernel/admin/views/edit-category.php | 2 +- bl-kernel/admin/views/edit-content.php | 12 +++--- bl-kernel/admin/views/edit-user.php | 4 +- bl-kernel/admin/views/login.php | 4 +- bl-kernel/admin/views/new-category.php | 2 +- bl-kernel/admin/views/new-content.php | 12 +++--- bl-kernel/admin/views/new-user.php | 2 +- bl-kernel/admin/views/plugins-position.php | 2 +- bl-kernel/admin/views/settings.php | 4 +- bl-kernel/admin/views/user-password.php | 2 +- bl-kernel/admin/views/users.php | 2 +- bl-kernel/ajax/clippy.php | 2 +- bl-kernel/ajax/content-get-list.php | 2 +- bl-kernel/ajax/delete-image.php | 2 +- bl-kernel/ajax/generate-slug.php | 2 +- bl-kernel/ajax/get-published.php | 2 +- bl-kernel/ajax/list-images.php | 2 +- bl-kernel/ajax/logo-remove.php | 2 +- bl-kernel/ajax/logo-upload.php | 2 +- bl-kernel/ajax/profile-picture-upload.php | 2 +- bl-kernel/ajax/save-as-draft.php | 2 +- bl-kernel/ajax/upload-images.php | 4 +- bl-kernel/boot/admin.php | 6 +-- bl-kernel/boot/init.php | 18 ++++---- bl-kernel/boot/rules/60.plugins.php | 2 +- bl-kernel/boot/rules/60.router.php | 2 +- bl-kernel/boot/rules/69.pages.php | 2 +- bl-kernel/boot/rules/99.header.php | 4 +- bl-kernel/boot/rules/99.paginator.php | 2 +- bl-kernel/boot/rules/99.security.php | 2 +- bl-kernel/boot/rules/99.themes.php | 6 +-- bl-kernel/boot/site.php | 2 +- bl-kernel/boot/variables.php | 6 +-- bl-kernel/categories.class.php | 2 +- bl-kernel/category.class.php | 2 +- bl-kernel/functions.php | 2 +- bl-kernel/helpers/alert.class.php | 2 +- bl-kernel/helpers/cookie.class.php | 2 +- bl-kernel/helpers/date.class.php | 2 +- bl-kernel/helpers/dom.class.php | 2 +- bl-kernel/helpers/email.class.php | 4 +- bl-kernel/helpers/filesystem.class.php | 2 +- bl-kernel/helpers/image.class.php | 2 +- bl-kernel/helpers/log.class.php | 4 +- bl-kernel/helpers/paginator.class.php | 2 +- bl-kernel/helpers/redirect.class.php | 2 +- bl-kernel/helpers/sanitize.class.php | 2 +- bl-kernel/helpers/session.class.php | 4 +- bl-kernel/helpers/tcp.class.php | 2 +- bl-kernel/helpers/text.class.php | 2 +- bl-kernel/helpers/theme.class.php | 20 ++++----- bl-kernel/helpers/valid.class.php | 2 +- bl-kernel/js/bludit-ajax.php | 16 ++++---- bl-kernel/js/variables.php | 6 +-- bl-kernel/language.class.php | 2 +- bl-kernel/login.class.php | 4 +- bl-kernel/pages.class.php | 2 +- bl-kernel/pagex.class.php | 4 +- bl-kernel/security.class.php | 2 +- bl-kernel/site.class.php | 6 +-- bl-kernel/syslog.class.php | 2 +- bl-kernel/tag.class.php | 2 +- bl-kernel/tags.class.php | 2 +- bl-kernel/url.class.php | 2 +- bl-kernel/user.class.php | 2 +- bl-kernel/users.class.php | 2 +- bl-languages/ar_MA.json | 24 +++++------ bl-languages/bg_BG.json | 24 +++++------ bl-languages/ckb.json | 32 +++++++-------- bl-languages/cs_CZ.json | 26 ++++++------ bl-languages/da.json | 24 +++++------ bl-languages/de_AT.json | 24 +++++------ bl-languages/de_CH.json | 24 +++++------ bl-languages/de_DE.json | 24 +++++------ bl-languages/en.json | 24 +++++------ bl-languages/es.json | 24 +++++------ bl-languages/fa_IR.json | 22 +++++----- bl-languages/fi_FI.json | 24 +++++------ bl-languages/fr_FR.json | 24 +++++------ bl-languages/gr.json | 24 +++++------ bl-languages/he_IL.json | 24 +++++------ bl-languages/hu_HU.json | 24 +++++------ bl-languages/id_ID.json | 24 +++++------ bl-languages/it_IT.json | 24 +++++------ bl-languages/ja_JP.json | 24 +++++------ bl-languages/lt.json | 24 +++++------ bl-languages/ms_MY.json | 24 +++++------ bl-languages/nl_NL.json | 24 +++++------ bl-languages/pl_PL.json | 24 +++++------ bl-languages/pt_BR.json | 26 ++++++------ bl-languages/pt_PT.json | 26 ++++++------ bl-languages/ro_RO.json | 24 +++++------ bl-languages/ru.json | 24 +++++------ bl-languages/sv_SE.json | 26 ++++++------ bl-languages/tr_TR.json | 24 +++++------ bl-languages/uk_UA.json | 24 +++++------ bl-languages/vi_VN.json | 24 +++++------ bl-languages/zh_CN.json | 26 ++++++------ bl-languages/zh_TW.json | 24 +++++------ bl-plugins/about/metadata.json | 4 +- bl-plugins/alternative/metadata.json | 4 +- bl-plugins/api/languages/da.json | 2 +- bl-plugins/api/languages/de_CH.json | 2 +- bl-plugins/api/languages/de_DE.json | 2 +- bl-plugins/api/languages/en.json | 2 +- bl-plugins/api/languages/es.json | 2 +- bl-plugins/api/languages/fr_FR.json | 2 +- bl-plugins/api/languages/it.json | 2 +- bl-plugins/api/languages/ja_JP.json | 2 +- bl-plugins/api/languages/nl_NL.json | 2 +- bl-plugins/api/languages/ru.json | 2 +- bl-plugins/api/languages/tr_TR.json | 2 +- bl-plugins/api/metadata.json | 4 +- bl-plugins/api/plugin.php | 2 +- bl-plugins/canonical/metadata.json | 4 +- bl-plugins/categories/metadata.json | 4 +- bl-plugins/custom-fields-parser/metadata.json | 4 +- bl-plugins/disqus/metadata.json | 4 +- bl-plugins/easymde/plugin.php | 8 ++-- bl-plugins/hit-counter/metadata.json | 4 +- bl-plugins/html-code/metadata.json | 4 +- bl-plugins/links/metadata.json | 4 +- bl-plugins/links/plugin.php | 8 ++-- bl-plugins/maintenance-mode/metadata.json | 4 +- bl-plugins/navigation/metadata.json | 4 +- bl-plugins/opengraph/metadata.json | 4 +- bl-plugins/popeye/metadata.json | 4 +- bl-plugins/remote-content/languages/da.json | 2 +- .../remote-content/languages/de_CH.json | 2 +- .../remote-content/languages/de_DE.json | 2 +- bl-plugins/remote-content/languages/en.json | 2 +- bl-plugins/remote-content/languages/es.json | 2 +- .../remote-content/languages/fr_FR.json | 2 +- bl-plugins/remote-content/languages/it.json | 2 +- .../remote-content/languages/ja_JP.json | 2 +- .../remote-content/languages/nl_NL.json | 2 +- bl-plugins/remote-content/metadata.json | 4 +- bl-plugins/robots/metadata.json | 4 +- bl-plugins/rss/metadata.json | 4 +- bl-plugins/rss/plugin.php | 2 +- bl-plugins/search/metadata.json | 4 +- bl-plugins/search/vendors/fuzz.php | 2 +- bl-plugins/simple-stats/metadata.json | 4 +- bl-plugins/simple-stats/plugin.php | 4 +- bl-plugins/sitemap/metadata.json | 4 +- bl-plugins/static-pages/metadata.json | 4 +- bl-plugins/tags/metadata.json | 4 +- bl-plugins/tinymce/plugin.php | 6 +-- bl-plugins/twitter-cards/metadata.json | 4 +- bl-plugins/version/js/version.js | 8 ++-- bl-plugins/version/languages/da.json | 2 +- bl-plugins/version/languages/de_CH.json | 2 +- bl-plugins/version/languages/de_DE.json | 2 +- bl-plugins/version/languages/en.json | 2 +- bl-plugins/version/languages/es.json | 2 +- bl-plugins/version/languages/fr_FR.json | 2 +- bl-plugins/version/languages/it.json | 2 +- bl-plugins/version/languages/ja_JP.json | 2 +- bl-plugins/version/languages/nl_NL.json | 2 +- bl-plugins/version/languages/ru_RU.json | 4 +- bl-plugins/version/languages/tr_TR.json | 2 +- bl-plugins/version/metadata.json | 4 +- bl-plugins/version/plugin.php | 4 +- bl-plugins/visits-stats/metadata.json | 4 +- bl-plugins/visits-stats/plugin.php | 4 +- bl-themes/alternative/index.php | 16 ++++---- bl-themes/alternative/init.php | 2 +- bl-themes/alternative/metadata.json | 4 +- bl-themes/alternative/php/footer.php | 2 +- bl-themes/alternative/php/home.php | 4 +- bl-themes/alternative/php/page.php | 4 +- bl-themes/blogx/index.php | 10 ++--- bl-themes/blogx/metadata.json | 4 +- bl-themes/blogx/php/footer.php | 2 +- bl-themes/blogx/php/head.php | 6 +-- bl-themes/blogx/php/home.php | 4 +- bl-themes/blogx/php/page.php | 4 +- bl-themes/popeye/index.php | 16 ++++---- bl-themes/popeye/init.php | 2 +- bl-themes/popeye/metadata.json | 4 +- bl-themes/popeye/php/footer.php | 2 +- bl-themes/popeye/php/page.php | 4 +- index.php | 14 +++---- install.php | 41 +++++++++---------- 222 files changed, 788 insertions(+), 789 deletions(-) diff --git a/.github/issue_template.md b/.github/issue_template.md index f9e5bc78..949e1b5d 100644 --- a/.github/issue_template.md +++ b/.github/issue_template.md @@ -6,7 +6,7 @@ Complete here. ### Steps to reproduce the problem Complete here. -### Bludit version +### Koblog version Complete here. ### PHP version diff --git a/bl-kernel/abstract/dbjson.class.php b/bl-kernel/abstract/dbjson.class.php index f44f3658..edf79f69 100644 --- a/bl-kernel/abstract/dbjson.class.php +++ b/bl-kernel/abstract/dbjson.class.php @@ -1,4 +1,4 @@ -firstLine) { - $data = "".PHP_EOL; + $data = "".PHP_EOL; } // Serialize database diff --git a/bl-kernel/abstract/dblist.class.php b/bl-kernel/abstract/dblist.class.php index 6b55cc18..ace97315 100644 --- a/bl-kernel/abstract/dblist.class.php +++ b/bl-kernel/abstract/dblist.class.php @@ -1,4 +1,4 @@ -domainPath() . 'css/' . $filename . '?version=' . BLUDIT_VERSION . '">' . PHP_EOL; + return '' . PHP_EOL; } public function includeJS($filename) { - return '' . PHP_EOL; + return '' . PHP_EOL; } // Returns absolute URL and path of the plugin directory @@ -203,11 +203,11 @@ class Plugin public function isCompatible() { - $bluditRoot = explode('.', BLUDIT_VERSION); + $koblogRoot = explode('.', KOBLOG_VERSION); $compatible = explode(',', $this->getMetadata('compatible')); foreach ($compatible as $version) { $root = explode('.', $version); - if ($root[0] == $bluditRoot[0] && $root[1] == $bluditRoot[1]) { + if ($root[0] == $koblogRoot[0] && $root[1] == $koblogRoot[1]) { return true; } } @@ -317,7 +317,7 @@ class Plugin } // Returns the parameters after the URI, FALSE if the URI doesn't match with the webhook - // Example: https://www.mybludit.com/api/foo/bar + // Example: https://www.mykoblog.website/api/foo/bar public function webhook($URI = false, $returnsAfterURI = false, $fixed = true) { global $url; diff --git a/bl-kernel/admin/controllers/about.php b/bl-kernel/admin/controllers/about.php index a27002e5..297115e5 100644 --- a/bl-kernel/admin/controllers/about.php +++ b/bl-kernel/admin/controllers/about.php @@ -1,4 +1,4 @@ -g('About') . ' - ' . $layout['title']; \ No newline at end of file diff --git a/bl-kernel/admin/controllers/api.php b/bl-kernel/admin/controllers/api.php index 5b20d7b7..7eb9310b 100644 --- a/bl-kernel/admin/controllers/api.php +++ b/bl-kernel/admin/controllers/api.php @@ -1,4 +1,4 @@ -currentBuild()==0) { - $site->set(array('currentBuild'=>BLUDIT_BUILD)); + $site->set(array('currentBuild'=>KOBLOG_BUILD)); } - // Check if Bludit need to be update - if ( ($site->currentBuild() < BLUDIT_BUILD) || isset($_GET['update']) ) { + // Check if Koblog need to be update + if ( ($site->currentBuild() < KOBLOG_BUILD) || isset($_GET['update']) ) { Log::set('UPDATE SYSTEM - Starting.'); - // Updates only for version less than Bludit v3.0 rc-3 + // Updates only for version less than Koblog v3.0 rc-3 if ($site->currentBuild()<='20180910') { @mkdir(PATH_WORKSPACES, DIR_PERMISSIONS, true); $plugins = array('simple-stats', 'pluginRSS', 'pluginSitemap', 'pluginTimeMachineX', 'pluginBackup'); @@ -29,20 +29,20 @@ function updateBludit() { } } - // Updates only for version less than Bludit v3.1 + // Updates only for version less than Koblog v3.1 if ($site->currentBuild()<='20180921') { @mkdir(PATH_UPLOADS_PAGES, DIR_PERMISSIONS, true); $site->set(array('imageRelativeToAbsolute'=>true, 'imageRestrict'=>false)); } // Set the current build number - $site->set(array('currentBuild'=>BLUDIT_BUILD)); + $site->set(array('currentBuild'=>KOBLOG_BUILD)); Log::set('UPDATE SYSTEM - Finished.'); // Add to syslog $syslog->add(array( 'dictionaryKey'=>'system-updated', - 'notes'=>'Bludit v'.BLUDIT_VERSION + 'notes'=>'Koblog v'.KOBLOG_VERSION )); } } @@ -59,8 +59,8 @@ function updateBludit() { // Main after POST // ============================================================================ -// Try update Bludit -updateBludit(); +// Try update Koblog +updateKoblog(); // Title of the page $layout['title'] .= ' - '.$L->g('Dashboard'); \ No newline at end of file diff --git a/bl-kernel/admin/controllers/developers.php b/bl-kernel/admin/controllers/developers.php index 37b37c9c..f67f584a 100644 --- a/bl-kernel/admin/controllers/developers.php +++ b/bl-kernel/admin/controllers/developers.php @@ -1,4 +1,4 @@ - -
+
@@ -37,21 +37,21 @@ $numberOfPages = count($listOfFilesByPage);
-
+
- +
p('There are no images'); ?>
- +
@@ -76,7 +76,7 @@ function closeMediaManager() { // Remove all files from the table function cleanTable() { - $('#jsbluditMediaTable').empty(); + $('#jskoblogMediaTable').empty(); } function showMediaAlert(message) { @@ -115,7 +115,7 @@ function displayFiles(files, numberOfPages = ) { '<\/div>'+ '<\/td>'+ '<\/tr>'; - $('#jsbluditMediaTable').append(tableRow); + $('#jskoblogMediaTable').append(tableRow); }); mediaPagination = ''; - $('#jsbluditMediaTablePagination').html(mediaPagination); + $('#jskoblogMediaTablePagination').html(mediaPagination); } if (files.length == 0) { - $('#jsbluditMediaTable').html("

p('There are no images for the page') : $L->p('There are no images')) ?>

"); - $('#jsbluditMediaTablePagination').html(''); + $('#jskoblogMediaTable').html("

p('There are no images for the page') : $L->p('There are no images')) ?>

"); + $('#jskoblogMediaTablePagination').html(''); } } @@ -195,11 +195,11 @@ function uploadImages() { }; // Clean progress bar - $("#jsbluditProgressBar").removeClass().addClass("progress-bar bg-primary"); - $("#jsbluditProgressBar").width("0"); + $("#jskoblogProgressBar").removeClass().addClass("progress-bar bg-primary"); + $("#jskoblogProgressBar").width("0"); // Data to send via AJAX - var formData = new FormData($("#jsbluditFormUpload")[0]); + var formData = new FormData($("#jskoblogFormUpload")[0]); formData.append("uuid", ""); formData.append("tokenCSRF", tokenCSRF); @@ -216,7 +216,7 @@ function uploadImages() { xhr.upload.addEventListener("progress", function(e) { if (e.lengthComputable) { var percentComplete = (e.loaded / e.total)*100; - $("#jsbluditProgressBar").width(percentComplete+"%"); + $("#jskoblogProgressBar").width(percentComplete+"%"); } }, false); } @@ -224,11 +224,11 @@ function uploadImages() { } }).done(function(data) { if (data.status==0) { - $("#jsbluditProgressBar").removeClass("bg-primary").addClass("bg-success"); + $("#jskoblogProgressBar").removeClass("bg-primary").addClass("bg-success"); // Get the files for the first page, this include the files uploaded getFiles(1); } else { - $("#jsbluditProgressBar").removeClass("bg-primary").addClass("bg-danger"); + $("#jskoblogProgressBar").removeClass("bg-primary").addClass("bg-danger"); showMediaAlert(data.message); } }); diff --git a/bl-kernel/admin/themes/booty/html/navbar.php b/bl-kernel/admin/themes/booty/html/navbar.php index de6c9dde..0c5361e4 100644 --- a/bl-kernel/admin/themes/booty/html/navbar.php +++ b/bl-kernel/admin/themes/booty/html/navbar.php @@ -1,7 +1,7 @@