Explorar o código

Remove public folder and adapt links

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
88825711e6

+ 3 - 3
web/public/contact.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Contact";
-    include("../include/head.php");
+    include("include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../include/navbar.php")
+        include("include/navbar.php")
     ?>
 
     <!-- Content -->
@@ -34,7 +34,7 @@
 
     <!-- Footer -->
     <?php
-        include("../include/footer.php")
+        include("include/footer.php")
     ?>
 
     <!-- Scripts -->

+ 4 - 4
web/public/credit.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Credit";
-    include("../include/head.php");
+    include("include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../include/navbar.php")
+        include("include/navbar.php")
     ?>
 
     <!-- Content -->
@@ -52,13 +52,13 @@
 
     <!-- Footer -->
     <?php
-        include("../include/footer.php");
+        include("include/footer.php");
     ?>
 
     <!-- Scripts -->
     <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
             integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
             crossorigin="anonymous"></script>
-    <script src="../include/js/bootstrap.js"></script>
+    <script src="include/js/bootstrap.js"></script>
 </body>
 </html>

+ 6 - 6
web/public/cv.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "CV";
-    include("../include/head.php");
+    include("include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../include/navbar.php")
+        include("include/navbar.php")
     ?>
 
     <!-- Content -->
@@ -26,10 +26,10 @@
                 <div class="col-lg-12 col-xl-6 lead"><strong>Étudiant</strong> alternant ingénieur généraliste à l'École Centrale</div>
                 <div class="col-lg-12 col-xl-6 lead"><strong>Apprenti</strong> dans l'équipe STB Integration à Viaccess-Orca</div>
                 <div class="col-lg-12 col-xl-6">
-                    <img src="../include/images/logoCN.png" class="mx-auto" alt="Logo Centrale Nantes">
+                    <img src="include/images/logoCN.png" class="mx-auto" alt="Logo Centrale Nantes">
                 </div>
                 <div class="col-lg-12 col-xl-6">
-                    <img src="../include/images/logoVO.png" class="mx-auto" style="height:100%" alt="Logo Viaccess Orca">
+                    <img src="include/images/logoVO.png" class="mx-auto" style="height:100%" alt="Logo Viaccess Orca">
                 </div>
             </div>
         </div>
@@ -328,13 +328,13 @@
 
     <!-- Footer -->
     <?php
-        include("../include/footer.php")
+        include("include/footer.php")
     ?>
 
     <!-- Scripts -->
     <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
             integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
             crossorigin="anonymous"></script>
-    <script src="../include/js/bootstrap.js"></script>
+    <script src="include/js/bootstrap.js"></script>
 </body>
 </html>

web/public/error404.php → web/error404.php


+ 1 - 1
web/include/footer.php

@@ -7,7 +7,7 @@
             Mise en ligne le
             <?php include("generated/date.txt"); ?>
             -
-            <a href="/public/credit.php">
+            <a href="/credit.php">
             Credits
             </a>
         </span>

+ 10 - 10
web/include/navbar.php

@@ -1,6 +1,6 @@
 <!-- Navbar -->
 <nav class="navbar navbar-expand-md navbar-dark bg-success fixed-top">
-    <a class="navbar-brand" href="/public/index.php">Jovian Hersemeule</a>
+    <a class="navbar-brand" href="/index.php">Jovian Hersemeule</a>
     <img class="rounded-circle jovian-toggler" type="button" data-toggle="collapse" data-target="#joviaNav"
          aria-controls="joviaNav"
          aria-expanded="false" aria-label="Dérouler le menu" src="https://img.icons8.com/color/48/000000/menu-2.png"
@@ -8,49 +8,49 @@
     <div class="collapse navbar-collapse" id="joviaNav">
         <ul class="navbar-nav mr-auto">
             <li class="nav-item <?php if ($title == "Accueil") echo "active"; ?>">
-                <a class="nav-link" href="/public/index.php">
+                <a class="nav-link" href="/index.php">
                     <img src="https://img.icons8.com/color/48/000000/city.png" alt="|">
                     Accueil
                 </a>
             </li>
             <li class="nav-item <?php if ($title == "CV") echo "active"; ?>">
-                <a class="nav-link" href="/public/cv.php">
+                <a class="nav-link" href="/cv.php">
                     <img src="https://img.icons8.com/color/48/000000/parse-from-clipboard.png" alt="|">
                     CV
                 </a>
             </li>
             <li class="nav-item dropdown
             <?php if (substr($_SERVER["SCRIPT_NAME"], 1, 7) == "projets") echo "active"; ?>">
-                <a class="nav-link dropdown-toggle" href="/public/projets.php" id="dropdown01" data-toggle="dropdown"
+                <a class="nav-link dropdown-toggle" href="/projets.php" id="dropdown01" data-toggle="dropdown"
                    aria-haspopup="true" aria-expanded="false">
                     <img src="https://img.icons8.com/color/48/000000/code.png" alt="|">
                     Projets
                 </a>
                 <div class="dropdown-menu" aria-labelledby="dropdown01">
-                    <a class="dropdown-item <?php if ($title == "Projets") echo "active"; ?>" href="/public/projets.php">
+                    <a class="dropdown-item <?php if ($title == "Projets") echo "active"; ?>" href="/projets.php">
                         Liste des projets
                     </a>
                     <div class="dropdown-divider"></div>
                     <a class="dropdown-item <?php if ($title == "Site") echo "active"; ?>"
-                       href="/public/projets/pro_static_site.php">
+                       href="/projets/pro_static_site.php">
                         Jovian Website
                     </a>
                     <a class="dropdown-item <?php if ($title == "ASCII") echo "active"; ?>"
-                       href="/public/projets/pro_ascii_space.php">
+                       href="/projets/pro_ascii_space.php">
                         ASCII Space Destroyer
                     </a>
                     <a class="dropdown-item <?php if ($title == "Pulsar") echo "active"; ?>"
-                       href="/public/projets/pro_pulsar.php">
+                       href="/projets/pro_pulsar.php">
                         Pulsar
                     </a>
                     <a class="dropdown-item <?php if ($title == "Quoridor") echo "active"; ?>"
-                       href="/public/projets/pro_quoridor.php">
+                       href="/projets/pro_quoridor.php">
                         Quoridor
                     </a>
                 </div>
             </li>
             <li class="nav-item <?php if ($title == "Contact") echo "active"; ?>">
-                <a class="nav-link" href="/public/contact.php">
+                <a class="nav-link" href="/contact.php">
                     <img src="https://img.icons8.com/color/48/000000/secured-letter.png" alt="|">
                     Contact
                 </a>

+ 5 - 5
web/public/index.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Accueil";
-    include("../include/head.php");
+    include("include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../include/navbar.php")
+        include("include/navbar.php")
     ?>
 
     <!-- Content -->
@@ -22,7 +22,7 @@
             <p class="lead">Vous trouverez ici les principales informations me concernant : qui je suis, mon parcours, mon
                 expérience professionnelle et mes projets de programmation.<br>Bonne visite !</p>
         </div>
-        <img class="rounded img-fluid mx-auto d-block" src="../include/images/home_picture_v1.jpg" alt="Photo d'accueil"
+        <img class="rounded img-fluid mx-auto d-block" src="include/images/home_picture_v1.jpg" alt="Photo d'accueil"
              usemap="#homemap">
 
         <!-- Map image parts to site naviagtion -->
@@ -36,13 +36,13 @@
 
     <!-- Footer -->
     <?php
-        include("../include/footer.php")
+        include("include/footer.php")
     ?>
 
     <!-- Scripts -->
     <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
             integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
             crossorigin="anonymous"></script>
-    <script src="../include/js/bootstrap.js"></script>
+    <script src="include/js/bootstrap.js"></script>
 </body>
 </html>

+ 5 - 5
web/public/projets.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Projets";
-    include("../include/head.php");
+    include("include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../include/navbar.php")
+        include("include/navbar.php")
     ?>
 
     <!-- Main -->
@@ -104,7 +104,7 @@
         <!-- Projets présentables -->
         <div class="card-columns">
             <div class="card">
-                <img class="card-img-top" src="../include/images/project_icon_ASCII.png"
+                <img class="card-img-top" src="include/images/project_icon_ASCII.png"
                      alt="ASCII Space Destroyer image">
                 <div class="card-body">
                     <h4 class="card-title">
@@ -198,14 +198,14 @@
 
     <!-- Footer -->
     <?php
-        include("../include/footer.php")
+        include("include/footer.php")
     ?>
 
     <!-- Scripts -->
     <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
             integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
             crossorigin="anonymous"></script>
-    <script src="../include/js/bootstrap.js"></script>
+    <script src="include/js/bootstrap.js"></script>
 
 </body>
 </html>

+ 3 - 3
web/public/projets/pro_ascii_space.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "ASCII";
-    include("../../include/head.php");
+    include("../include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../../include/navbar.php")
+        include("../include/navbar.php")
     ?>
 
     <!-- Main -->
@@ -492,7 +492,7 @@
 
     <!-- Footer -->
     <?php
-        include("../../include/footer.php")
+        include("../include/footer.php")
     ?>
 
     <!-- Scripts -->

+ 3 - 3
web/public/projets/pro_pulsar.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Pulsar";
-    include("../../include/head.php");
+    include("../include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../../include/navbar.php")
+        include("../include/navbar.php")
     ?>
 
     <!-- Main -->
@@ -64,7 +64,7 @@
 
     <!-- Footer -->
     <?php
-        include("../../include/footer.php")
+        include("../include/footer.php")
     ?>
 
     <!-- Scripts -->

+ 3 - 3
web/public/projets/pro_quoridor.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Quoridor";
-    include("../../include/head.php");
+    include("../include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../../include/navbar.php")
+        include("../include/navbar.php")
     ?>
 
     <!-- Main -->
@@ -65,7 +65,7 @@
 
     <!-- Footer -->
     <?php
-        include("../../include/footer.php")
+        include("../include/footer.php")
     ?>
 
     <!-- Scripts -->

+ 3 - 3
web/public/projets/pro_static_site.php

@@ -3,13 +3,13 @@
 
 <?php
     $title = "Site";
-    include("../../include/head.php");
+    include("../include/head.php");
 ?>
 
 <body>
     <!-- Navbar -->
     <?php
-        include("../../include/navbar.php")
+        include("../include/navbar.php")
     ?>
 
     <!-- Main -->
@@ -245,7 +245,7 @@
 
     <!-- Footer -->
     <?php
-        include("../../include/footer.php")
+        include("../include/footer.php")
     ?>
 
     <!-- Scripts -->