Update 4 files
- /html/journal.php - /config/global.ini - /html/news.php - /html/editpage.php
This commit is contained in:
parent
68e1548596
commit
bf9ea44163
@ -11,7 +11,7 @@ dbpass = "vcwfDitW9tQBsRJX"
|
||||
dbhost = "127.0.0.1"
|
||||
|
||||
[nav]
|
||||
Journal = "journal.php"
|
||||
News = "news.php"
|
||||
A propos = "about.php"
|
||||
|
||||
[classifications]
|
||||
|
@ -128,7 +128,12 @@ if(isset($fichier)) {
|
||||
|
||||
if ($resultat) {
|
||||
foreach($resultat as $row) {
|
||||
echo "<a href='?article=" . $row['ID'] . "' class='article-link'><div class='article'><div class='article-content'><div><h1>" . $row['titre'] . "</h1></div><div><h2>" . $row['auteur'] . "</h2></div><div>" . $classifications[(int)$row['classification']] . "</div><div>" . $date->format('d/m/Y') . "</div></div></div></a>";
|
||||
echo "<div class='article-preview'><hr>";
|
||||
echo "<a href='?article=" . $row['ID'] . "' class='article-link'>";
|
||||
echo "<div><h1>" . $row['titre'] . "</h1></div></a>";
|
||||
echo "<div><h2>" . $row['auteur'] . "</h2></div>";
|
||||
echo "<div>" . $classifications[(int)$row['classification']] . "</div>"
|
||||
echo "<div>" . $date->format('d/m/Y') . "</div></div>";
|
||||
}
|
||||
}
|
||||
echo "</div>";
|
||||
|
@ -56,7 +56,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
||||
} else {
|
||||
$bdd = connect($dbhost, $dbname, $dbuser, $dbpass);
|
||||
$req = $bdd->prepare("SELECT ID, titre, date, auteur, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC");
|
||||
$req->bindParam(":accreditation", $_SESSION['accreditation']);
|
||||
$req->bindParam(":accreditation", $_SESSION['accreditation']);
|
||||
$req->execute();
|
||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
@ -64,7 +64,12 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
||||
|
||||
if ($resultat) {
|
||||
foreach($resultat as $row) {
|
||||
echo "<a href='?article=" . $row['ID'] . "' class='article-link'><div class='article'><div class='article-content'><div><h1>" . $row['titre'] . "</h1></div><div><h2>" . $row['auteur'] . "</h2></div><div>" . $classifications[(int)$row['classification']] . "</div><div>" . $date->format('d/m/Y') . "</div></div></div></a>";
|
||||
echo "<div class='article-preview'><hr>";
|
||||
echo "<a href='?article=" . $row['ID'] . "' class='article-link'>";
|
||||
echo "<div><h1>" . $row['titre'] . "</h1></div></a>";
|
||||
echo "<div><h2>" . $row['auteur'] . "</h2></div>";
|
||||
echo "<div>" . $classifications[(int)$row['classification']] . "</div>"
|
||||
echo "<div>" . $date->format('d/m/Y') . "</div></div>";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user