diff --git a/config/global.ini b/config/global.ini index d342a4d8..b8d20b34 100755 --- a/config/global.ini +++ b/config/global.ini @@ -2,25 +2,33 @@ pageURL = "https://e59.fr/" filePath = "/var/www/e59/" +[social] +instagram = "https://instagram.com/e59.club" +linkedin = "https://linkedin.com/company/e59/" +x = "https://twitter.com/e59_club" +youtube = "https://www.youtube.com/@e59-club" + [sql] databaseName = "E59" databaseUser = "root" databasePass = "Broadca@Storm_SQL" databaseHost = "127.0.0.1" +[recaptcha] +siteKey = "6LeoNrMpAAAAALnwweMo-JUMu7VvJlR6JUQW1fqy" +secretKey = "6LeoNrMpAAAAAAqmZpuvcFwuRhglX0rkI2rcdvw9" + [main] -pageTitle = "Club Réseaux - E59" +pageTitle = "E59" pageName = "E59" headerTitle = "E59" headerSubtitle = "Club Réseaux" -footerText = "© Jan BELLON - E59 v1.5" +footerText = "© Jan BELLON - E59 v1.6" [darkThemes] -0 = '.body {--text: #ffffff; --background: #0e0e0e; --panel-background: #000000; --buttons: #000000} textarea, .button, button, .form, .select-input select, .select-input, .text-input, .file-input input {border:1px solid #a0a0a0}' +0 = '.body {--text: #ffffff; --background: #0e0e0e; --panel-background: #0e0e0e; --buttons: #C2694C} textarea, .form, .select-input, .text-input, .file-input input {border:1px solid #a0a0a0}' 1 = '.body {--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)}' 2 = '.body {--text: hsl(160, 65%, 95%); --background: hsl(160, 65%, 3%); --panel-background: hsl(160, 65%, 3%); --buttons: hsl(160, 65%, 3%)} .text-input, .file-input input, .select-input, .select-input select, textarea, .button, button, .form {border:1px solid var(--text)}' [lightThemes] -0 = '.body {--text: #0e0e0e; --background: #ffffff; --panel-background: #ffffff; --buttons: #fafafa} textarea, .button, button, .form, .select-input select, .select-input, .text-input, .file-input input {border:1px solid #a0a0a0}' -1 = '.body {--text: hsl(208, 100%, 0%); --background: hsl(215, 21%, 100%); --panel-background: hsl(216, 28%, 95%); --buttons: hsl(216, 28%, 95%)}' -2 = '.body {--text: hsl(160, 65%, 20%); --background: hsl(160, 30%, 98%); --panel-background: hsl(160, 30%, 98%); --buttons: hsl(160, 30%, 98%)} .text-input, .file-input input, .select-input, .select-input select, textarea, .button, button, .form {border:1px solid var(--text)}' \ No newline at end of file +0 = '.body {--text: #0e0e0e; --background: #ffffff; --panel-background: #ffffff; --buttons: #fafafa} textarea, .button, button, .form, .select-input select, .select-input, .text-input, .file-input input {border:1px solid #a0a0a0}' \ No newline at end of file diff --git a/content/articles/16.md b/content/articles/16.md new file mode 100644 index 00000000..a4b11e2f --- /dev/null +++ b/content/articles/16.md @@ -0,0 +1,13 @@ +##Visite du Forum InCyber à Lille
+Ce Mardi 26 mars, l'équipe de la E59 est allée visiter le forum International de Cybersécurité à Lille.
+Cette journée a été une superbe expérience pour nous tous et nous avons eu l'occasion d'échanger avec différents acteurs de la cyber.
+##Nouvelle fonctionnalité sur GitHub
+Lors de ce forum, GitHub a présenté une nouvelle fonctionnalité qui permet d'identifier des failles dans du code. Cette fonctionnalité devrait sortir prochainement
+##Echange avec la CNIL
+Nous avons eu l'occasion d'échanger avec un représentant de la CNIL, nous lui avons posé diverses questions concernant la gestion des donnés sur nos différentes infrastructures (sites web, vidéosurveillance). Cela nous a permis d'avoir une vision plus clair de nos responsabilités vis à vis des données personnelles que nous gérons.
+##Yubico
+Yubico nous ont présenté leur Yubikey, une solution d'authentification par clé. Nous sommes intéressés par cette solution pour nos systèmes d'authentification sur notre infrastructure.
+##Les outils de forensique de la Douane
+La Douane nous a présenté leurs outils de forensique permettant de récupérer le contenu d'un disque dur. Ils ne nous ont pas donné de précisions détaillées quant au fonctionnement de ces systèmes.
+##Thalès pirate un microprocesseur avec un oscilloscope.
+Thalès nous a présenté leur système permettant de pirater un microprocesseur faisant tourner de l'IA. Ce système est composé d'un capteur sensible aux variations électromagnétiques tenu par un bras et posé sur une zone précise du microprocesseur. Ce capteur est relié à un oscilloscope qui affiche les variations électromagnétiques sur un écran. En retrouvant des motifs répétitifs de variations, il est possible de tromper le comportement de la puce pour changer le résultat de sortie de la chaine neuronale. Il serait donc possible par exemple de tromper un système de reconnaissance faciale en lui faisant croire que nous sommes une personne différente ou encore forcer une authentification. \ No newline at end of file diff --git a/content/articles/17.md b/content/articles/17.md new file mode 100644 index 00000000..d17c785d --- /dev/null +++ b/content/articles/17.md @@ -0,0 +1,22 @@ +##Une infra on premise
+Notre objectif est d'avoir une infrastructure avec 0 frais d'abonnement, nous souhaitons donc nous séparer de nos VPS dans le but de tout héberger en E59.
+
+##Accès internet
+Notre accès internet actuel passe par Renater. Les nombreux blocages ainsi que les coupures occasionnelles de l'accès internet nous ont poussé à prévoir des solutions pour nous créer un accès internet indépendant de Renater.
+Emilien a eu l'idée ambitieuse de demander un accès internet direct à l'IUT et une adresse IP publique pour la E59. Il est confiant quant au fait que Madame Moreau ait la possibilité de répondre à notre demande.
+Jan quant à lui est moins optimiste et il est nécéssaire selon lui de prévoir un plan B au cas ou L'IUT nous refuse la demande.
+
+##Cybersécurité 0 trust
+Emilien suivi par Eliott et Akram, souhaite mettre en place une infrastructure 0 trust avec 3 firewall, un bastion et un reverse proxy. Jan et Lucas quant à eux ne sont pas totalement convaincus de l'idée affirmant que c'est une approche paranoïaque abusive.
+Il est cependant important de souligner le fait que c'est Emilien, Eliott et Akram les responsables du réseau et qu'elles sont prêtes à donner du temps pour mettre en place l'infrastructure d'Emilien.
+Jan et Lucas ne se sont donc pas opposés à l'idée et souhaitent bonne chance à Emilien et son équipe pour mettre en place l'infrastructure.
+
+##Trop de brassage d'air selon Jan
+Jan a fait un coup de gueule sur teams dans la soirée, affirmant que ce n'est pas en ajoutant des étages à la tour qu'on fait avancer le projet.
+Selon lui, tout le monde a déjà une vision du projet final et, pour être efficace, il faut juste passer à l'action et commencer le projet en faisant des planifications court terme des actions.
+
+##Pour conclure..
+L'équipe de la E59 est pleine d'idées et a beaucoup d'ambition.
+Le 5 avril, aura lieu la première assemblée générale durant laquelle, les personnes impliquées dans le projet de la E59 auront l'occasion de mettre leur point de vue sur la table et échanger à propos de la création de l'Association E59.
+Ce sera aussi l'occasion de planifier les taches pour créer les statuts et trouver une assurance.
+Nous nous retrouverons Vendredi, pour faire un point sur l'assemblée générale numéro 1. \ No newline at end of file diff --git a/content/articles/2.md b/content/articles/2.md index f9ccd0c3..3479a953 100755 --- a/content/articles/2.md +++ b/content/articles/2.md @@ -1,5 +1,4 @@ -# SpyLab, une plateforme de CTF
-
+#SpyLab, une plateforme de CTF
La plateforme de CTF SpyLab est displonible sur le gitlab de la E59.
Ce projet a été mené dans le cadre de la SAE Pentest, un projet universitaire dirigé par Monsieur Guillemin.
Nous remercions tous les participants de ce projet pour leur contribution.
diff --git a/content/pages/index.md b/content/pages/index.md deleted file mode 100755 index b40efc9c..00000000 --- a/content/pages/index.md +++ /dev/null @@ -1,3 +0,0 @@ -#Bienvenue sur le journal de la E59.
-**Vous y trouverez les dernières actualités du Club.
** -**Vous pouvez nous contacter en écrivant à [club@e59.fr](mailto:club@e59.fr).** \ No newline at end of file diff --git a/html/about/index.php b/html/about/index.php index fd854d40..90f2b028 100755 --- a/html/about/index.php +++ b/html/about/index.php @@ -19,7 +19,7 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData
- +
diff --git a/html/account/index.php b/html/account/index.php index 5aeb475b..cf434bb9 100755 --- a/html/account/index.php +++ b/html/account/index.php @@ -94,19 +94,17 @@ if (isset($_FILES['newBanner']) && $_FILES['newBanner']['error'] == 0) { } } -if (isset($_POST['userDisplayName']) && isset($_POST['userBio'])) { - if(preg_match('!\S!u', $_POST['userDisplayName']) && preg_match('!\S!u', $_POST['userBio'])) { - $sqlRequest = "UPDATE users SET display_name = :userDisplayName, bio = :userBio, last_update = now() WHERE ID = :userID"; - $request = $pdo->prepare($sqlRequest); - $userDisplayName = htmlspecialchars(substr($_POST['userDisplayName'], 0, 20)); - $userBio = htmlspecialchars(substr($_POST['userBio'], 0, 200)); - $request->bindParam(":userDisplayName", $userDisplayName); - $request->bindParam(":userBio", $userBio); - $request->bindParam(":userID", $_SESSION['userID']); - if($request->execute()) { - $status = "Informations mises à jour"; - $_SESSION['userDisplayName'] = htmlspecialchars($_POST['userDisplayName']); - } +if (isset($_POST['userDisplayName']) || isset($_POST['userBio'])) { + $sqlRequest = "UPDATE users SET display_name = :userDisplayName, bio = :userBio, last_update = now() WHERE ID = :userID"; + $request = $pdo->prepare($sqlRequest); + $userDisplayName = isset($_POST['userDisplayName']) ? htmlspecialchars(substr($_POST['userDisplayName'], 0, 20)) : "Guest"; + $userBio = isset($_POST['userBio']) ? htmlspecialchars(substr($_POST['userBio'], 0, 200)) : ""; + $request->bindParam(":userDisplayName", $userDisplayName); + $request->bindParam(":userBio", $userBio); + $request->bindParam(":userID", $_SESSION['userID']); + if($request->execute()) { + $status = "Informations mises à jour"; + $_SESSION['userDisplayName'] = htmlspecialchars($_POST['userDisplayName']); } } @@ -181,7 +179,7 @@ if($result) {
- +
diff --git a/html/admin/index.php b/html/admin/index.php index 1625f77f..8b9a42aa 100755 --- a/html/admin/index.php +++ b/html/admin/index.php @@ -62,7 +62,7 @@ if (isset($_POST['delete-user']) && isset($_POST['delete-user-id'])) {
- +
diff --git a/html/assets/banners/1.png b/html/assets/banners/1.png index 0567f08f..105fda63 100755 Binary files a/html/assets/banners/1.png and b/html/assets/banners/1.png differ diff --git a/html/assets/banners/44.png b/html/assets/banners/44.png new file mode 100644 index 00000000..85c1c6df Binary files /dev/null and b/html/assets/banners/44.png differ diff --git a/html/assets/miniatures/16.png b/html/assets/miniatures/16.png new file mode 100644 index 00000000..a53b1b82 Binary files /dev/null and b/html/assets/miniatures/16.png differ diff --git a/html/assets/miniatures/17.png b/html/assets/miniatures/17.png new file mode 100644 index 00000000..f8ca42d5 Binary files /dev/null and b/html/assets/miniatures/17.png differ diff --git a/html/assets/pp/1.png b/html/assets/pp/1.png index 03306f64..91c6af63 100755 Binary files a/html/assets/pp/1.png and b/html/assets/pp/1.png differ diff --git a/html/assets/pp/44.png b/html/assets/pp/44.png new file mode 100644 index 00000000..6a04af1f Binary files /dev/null and b/html/assets/pp/44.png differ diff --git a/html/assets/pp/46.png b/html/assets/pp/46.png new file mode 100644 index 00000000..cc9699f1 Binary files /dev/null and b/html/assets/pp/46.png differ diff --git a/html/editor/index.php b/html/editor/index.php index aaf99133..ab9d3501 100755 --- a/html/editor/index.php +++ b/html/editor/index.php @@ -168,7 +168,7 @@ if (isset($_FILES['miniature']) && $_FILES['miniature']['error'] == 0 && isset($
- +
diff --git a/html/index.php b/html/index.php index b38bf8ac..35020b07 100755 --- a/html/index.php +++ b/html/index.php @@ -20,7 +20,7 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData
- +
@@ -32,13 +32,17 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData
- -
- +

Bienvenue sur le site de la E59

+

Qui sommes nous ?

+
+ Nous sommes un petit groupe de passionés d'informatique.
+ Notre objectif est d'aider les membres de notre club à mener leurs projets que ça soit un site web, développer un jeu ou du pentest.
+ Nous prévoyons de nous émanciper pour augmenter nos moyens matériels et financiers.
+ Si le projet vous intéresse et que vous êtes étudiant à l'IUT de Vélizy, venez nous voir en E59 dans la Halle Bastié
+ Vous pouvez aussi nous écrire à l'adresse club@e59.fr
+ Au plaisir de vous rencontrer.
+

Nos dernières actualités

- +
@@ -87,8 +87,8 @@ if (isset($_POST['username']) && isset($_POST['password'])) { textInput("password", "", "password", "Mot de Passe", ""); ?> - +
ou
+ Créer un compte
diff --git a/html/login/register-wrhpplxiqithhuoejqga.php b/html/login/register-wrhpplxiqithhuoejqga.php deleted file mode 100755 index a191ee5a..00000000 --- a/html/login/register-wrhpplxiqithhuoejqga.php +++ /dev/null @@ -1,114 +0,0 @@ -prepare($sqlRequest); - $request->bindParam(":username", $userName); - $request->execute(); - $result = $request->fetchAll(PDO::FETCH_ASSOC); - - if($result) { - $status = "Le nom d'utilisateur existe déjà"; - } else { - - $request = $pdo->prepare("INSERT INTO users (username, password, email, display_name, role, accreditation) VALUES (:username, :password, :email, :display_name, 1, 1)"); - $request->bindParam(':username', $userName); - $request->bindParam(':password', md5($_POST['password1'])); - $request->bindParam(':email', $userEmail); - $request->bindParam(':display_name', $userDisplayName); - - if ($request->execute()) { - header("Location: index.php"); - exit(); - } else { - $status = "Erreur SQL"; - } - } - } - } else { - $status = "Les mots de passe ne correspondent pas"; - } - } else { - $status = "Caractères illégaux"; - } - } else { - $status = "Les champs ne doivent pas être vides"; - } -} -?> - - - - - - - - - - - -
-
- -
-
- - - -
-
-
-
-
Créer un compte
-
- - -
ou
- Se connecter -
-
-
-
-
-
- -
-
- - \ No newline at end of file diff --git a/html/login/register.php b/html/login/register.php new file mode 100755 index 00000000..cd23d904 --- /dev/null +++ b/html/login/register.php @@ -0,0 +1,129 @@ +success) { + $status = "Veuillez cocher la case reCAPTCHA."; + } else { + if (isset($_POST['password1']) && isset($_POST['password2'])) { + if(empty($_POST['username']) == false && empty($_POST['password1']) === false && empty($_POST['password2']) === false) { + if(preg_match('!\S!u', $_POST['username']) && preg_match('!\S!u', $_POST['password1']) && preg_match('!\S!u', $_POST['password2'])) { + if($_POST['password1'] == $_POST['password2']) { + + if (empty($_POST['email']) === false && preg_match('!\S!u', $_POST['username']) == false) { + $status = "Caractères illégaux"; + } else { + $userEmail = isset($_POST['email']) ? strtolower($_POST['email']) : NULL; + $userDisplayName = htmlspecialchars(substr($_POST['username'], 0, 20)); + $userName = str_replace(" ", "_", strtolower(htmlspecialchars(substr($_POST['username'], 0, 20)))); + + $sqlRequest = "SELECT ID FROM users WHERE username = :username"; + $request = $pdo->prepare($sqlRequest); + $request->bindParam(":username", $userName); + $request->execute(); + $result = $request->fetchAll(PDO::FETCH_ASSOC); + + if($result) { + $status = "Le nom d'utilisateur existe déjà"; + } else { + + $request = $pdo->prepare("INSERT INTO users (username, password, email, display_name, role, accreditation) VALUES (:username, :password, :email, :display_name, 1, 1)"); + $request->bindParam(':username', $userName); + $request->bindParam(':password', md5($_POST['password1'])); + $request->bindParam(':email', $userEmail); + $request->bindParam(':display_name', $userDisplayName); + + if ($request->execute()) { + header("Location: index.php"); + exit(); + } else { + $status = "Erreur SQL"; + } + } + } + } else { + $status = "Les mots de passe ne correspondent pas"; + } + } else { + $status = "Caractères illégaux"; + } + } else { + $status = "Les champs ne doivent pas être vides"; + } + } + } + } else { + $status = "Erreur, captcha vide"; + } +} +?> + + + + + + + + + + + + +
+
+ +
+
+ + + +
+
+
+
+
Créer un compte
+
+ +
+ +
ou
+ Se connecter +
+
+
+
+
+
+ +
+
+ + \ No newline at end of file diff --git a/html/news/index.php b/html/news/index.php index 8efa896e..509dded5 100755 --- a/html/news/index.php +++ b/html/news/index.php @@ -107,17 +107,27 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT) max-height: 30em; } + .article .article-content { + font-family: cfont, Arial, sans-serif; + } + + .article .article-content p { + font-family: Calibri, Arial, sans-serif; + } + .article .article-content img { max-width: 100%; max-height: 30em; } .article .article-content h1 { - font-family: Arial, sans-serif; - font-weight: bold; font-size: 2em; } + .article .article-content h2 { + font-weight: normal; + } + .button { display: block; width: min-content; @@ -129,7 +139,7 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)
- +
@@ -170,7 +180,7 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT) echo ('
'); echo (''); } else { - echo ('

News

'); + echo ('

Actualités

'); echo ('
'); $shapePath = ''; diff --git a/html/settings/deleteaccount.php b/html/settings/deleteaccount.php index d7f34673..5f262f99 100755 --- a/html/settings/deleteaccount.php +++ b/html/settings/deleteaccount.php @@ -63,7 +63,7 @@ if (isset($_POST['delete-account']) && $_POST['delete-account'] == "delete-accou
- +
diff --git a/html/settings/index.php b/html/settings/index.php index 8334ea07..92390784 100755 --- a/html/settings/index.php +++ b/html/settings/index.php @@ -65,7 +65,7 @@ if (isset($_POST['username']) && isset($_POST['email'])) {
- +
diff --git a/html/src/css/style.css b/html/src/css/style.css index 728dbd11..ba1ef860 100755 --- a/html/src/css/style.css +++ b/html/src/css/style.css @@ -13,8 +13,10 @@ html { body { font-family: cfont, Arial, sans-serif; + font-size: 20px; color: var(--text); margin: 0; + line-height: 1.3; } a { @@ -72,11 +74,11 @@ input:focus, textarea:focus { color: var(--text); border-radius: 10px; padding: 0.5em 1em; - font-size: 1.2em; display: inline-block; border: none; border-radius: 1.5em; margin: 0.5em 0; + font-size: 0.8em; } .status { @@ -115,6 +117,40 @@ header { font-size: 3em; } +.social-zone { + display: flex; + justify-content: right; +} + +.social-zone .social-link { + margin: 0 0.2em; +} + +.social-zone .social-logo { + height: 1.2em; + border-radius: 0; +} + +.social-zone .instagram-logo { + background-image: url("/src/svg/instagram.svg"); + background-size: contain; +} + +.social-zone .linkedin-logo { + -webkit-mask: url("/src/svg/linkedin.svg"); + mask: url("/src/svg/linkedin.svg") no-repeat center; +} + +.social-zone .x-logo { + -webkit-mask: url("/src/svg/x.svg"); + mask: url("/src/svg/x.svg") no-repeat center; +} + +.social-zone .youtube-logo { + -webkit-mask: url("/src/svg/youtube.svg"); + mask: url("/src/svg/youtube.svg") no-repeat center; +} + /* NAV */ @@ -127,17 +163,19 @@ nav { .nav-link { padding: 0.5em; - background-color: var(--buttons); margin-right: 1em; - border-top-right-radius: 10px; - border-top-left-radius: 10px; + border-radius: 10px; + border-bottom: 1px solid var(--panel-background) } +.nav-link:hover { + border-bottom: 1px solid var(--text) +} /* MAIN */ main { - font-family: Helvetica, Arial, sans-serif; + font-family: Calibri, Arial, sans-serif; background: var(--background); width: 100%; margin: 0; @@ -146,8 +184,23 @@ main { main h1 { font-family: cfont, Arial, sans-serif; - font-size: 3em; + font-size: 2em; font-weight: lighter; + margin: 2em 0 0.5em 0; +} + +main h2 { + font-family: cfont, Arial, sans-serif; + font-size: 1.5em; + font-weight: lighter; + margin: 2em 0 0.5em 0; +} + +main h3 { + font-family: cfont, Arial, sans-serif; + font-size: 1em; + font-weight: lighter; + margin: 2em 0 0.5em 0; } /* FOOTER */ @@ -158,6 +211,7 @@ footer { padding: 1em; background: var(--panel-background); display: flex; + font-size: 0.8em; } /* ARTICLES LISTING */ @@ -242,7 +296,6 @@ footer { } .file-input input[type='file'] { - background-color: var(--buttons); padding: 0.5em; border-radius: 1.5em; } @@ -337,7 +390,7 @@ footer { } .user-widget .user-display-name { - font-weight: bold; + font-family: cfont, Arial, sans-serif; display: flex; white-space: nowrap; } @@ -382,7 +435,7 @@ footer { } .user-profile .display-name { - font-weight: bold; + font-family: cfont, Arial, sans-serif; display: inline; } @@ -408,6 +461,13 @@ footer { margin: 0 auto; } +.g-recaptcha { + margin: 1em auto; + width: 300px; + height: 75px; + overflow: hidden; +} + /* PHONE SCREEN */ @media(max-width: 750px) { diff --git a/html/src/img/Athena-silver.png b/html/src/img/Athena-silver.png deleted file mode 100644 index 503e38b5..00000000 Binary files a/html/src/img/Athena-silver.png and /dev/null differ diff --git a/html/src/img/e59.png b/html/src/img/e59.png index 5b6f4520..a235ed5a 100644 Binary files a/html/src/img/e59.png and b/html/src/img/e59.png differ diff --git a/html/src/img/tampon-club.png b/html/src/img/tampon-club.png new file mode 100644 index 00000000..6986a451 Binary files /dev/null and b/html/src/img/tampon-club.png differ diff --git a/html/src/svg/instagram.svg b/html/src/svg/instagram.svg new file mode 100644 index 00000000..b7e5367c --- /dev/null +++ b/html/src/svg/instagram.svg @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/html/src/svg/linkedin.svg b/html/src/svg/linkedin.svg new file mode 100644 index 00000000..7d9b3863 --- /dev/null +++ b/html/src/svg/linkedin.svg @@ -0,0 +1,14 @@ + + \ No newline at end of file diff --git a/html/src/svg/x.svg b/html/src/svg/x.svg new file mode 100644 index 00000000..0a05fd5b --- /dev/null +++ b/html/src/svg/x.svg @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/html/src/svg/youtube.svg b/html/src/svg/youtube.svg new file mode 100644 index 00000000..c1cd5ec3 --- /dev/null +++ b/html/src/svg/youtube.svg @@ -0,0 +1,6 @@ + + \ No newline at end of file diff --git a/html/upload/index.php b/html/upload/index.php index 0d2023f3..b6e682e7 100755 --- a/html/upload/index.php +++ b/html/upload/index.php @@ -63,7 +63,7 @@ if(isset($_POST['article-content']) && isset($_POST['classification'])) {
- +
diff --git a/html/users/index.php b/html/users/index.php index 9f072ba8..51275c66 100755 --- a/html/users/index.php +++ b/html/users/index.php @@ -71,7 +71,7 @@ if(isset($_GET['u']) && empty($_GET['u']) == false) {
- +
diff --git a/include/init.php b/include/init.php index dff758b2..1a0413c4 100755 --- a/include/init.php +++ b/include/init.php @@ -8,7 +8,7 @@ if (!isset($_SESSION['userAccreditation']) || !isset($_SESSION['userRole'])) { } if (!isset($_COOKIE['theme'])) { - $theme = random_int(0, 3); + $theme = 0; setcookie('theme', $theme, time()+10*60*60, "/", ".e59.fr"); $darkTheme = $darkThemes[$theme]; $lightTheme = $lightThemes[$theme]; diff --git a/include/panels.php b/include/panels.php index 085f85cf..e0787af6 100755 --- a/include/panels.php +++ b/include/panels.php @@ -8,22 +8,14 @@ function fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme) { echo (''); echo (''); echo ('' . $pageTitle . ''); } -function fillHeader($rootPageURL, $headerTitle, $headerSubtitle) { +function fillHeader($rootPageURL, $headerTitle, $headerSubtitle, $social) { echo ('
'); @@ -35,6 +27,14 @@ function fillHeader($rootPageURL, $headerTitle, $headerSubtitle) { echo ('
'); + echo (''); + echo ('
'); echo ('
' . $headerTitle . '
'); echo ('
' . $headerSubtitle . '
'); @@ -45,11 +45,10 @@ function fillHeader($rootPageURL, $headerTitle, $headerSubtitle) { function fillNav($rootPageURL) { - - echo (''); + echo (''); echo (''); - if ($_SESSION['userRole'] >= 3) { + if ($_SESSION['userRole'] == 50) { echo (''); } diff --git a/include/variables.php b/include/variables.php index 3a3bd0ab..ab55b5fd 100755 --- a/include/variables.php +++ b/include/variables.php @@ -16,6 +16,11 @@ $headerSubtitle = $globalConfig['main']['headerSubtitle']; $footerText = $globalConfig['main']['footerText']; + $social = $globalConfig['social']; + + $recaptchaSiteKey = $globalConfig['recaptcha']['siteKey']; + $recaptchaSecretKey = $globalConfig['recaptcha']['secretKey']; + $darkThemes = $globalConfig['darkThemes']; $lightThemes = $globalConfig['lightThemes']; ?> \ No newline at end of file