generation-jdr/index.php

20 lines
448 B
PHP

<?php
include_once('include/database.php');
include_once('include/header.php');
if(isset($_GET['page']) && !empty($_GET['page'])) {
if(file_exists('pages/'.$_GET['page'].'.php')) {
include_once('pages/'.$_GET['page'].'.php');
}
else {
include_once('pages/accueil.php');
}
}
else {
include_once('pages/accueil.php');
}
include_once('include/left.php');
include_once('include/footer.php');
?>