session_start();
include __DIR__ . '/Application/BaseDeDonne.php';
include __DIR__ . '/Application/Objects/Liens.php';
include __DIR__ . '/Application/NuageDeTag.php';
include __DIR__ . '/Application/LienAleatoire.php';
$bdd = new BaseDeDonnee();
$bdd = $bdd->connect();
$nuage = new NuageDeTag($bdd);
$listeLiens = new LireBaseDeDonnee();
if (!isset($_GET['recherche'])) {
    $listeLiens = $listeLiens->rechercheLien($bdd);
} else {
    $listeLiens = $listeLiens->rechercheLien($bdd, $_GET['recherche']);
}
$LienRandom = new Random();
$Lien = $LienRandom->aleatoire($bdd);
?>

<!DOCTYPE html>
<html class="total">

    <head>
        <meta charset="utf-8" />
        <link rel="stylesheet" type="text/css" href="Public/css/style.css">
        <link rel="stylesheet" type="text/css" href="Public/css/bootstrap/css/bootstrap.min.css">
        <title>PhotoRef, references, posings and other photographic stuff for artists </title>
    </head>

    <body class="body">
    	<!-- Première partie du site, champ de recherche + nuage de tag + lien random -->
	    	<div class="container" ><!-- Container de la premiere partie -->