コード例 #1
0
ファイル: index.php プロジェクト: KevinAlberca/Trottilib
}
if (isset($_GET['page'])) {
    $page = $_GET['page'];
    if (!isset($routing[$page])) {
        $page = '404';
    }
} else {
    $page = 'accueil';
}
if ($routing[$page]['secure'] === true && !isset($_SESSION['user'])) {
    header("Location: ?page=connexion");
    exit;
}
$user = new User(Connexion::getPDO());
$abo = new Subscription(Connexion::getPDO());
$panier = new Basket(Connexion::getPDO());
?>
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="utf-8" />
    <title><?php 
echo ucwords($page);
?>
 | Trottilib</title>
    <meta name="author" content="AwH" />
    <meta name="keywords" content="Mot, clefs" />
    <meta name="description" content="description de la page" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="./static/css/bootstrap.min.css" />
    <link rel="stylesheet" href="./static/css/bootstrap-theme.min.css" />