Update 1.5
This commit is contained in:
parent
2627a58e13
commit
a472266435
@ -16,11 +16,11 @@ headerSubtitle = "Club Réseaux"
|
||||
footerText = "© Jan BELLON - E59 v1.5"
|
||||
|
||||
[darkThemes]
|
||||
0 = '.body {--text: hsl(0, 0%, 80%); --background: hsl(0, 0%, 15%); --panel-background: hsl(0, 0%, 10%); --buttons: hsl(0, 0%, 5%)}'
|
||||
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}'
|
||||
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: hsl(0, 0%, 20%); --background: hsl(0, 0%, 100%); --panel-background: hsl(0, 0%, 100%); --buttons: hsl(0, 0%, 100%)}'
|
||||
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)}'
|
@ -6,4 +6,3 @@ De nombreuses idées que nous aurions aimé concrétiser fusent dans nos têtes.
|
||||
<br />
|
||||
##Un travail public<br />
|
||||
Nous avons travaillé à la mise en place d'une plateforme collaborative sur laquelle seront déposés nos projets. En espérant que vous trouverez nos projets intéressants ! [Gitlab de la e59](https://gitlab.e59.fr/club-reseaux)<br />
|
||||
<br />
|
@ -70,13 +70,14 @@ if (isset($_POST['article-content']) && isset($_POST['classification']) && isset
|
||||
|
||||
file_put_contents($rootFilePath . "content/articles/" . $articleID . ".md", nl2br($_POST['article-content']));
|
||||
|
||||
$sqlRequest = "UPDATE articles SET title = :title, resume = :resume, classification = :classification, last_update = now() WHERE ID = :articleID AND author = :authorID";
|
||||
$sqlRequest = "UPDATE articles SET title = :title, resume = :resume, classification = :classification, last_update = now() WHERE ID = :articleID AND (author = :authorID OR :authorRole = 50)";
|
||||
$request = $pdo->prepare($sqlRequest);
|
||||
$request->bindParam(":title", htmlspecialchars($_POST['article-title']));
|
||||
$request->bindParam(":resume", htmlspecialchars($_POST['article-resume']));
|
||||
$request->bindParam(":classification", $_POST['classification'], PDO::PARAM_INT);
|
||||
$request->bindParam(":articleID", $_GET['article'], PDO::PARAM_INT);
|
||||
$request->bindParam(":authorID", $_SESSION['userID'], PDO::PARAM_INT);
|
||||
$request->bindParam(":authorRole", $_SESSION['userRole']);
|
||||
$request->execute();
|
||||
$result = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
if($request->execute()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user