Update 2 files

- /html/editpage.php
- /html/admin.php
This commit is contained in:
Jan BELLON 2024-03-07 16:30:17 +00:00
parent aefe27a83e
commit dbab7a96e3
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ if(isset($_SESSION['userid']) == false) {
<div>
<div>
<div><a href="upload.php">Publier un article</a></div>
<div><a href="editpage.php">Editer une page</a></div>
</div>
</div>
</div>

View File

@ -16,7 +16,7 @@ if(isset($_SESSION['userid']) == false) {
}
if(isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
if(file_exists($repertoire . "content/journal/" . $_GET['article'] . ".md";)){
if(file_exists($repertoire . "content/journal/" . $_GET['article'] . ".md")){
$fichier = $repertoire . "content/journal/" . $_GET['article'] . ".md";
$filename = $_GET['article'];
$filetype = 0;