Change default path, add / at the beginning of the url, change env var
continuous-integration/drone/push Build encountered an error Details

master
dorian.hodin 2 years ago
parent bf44841669
commit 1e8584899f

@ -29,7 +29,7 @@ steps:
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_CONTAINER_NAME: CODEFIRST_CLIENTDRONE_ENV_CONTAINER_NAME:
from_secret: CONTAINER_NAME ${{ secrets.TEAM_NAME }}_${{ secrets.CONTAINER_NAME }}
ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal
depends_on: [ formulaire ] depends_on: [ formulaire ]

@ -3,13 +3,13 @@
<option name="myName" value="Project Default" /> <option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true"> <inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages> <Languages>
<language minSize="46" name="HTML" /> <language minSize="68" name="HTML" />
</Languages> </Languages>
</inspection_tool> </inspection_tool>
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true"> <inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
<option name="myValues"> <option name="myValues">
<value> <value>
<list size="7"> <list size="10">
<item index="0" class="java.lang.String" itemvalue="nobr" /> <item index="0" class="java.lang.String" itemvalue="nobr" />
<item index="1" class="java.lang.String" itemvalue="noembed" /> <item index="1" class="java.lang.String" itemvalue="noembed" />
<item index="2" class="java.lang.String" itemvalue="comment" /> <item index="2" class="java.lang.String" itemvalue="comment" />
@ -17,6 +17,9 @@
<item index="4" class="java.lang.String" itemvalue="embed" /> <item index="4" class="java.lang.String" itemvalue="embed" />
<item index="5" class="java.lang.String" itemvalue="script" /> <item index="5" class="java.lang.String" itemvalue="script" />
<item index="6" class="java.lang.String" itemvalue="li" /> <item index="6" class="java.lang.String" itemvalue="li" />
<item index="7" class="java.lang.String" itemvalue="form" />
<item index="8" class="java.lang.String" itemvalue="p" />
<item index="9" class="java.lang.String" itemvalue="option" />
</list> </list>
</value> </value>
</option> </option>

@ -13,18 +13,8 @@ $views['responses'] = 'Views/HTML/responses.php';
$views['thanks'] = 'Views/HTML/thanks.php'; $views['thanks'] = 'Views/HTML/thanks.php';
$views['error'] = 'Views/HTML/error.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'] = ''; $_SERVER['BASE_URI'] = '';
$url = $_SERVER['PHP_SELF'];
$controller['Candidate'] = 'ControllerCandidate'; $controller['Candidate'] = 'ControllerCandidate';
$controller['Admin'] = 'ControllerAdmin'; $controller['Admin'] = 'ControllerAdmin';

@ -13,7 +13,7 @@
<link href="<?php echo $bootstrapMin; ?>" rel="stylesheet" /> <link href="<?php echo $bootstrapMin; ?>" rel="stylesheet" />
<link href="<?php echo $awesomeFont; ?>" rel="stylesheet" /> <link href="<?php echo $awesomeFont; ?>" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/styles.css"?>" /> <link rel="stylesheet" type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/styles.css"?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/stylesForm.css"?>" /> <link rel="stylesheet" type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/stylesForm.css"?>" />
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">
<link rel="shortcut icon" href="<?php echo $icon; ?>" type="image/x-icon"> <link rel="shortcut icon" href="<?php echo $icon; ?>" type="image/x-icon">
<link rel="icon" href="<?php echo $icon; ?>" type="image/x-icon"> <link rel="icon" href="<?php echo $icon; ?>" type="image/x-icon">
@ -42,7 +42,7 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $_ENV['CONTAINER_NAME']."index.php?action=GoToAddTestimony"?>">Témoignages</a> <a class="nav-link" href="<?php echo $_ENV['CONTAINER_NAME']."/index.php?action=GoToAddTestimony"?>">Témoignages</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -105,7 +105,7 @@
<script src="<?php echo $jQueryMin; ?>"></script> <script src="<?php echo $jQueryMin; ?>"></script>
<script src="<?php echo $bundle4; ?>"></script> <script src="<?php echo $bundle4; ?>"></script>
<script src="<?php echo $bundle5; ?>"></script> <script src="<?php echo $bundle5; ?>"></script>
<script src="<?php echo $_ENV['CONTAINER_NAME']."Views/js/scripts.js"?>"></script> <script src="<?php echo $_ENV['CONTAINER_NAME']."/Views/JS/scripts.js"?>"></script>
</body> </body>

@ -7,14 +7,14 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.grid-min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.grid-min.css">
<link rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views\CSS\adminLogin.css"?>"> <link rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/adminLogin.css"?>">
<link rel="preconnect" href="<?php echo $googleApis; ?>"> <link rel="preconnect" href="<?php echo $googleApis; ?>">
<link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin> <link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Barlow&display=swap" rel="stylesheet">
<title></title> <title></title>
</head> </head>
<body class="acolorba d-flex flex-column align-items-center"> <body class="acolorba d-flex flex-column align-items-center">
<img src="<?php echo $_ENV['CONTAINER_NAME']."Views\IMAGES\logoUca.png"?>" class="logo" alt="logo"> <img src="<?php echo $_ENV['CONTAINER_NAME']."/Views/IMAGES/logoUca.png"?>" class="logo" alt="logo">
<article class="card"> <article class="card">
<main id="main-content"> <main id="main-content">
<section id="content"> <section id="content">

@ -5,7 +5,7 @@
global $googleApis, $googleStatic, $poppins, $icon, $logoUCA; global $googleApis, $googleStatic, $poppins, $icon, $logoUCA;
?> ?>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/base.css"?>" /> <link rel="stylesheet" type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/base.css"?>" />
<link rel="preconnect" href="<?php echo $googleApis; ?>"> <link rel="preconnect" href="<?php echo $googleApis; ?>">
<link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin> <link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin>
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">

@ -12,8 +12,8 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" /> <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" /> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."Views/css/styles.css"?>" rel="stylesheet" /> <link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/styles.css"?>" rel="stylesheet" />
<link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."Views/css/stylesForm.css"?>" rel="stylesheet" /> <link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/stylesForm.css"?>" rel="stylesheet" />
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">
<link rel="shortcut icon" href="<?php echo $icon; ?>" type="image/x-icon"> <link rel="shortcut icon" href="<?php echo $icon; ?>" type="image/x-icon">
<link rel="icon" href="<?php echo $icon; ?>" type="image/x-icon"> <link rel="icon" href="<?php echo $icon; ?>" type="image/x-icon">
@ -41,7 +41,7 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $_ENV['CONTAINER_NAME']."index.php?action=GoToAddTestimony"?>">Témoignages</a> <a class="nav-link" href="<?php echo $_ENV['CONTAINER_NAME']."/index.php?action=GoToAddTestimony"?>">Témoignages</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -68,7 +68,7 @@
<script src="<?php echo $jQueryMin; ?>"></script> <script src="<?php echo $jQueryMin; ?>"></script>
<script src="<?php echo $bundle4; ?>"></script> <script src="<?php echo $bundle4; ?>"></script>
<script src="<?php echo $bundle5; ?>"></script> <script src="<?php echo $bundle5; ?>"></script>
<script src="<?php echo $_ENV['CONTAINER_NAME']."Views/js/scripts.js"?>"></script> <script src="<?php echo $_ENV['CONTAINER_NAME']."Views/JS/scripts.js"?>"></script>
</body> </body>

@ -2,8 +2,8 @@
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/common.css"?>"> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/common.css"?>">
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."node_modules/bootstrap/dist/css/bootstrap.min.css"?>"> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/node_modules/bootstrap/dist/css/bootstrap.min.css"?>">
<title>Error Page</title> <title>Error Page</title>
<body class="d-flex flex-column align-items-center"> <body class="d-flex flex-column align-items-center">
<h1> <h1>

@ -6,8 +6,8 @@
global $jQueryMin, $bundle4, $bundle5; global $jQueryMin, $bundle4, $bundle5;
?> ?>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/styles.css"?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/styles.css"?>" />
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/stylesForm.css"?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/stylesForm.css"?>" />
<link rel="preconnect" href="<?php echo $googleApis; ?>"> <link rel="preconnect" href="<?php echo $googleApis; ?>">
<link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin> <link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin>
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">
@ -40,8 +40,8 @@
<script src="<?php echo $jQueryMin; ?>"></script> <script src="<?php echo $jQueryMin; ?>"></script>
<script src="<?php echo $bundle4; ?>"></script> <script src="<?php echo $bundle4; ?>"></script>
<script src="<?php echo $bundle5; ?>"></script> <script src="<?php echo $bundle5; ?>"></script>
<script type="text/javascript" src="<?php echo $_ENV['CONTAINER_NAME']."Views/JS/scripts.js"?>"></script> <script type="text/javascript" src="<?php echo $_ENV['CONTAINER_NAME']."/Views/JS/scripts.js"?>"></script>
<script type="text/javascript" src="<?php echo $_ENV['CONTAINER_NAME']."Views/JS/getData-Ids.js"?>"></script> <script type="text/javascript" src="<?php echo $_ENV['CONTAINER_NAME']."/Views/JS/getData-Ids.js"?>"></script>
</body> </body>

@ -12,8 +12,8 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" /> <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" /> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."Views/css/styles.css"?>" rel="stylesheet" /> <link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/styles.css"?>" rel="stylesheet" />
<link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."Views/css/stylesForm.css"?>" rel="stylesheet" /> <link type="text/css" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/stylesForm.css"?>" rel="stylesheet" />
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">
<link rel="shortcut icon" href="<?php echo $icon; ?>" type="image/x-icon"> <link rel="shortcut icon" href="<?php echo $icon; ?>" type="image/x-icon">
<link rel="icon" href="<?php echo $icon; ?>" type="image/x-icon"> <link rel="icon" href="<?php echo $icon; ?>" type="image/x-icon">
@ -42,7 +42,7 @@
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> <ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo $_ENV['CONTAINER_NAME']."index.php?action=GoToAddTestimony"?>">Témoignages</a> <a class="nav-link" href="<?php echo $_ENV['CONTAINER_NAME']."/index.php?action=GoToAddTestimony"?>">Témoignages</a>
</li> </li>
</ul> </ul>
</div> </div>
@ -108,7 +108,7 @@
<script src="<?php echo $jQueryMin; ?>"></script> <script src="<?php echo $jQueryMin; ?>"></script>
<script src="<?php echo $bundle4; ?>"></script> <script src="<?php echo $bundle4; ?>"></script>
<script src="<?php echo $bundle5; ?>"></script> <script src="<?php echo $bundle5; ?>"></script>
<script src="<?php echo $_ENV['CONTAINER_NAME']."Views/js/scripts.js"?>"></script> <script src="<?php echo $_ENV['CONTAINER_NAME']."/Views/JS/scripts.js"?>"></script>
</body> </body>

@ -5,7 +5,7 @@
global $googleApis, $googleStatic, $poppins, $icon, $logoUCA; global $googleApis, $googleStatic, $poppins, $icon, $logoUCA;
?> ?>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/base.css"?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/base.css"?>" />
<link rel="preconnect" href="<?php echo $googleApis; ?>"> <link rel="preconnect" href="<?php echo $googleApis; ?>">
<link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin> <link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin>
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">

@ -5,7 +5,7 @@
global $googleApis, $googleStatic, $poppins, $icon, $logoUCA; global $googleApis, $googleStatic, $poppins, $icon, $logoUCA;
?> ?>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/base.css"?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/base.css"?>" />
<link rel="preconnect" href="<?php echo $googleApis; ?>"> <link rel="preconnect" href="<?php echo $googleApis; ?>">
<link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin> <link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin>
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">

@ -6,8 +6,8 @@
global $jQueryMin, $bundle4, $bundle5; global $jQueryMin, $bundle4, $bundle5;
?> ?>
<meta charset="UTF-8"> <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/styles.css"?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/styles.css"?>" />
<link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."Views/CSS/stylesForm.css"?>" /> <link type="text/css" rel="stylesheet" href="<?php echo $_ENV['CONTAINER_NAME']."/Views/CSS/stylesForm.css"?>" />
<link rel="preconnect" href="<?php echo $googleApis; ?>"> <link rel="preconnect" href="<?php echo $googleApis; ?>">
<link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin> <link rel="preconnect" href="<?php echo $googleStatic; ?>" crossorigin>
<link href="<?php echo $poppins; ?>" rel="stylesheet"> <link href="<?php echo $poppins; ?>" rel="stylesheet">
@ -44,8 +44,8 @@
<script src="<?php echo $jQueryMin; ?>"></script> <script src="<?php echo $jQueryMin; ?>"></script>
<script src="<?php echo $bundle4; ?>"></script> <script src="<?php echo $bundle4; ?>"></script>
<script src="<?php echo $bundle5; ?>"></script> <script src="<?php echo $bundle5; ?>"></script>
<script src="<?php echo $_ENV['CONTAINER_NAME']."Views/JS/scripts.js"?>"></script> <script src="<?php echo $_ENV['CONTAINER_NAME']."/Views/JS/scripts.js"?>"></script>
<script src="<?php echo $_ENV['CONTAINER_NAME']."Views/JS/getData-Ids.js"?>"></script> <script src="<?php echo $_ENV['CONTAINER_NAME']."/Views/JS/getData-Ids.js"?>"></script>
</body> </body>

Loading…
Cancel
Save