From e2fb0d6d89f8f97f30b3593fbf7b8a9024953889 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Sun, 25 Sep 2022 18:46:44 +0200 Subject: [PATCH] #3 - Fatto, da testare --- app/os/webserver-entrypoint | 3 + app/private/lib/BannerHelper.php | 4 +- app/private/lib/gui/GUIHandler.php | 12 ++-- app/private/lib/gui/GUIHandlerMobile.php | 9 +-- app/public/admin/editBanner.php | 14 ++++- app/public/admin/index.php | 2 + app/public/admin/newBanner.php | 75 +----------------------- app/public/mobile/archivio.php | 5 +- app/public/mobile/articolo.php | 5 +- app/public/mobile/categorySummary.php | 7 ++- app/public/mobile/index.php | 5 +- app/public/mobile/searchResults.php | 5 +- app/public/style/public.css | 13 ++-- cicd/environments/common/webserver.env | 1 + 14 files changed, 54 insertions(+), 106 deletions(-) diff --git a/app/os/webserver-entrypoint b/app/os/webserver-entrypoint index c5102ca..4c04ede 100644 --- a/app/os/webserver-entrypoint +++ b/app/os/webserver-entrypoint @@ -12,5 +12,8 @@ mkdir -p "/tmp/${DDNINJA_AUTHOR}/${DDNINJA_BUILDNAME}" chown -R www-data:www-data "/tmp/${DDNINJA_AUTHOR}/${DDNINJA_BUILDNAME}" chown -R www-data:www-data /var/log/${DDNINJA_AUTHOR} +mkdir -p "/home/${DDNINJA_AUTHOR}/storage/${DDNINJA_BUILDNAME}/media/" +chown -R www-data:www-data "/home/${DDNINJA_AUTHOR}/storage/${DDNINJA_BUILDNAME}/media/" + asdphp-entrypoint & wait exit $? diff --git a/app/private/lib/BannerHelper.php b/app/private/lib/BannerHelper.php index 09bb54f..722de25 100644 --- a/app/private/lib/BannerHelper.php +++ b/app/private/lib/BannerHelper.php @@ -19,9 +19,7 @@ class BannerHelper { } public static function printBanner($position = BannerModel::POSITION_HEAD){ - $category = BannerModel::GENERAL_CATEGORY; - - $cur = self::getPlaceholderId(); + $cur = self::getPlaceholderId(); if (!array_key_exists($position, self::$positions)) { self::$positions[$position] = []; diff --git a/app/private/lib/gui/GUIHandler.php b/app/private/lib/gui/GUIHandler.php index 17c453f..bffa836 100644 --- a/app/private/lib/gui/GUIHandler.php +++ b/app/private/lib/gui/GUIHandler.php @@ -19,9 +19,7 @@ class GUIHandler { private static $onLoadEvents = array(); public static function generateHtmlHeaders(array $data = array(), $admin = false){ - if ($admin) { - ASDSessionHandler::getSessionId(); - } + ASDSessionHandler::getSessionId(); $conf = GlobalVariables::get("config"); $title = $conf->info->projectName; @@ -222,7 +220,10 @@ class GUIHandler { -
+
+ +