From 1e8584899f1841ce4049a8faf3ad82c42dd308a9 Mon Sep 17 00:00:00 2001
From: "dorian.hodin"
Date: Mon, 3 Apr 2023 17:17:37 +0200
Subject: [PATCH] Change default path, add / at the beginning of the url,
change env var
---
.drone.yml | 2 +-
.idea/inspectionProfiles/Project_Default.xml | 7 +++++--
Source/Config/config.php | 10 ----------
Source/Views/HTML/admin.php | 6 +++---
Source/Views/HTML/adminLogin.php | 4 ++--
Source/Views/HTML/categories.php | 2 +-
Source/Views/HTML/continue.php | 8 ++++----
Source/Views/HTML/error.php | 4 ++--
Source/Views/HTML/form.php | 8 ++++----
Source/Views/HTML/possibleResponsesForm.php | 8 ++++----
Source/Views/HTML/questions.php | 2 +-
Source/Views/HTML/responses.php | 2 +-
Source/Views/HTML/thanks.php | 8 ++++----
13 files changed, 32 insertions(+), 39 deletions(-)
diff --git a/.drone.yml b/.drone.yml
index 1309584..7dbfe10 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -29,7 +29,7 @@ steps:
COMMAND: create
OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_CONTAINER_NAME:
- from_secret: CONTAINER_NAME
+ ${{ secrets.TEAM_NAME }}_${{ secrets.CONTAINER_NAME }}
ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal
depends_on: [ formulaire ]
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
index 5932565..ccc3727 100644
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -3,13 +3,13 @@
-
+
diff --git a/Source/Config/config.php b/Source/Config/config.php
index 346c678..ef51a97 100644
--- a/Source/Config/config.php
+++ b/Source/Config/config.php
@@ -13,18 +13,8 @@ $views['responses'] = 'Views/HTML/responses.php';
$views['thanks'] = 'Views/HTML/thanks.php';
$views['error'] = 'Views/HTML/error.php';
-/*
-if (empty($_ENV['CONTAINER_NAME'])){
- $_SERVER['BASE_URI'] = '';
-}else{
- $_SERVER['BASE_URI'] = $_ENV['CONTAINER_NAME'];
-}
-*/
$_SERVER['BASE_URI'] = '';
-
-$url = $_SERVER['PHP_SELF'];
-
$controller['Candidate'] = 'ControllerCandidate';
$controller['Admin'] = 'ControllerAdmin';
diff --git a/Source/Views/HTML/admin.php b/Source/Views/HTML/admin.php
index 9db6ea2..840d750 100644
--- a/Source/Views/HTML/admin.php
+++ b/Source/Views/HTML/admin.php
@@ -13,7 +13,7 @@
" />
- " />
+ " />
@@ -42,7 +42,7 @@
@@ -105,7 +105,7 @@
-
+
-
" class="logo" alt="logo">
+
" class="logo" alt="logo">
diff --git a/Source/Views/HTML/categories.php b/Source/Views/HTML/categories.php
index c78e952..02a9c6c 100644
--- a/Source/Views/HTML/categories.php
+++ b/Source/Views/HTML/categories.php
@@ -5,7 +5,7 @@
global $googleApis, $googleStatic, $poppins, $icon, $logoUCA;
?>
- " />
+ " />
diff --git a/Source/Views/HTML/continue.php b/Source/Views/HTML/continue.php
index 0d0055c..89f3e02 100644
--- a/Source/Views/HTML/continue.php
+++ b/Source/Views/HTML/continue.php
@@ -12,8 +12,8 @@
- " rel="stylesheet" />
- " rel="stylesheet" />
+ " rel="stylesheet" />
+ " rel="stylesheet" />
@@ -41,7 +41,7 @@
@@ -68,7 +68,7 @@
-
+
diff --git a/Source/Views/HTML/form.php b/Source/Views/HTML/form.php
index 9dedf5a..4821d42 100644
--- a/Source/Views/HTML/form.php
+++ b/Source/Views/HTML/form.php
@@ -6,8 +6,8 @@
global $jQueryMin, $bundle4, $bundle5;
?>
- " />
- " />
+ " />
+ " />
@@ -40,8 +40,8 @@
-
-
+
+
diff --git a/Source/Views/HTML/possibleResponsesForm.php b/Source/Views/HTML/possibleResponsesForm.php
index 8ba8e25..d0387f5 100644
--- a/Source/Views/HTML/possibleResponsesForm.php
+++ b/Source/Views/HTML/possibleResponsesForm.php
@@ -12,8 +12,8 @@
- " rel="stylesheet" />
- " rel="stylesheet" />
+ " rel="stylesheet" />
+ " rel="stylesheet" />
@@ -42,7 +42,7 @@
@@ -108,7 +108,7 @@
-
+
diff --git a/Source/Views/HTML/adminLogin.php b/Source/Views/HTML/adminLogin.php
index f160308..783a4c8 100644
--- a/Source/Views/HTML/adminLogin.php
+++ b/Source/Views/HTML/adminLogin.php
@@ -7,14 +7,14 @@
- ">
+ ">
diff --git a/Source/Views/HTML/error.php b/Source/Views/HTML/error.php
index 7f4ebe6..208f288 100644
--- a/Source/Views/HTML/error.php
+++ b/Source/Views/HTML/error.php
@@ -2,8 +2,8 @@
- ">
- ">
+ ">
+ ">
Error Page
diff --git a/Source/Views/HTML/questions.php b/Source/Views/HTML/questions.php
index 9c2a6b0..45ee4f2 100644
--- a/Source/Views/HTML/questions.php
+++ b/Source/Views/HTML/questions.php
@@ -5,7 +5,7 @@
global $googleApis, $googleStatic, $poppins, $icon, $logoUCA;
?>
- " />
+ " />
diff --git a/Source/Views/HTML/responses.php b/Source/Views/HTML/responses.php
index 3ecd24e..ccd3b73 100644
--- a/Source/Views/HTML/responses.php
+++ b/Source/Views/HTML/responses.php
@@ -5,7 +5,7 @@
global $googleApis, $googleStatic, $poppins, $icon, $logoUCA;
?>
- " />
+ " />
diff --git a/Source/Views/HTML/thanks.php b/Source/Views/HTML/thanks.php
index 9469b6e..23d2013 100644
--- a/Source/Views/HTML/thanks.php
+++ b/Source/Views/HTML/thanks.php
@@ -6,8 +6,8 @@
global $jQueryMin, $bundle4, $bundle5;
?>
- " />
- " />
+ " />
+ " />
@@ -44,8 +44,8 @@
-
-
+
+