Update file editpage.php
This commit is contained in:
parent
7f8dc5401b
commit
c03971be7a
@ -209,17 +209,19 @@ if(isset($fichier)) {
|
|||||||
echo '</form></div>';
|
echo '</form></div>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "<div><div><h2>Pages</h2></div>";
|
if($_SESSION['role'] >= 3) {
|
||||||
echo "<div>";
|
echo "<div><div><h2>Pages</h2></div>";
|
||||||
$pages = scandir($wwwroot . "/content/");
|
echo "<div>";
|
||||||
foreach($pages as $page) {
|
$pages = scandir($wwwroot . "/content/");
|
||||||
if($page != "." && $page != "..") {
|
foreach($pages as $page) {
|
||||||
if (is_file($wwwroot . "/content/" . $page)) {
|
if($page != "." && $page != "..") {
|
||||||
echo "<a href='?page=" . pathinfo($page, PATHINFO_FILENAME) . "'><div class='button'>" . pathinfo($page, PATHINFO_FILENAME) . "</div></a>";
|
if (is_file($wwwroot . "/content/" . $page)) {
|
||||||
|
echo "<a href='?page=" . pathinfo($page, PATHINFO_FILENAME) . "'><div class='button'>" . pathinfo($page, PATHINFO_FILENAME) . "</div></a>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
echo "</div></div><div>";
|
||||||
}
|
}
|
||||||
echo "</div></div><div>";
|
|
||||||
echo "<div><h2>Articles</h2></div>";
|
echo "<div><h2>Articles</h2></div>";
|
||||||
echo "<form action='' method='get'><input type='text' placeholder='Article' name='search'><input type='submit' value='Rechercher'></form>";
|
echo "<form action='' method='get'><input type='text' placeholder='Article' name='search'><input type='submit' value='Rechercher'></form>";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user