Update file editpage.php
This commit is contained in:
parent
7f8dc5401b
commit
c03971be7a
@ -209,17 +209,19 @@ if(isset($fichier)) {
|
||||
echo '</form></div>';
|
||||
}
|
||||
} else {
|
||||
echo "<div><div><h2>Pages</h2></div>";
|
||||
echo "<div>";
|
||||
$pages = scandir($wwwroot . "/content/");
|
||||
foreach($pages as $page) {
|
||||
if($page != "." && $page != "..") {
|
||||
if (is_file($wwwroot . "/content/" . $page)) {
|
||||
echo "<a href='?page=" . pathinfo($page, PATHINFO_FILENAME) . "'><div class='button'>" . pathinfo($page, PATHINFO_FILENAME) . "</div></a>";
|
||||
if($_SESSION['role'] >= 3) {
|
||||
echo "<div><div><h2>Pages</h2></div>";
|
||||
echo "<div>";
|
||||
$pages = scandir($wwwroot . "/content/");
|
||||
foreach($pages as $page) {
|
||||
if($page != "." && $page != "..") {
|
||||
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 "<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