From ceba1000e37c91fcf4362626339744e063055a5a Mon Sep 17 00:00:00 2001 From: saintly2k Date: Tue, 30 May 2023 00:12:25 +0200 Subject: [PATCH] Moved plugins location --- library/plugins/disabled/getRel.php | 14 ----------- library/plugins/disabled/keep.txt | 1 - library/plugins/enabled/daisyTheme.php | 17 ------------- library/plugins/enabled/logoImage.php | 20 --------------- library/plugins/enabled/readChapters.php | 25 ------------------ library/plugins/enabled/simpleAlert.php | 32 ------------------------ library/plugins/enabled/started.php | 4 --- library/plugins/enabled/userLangs.php | 26 ------------------- 8 files changed, 139 deletions(-) delete mode 100644 library/plugins/disabled/getRel.php delete mode 100644 library/plugins/disabled/keep.txt delete mode 100644 library/plugins/enabled/daisyTheme.php delete mode 100644 library/plugins/enabled/logoImage.php delete mode 100644 library/plugins/enabled/readChapters.php delete mode 100644 library/plugins/enabled/simpleAlert.php delete mode 100644 library/plugins/enabled/started.php delete mode 100644 library/plugins/enabled/userLangs.php diff --git a/library/plugins/disabled/getRel.php b/library/plugins/disabled/getRel.php deleted file mode 100644 index 3c75bec..0000000 --- a/library/plugins/disabled/getRel.php +++ /dev/null @@ -1,14 +0,0 @@ -assign("rel", clean($_GET["rel"])); diff --git a/library/plugins/disabled/keep.txt b/library/plugins/disabled/keep.txt deleted file mode 100644 index ec3e524..0000000 --- a/library/plugins/disabled/keep.txt +++ /dev/null @@ -1 +0,0 @@ -Keep this, GitHub! \ No newline at end of file diff --git a/library/plugins/enabled/daisyTheme.php b/library/plugins/enabled/daisyTheme.php deleted file mode 100644 index 84e8c58..0000000 --- a/library/plugins/enabled/daisyTheme.php +++ /dev/null @@ -1,17 +0,0 @@ -assign("daisytheme", $daisytheme); - unset($daisytheme); -} diff --git a/library/plugins/enabled/logoImage.php b/library/plugins/enabled/logoImage.php deleted file mode 100644 index ab0b085..0000000 --- a/library/plugins/enabled/logoImage.php +++ /dev/null @@ -1,20 +0,0 @@ -assign("logoImage", $logoImage); - unset($logoImage); - unset($usertheme); -} diff --git a/library/plugins/enabled/readChapters.php b/library/plugins/enabled/readChapters.php deleted file mode 100644 index 320934c..0000000 --- a/library/plugins/enabled/readChapters.php +++ /dev/null @@ -1,25 +0,0 @@ -findBy(["user", "==", $user["id"]]); - $_readChapters = array(); - foreach ($readChapters as $key => $ch) { - array_push($_readChapters, $ch["chapter"]); - } - if (isset($smarty)) - $smarty->assign("readChapters", $_readChapters); - - unset($ch); - unset($_readChapters); - unset($readChapters); -} diff --git a/library/plugins/enabled/simpleAlert.php b/library/plugins/enabled/simpleAlert.php deleted file mode 100644 index fbc04a5..0000000 --- a/library/plugins/enabled/simpleAlert.php +++ /dev/null @@ -1,32 +0,0 @@ - "info", // "", "info", "success", "warning", "error" - "content" => "Welcome to {$config["title"]}! To use all the functions such as commenting or Bookmarking, please create a free acount!", - "timestamp" => now() -); -// Database Insert -$db["alerts"]->insert($data); -*/ -$topAlert = $db["alerts"]->findAll(["id" => "DESC"], 1); -if (!empty($topAlert)) $topAlert = $topAlert[0]; -$readAlert = !empty($topAlert) ? ($logged ? (!empty($db["alertReads"]->findOneBy([["user", "=", $user["id"]], "AND", ["alert", "=", $topAlert["id"]]])) ? true : false) : false) : false; - -if (isset($smarty)) { - $smarty->assign("topAlert", $topAlert); - $smarty->assign("readAlert", $readAlert); - - unset($topAlert); - unset($readAlert); -} diff --git a/library/plugins/enabled/started.php b/library/plugins/enabled/started.php deleted file mode 100644 index 06164e6..0000000 --- a/library/plugins/enabled/started.php +++ /dev/null @@ -1,4 +0,0 @@ -assign("userlangs", $_userlangs); - unset($lang); - // unset($userlangs); - unset($_userlangs); -}