221 lines
8.7 KiB
PHP
Executable File
221 lines
8.7 KiB
PHP
Executable File
<?php session_start();
|
|
|
|
function head($adresse) {
|
|
|
|
include "inc/loginsbdd.php";
|
|
|
|
try {
|
|
$bdd = new PDO('mysql:host=localhost;dbname=anternet;charset=utf8', $userBDD, $mdpBDD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
|
|
}
|
|
|
|
catch (Exception $e) {
|
|
die('Erreur PHP / MySQL : ' . $e->getMessage()); }
|
|
|
|
$reponse = $bdd->prepare('SELECT * FROM pages WHERE `pages`.`adresse` = :adresse');
|
|
|
|
|
|
$reponse->execute(array(
|
|
'adresse' => $adresse
|
|
));
|
|
|
|
while ($page = $reponse->fetch()) { ?>
|
|
|
|
|
|
|
|
<!DOCTYPE HTML>
|
|
<html lang="fr" id="haut">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title><?php echo $page['titre']; ?> | Ant</title>
|
|
<link type="text/css" rel="stylesheet" href="css/main.css"/>
|
|
<link type="text/css" rel="stylesheet" href="fontello/css/fontello.css"/>
|
|
<link rel="icon" type="image/ico" href="media/favicon.ico"/>
|
|
<meta name="author" lang="fr" content="Miraty">
|
|
<meta name="publisher" content="Ant">
|
|
<meta name="distribution" content="global">
|
|
<meta name="robots" content="index, follow">
|
|
<meta name="keywords" lang="fr" content="antopie.org, Ant, Miraty, Antopie">
|
|
<meta name="description" content="<?php echo $page['description']; ?>"/>
|
|
<meta property="og:locale" content="fr"/>
|
|
<meta property="og:type" content="website"/>
|
|
<meta property="og:title" content="<?php echo $page['titre']; ?> | Ant"/>
|
|
<meta property="og:site_name" content="Ant"/>
|
|
<meta property="og:image" content="https://anternet.pw/web/media/logo/antorigine.png"/>
|
|
<meta property="og:image:secure_url" content="https://anternet.pw/web/media/logo/antorigine.png"/>
|
|
<meta property="og:image:type" content="image/png"/>
|
|
<meta property="og:image:width" content="1680"/>
|
|
<meta property="og:image:height" content="510"/>
|
|
<meta property="og:image:alt" content="Logo Ant"/>
|
|
<meta property="og:description" content="<?php echo $page['description']; ?>"/>
|
|
</head>
|
|
|
|
|
|
<body lang="fr">
|
|
<div class="main">
|
|
<div id="emplacementmenu">
|
|
<nav class="menugauche"><a href="index.php" title="Retour à la page d'accueil" class="option optionhaute fin-it">
|
|
<div class="logo"><img src="media/logo/ant.png" width="100%" alt="Logo Ant" /></div>
|
|
<?php
|
|
switch (mt_rand(1, 18)) {
|
|
case 1: ?>
|
|
Antièrement libre
|
|
<?php break;
|
|
case 2: ?>
|
|
https://www.antopie.org
|
|
<?php break;
|
|
case 3: ?>
|
|
Créé par un FrAntçais
|
|
<?php break;
|
|
case 4: ?>
|
|
Antopie
|
|
<?php break;
|
|
case 5: ?>
|
|
À l'Antipode des GAFAM
|
|
<?php break;
|
|
case 6: ?>
|
|
Anterrons le capitalisme
|
|
<?php break;
|
|
case 7: ?>
|
|
Pour la liberté d'Anternet !
|
|
<?php break;
|
|
case 8: ?>
|
|
Les combattAnts d'internet
|
|
<?php break;
|
|
case 9: ?>
|
|
PlAntons l'avenir
|
|
<?php break;
|
|
case 10: ?>
|
|
Pour les parAnts et les enfAnts
|
|
<?php break;
|
|
case 11: ?>
|
|
Le slogan trop marrAnt !
|
|
<?php break;
|
|
case 12: ?>
|
|
Sans publicités gênAntes
|
|
<?php break;
|
|
case 13: ?>
|
|
FAntastique !
|
|
<?php break;
|
|
case 14: ?>
|
|
La fourmillière géAnte !
|
|
<?php break;
|
|
case 15: ?>
|
|
Un site fourmillittAnt
|
|
<?php break;
|
|
case 16: ?>
|
|
Fourmiedable !
|
|
<?php break;
|
|
case 17: ?>
|
|
Un site indépendAnt
|
|
<?php break;
|
|
case 18: ?>
|
|
Les fourmies n'ont pas d'L mais elles ont des E
|
|
<?php break;
|
|
|
|
} ?>
|
|
</a>
|
|
<div class="dossier">
|
|
<?php if (isset($_SESSION['pseudo'])) { ?>
|
|
<div class="nomdossier">
|
|
Vous êtes connecté·e en tant que <span class="pseudo"><?php echo $_SESSION['pseudo']; ?></span>
|
|
</div>
|
|
<a href="fourmiliere.php" title="Site de blog" class="optiondossier option premieroptiondossier icon-doc-text-inv-1">
|
|
La fourmilière
|
|
</a>
|
|
<a href="commentaire.php" title="Lire/Envoyer des commentaires" class="optiondossier option icon fa-comments" >
|
|
Espace commentaire
|
|
</a>
|
|
<a href="deconnexion.php?depuis=<?php echo $page['adresse']; ?>" title="Cliquez ici pour vous déconnecter" class="petiteoption optiondossier option icon fa-sign-out">
|
|
Déconnexion
|
|
</a>
|
|
<?php } else { ?>
|
|
<div class="nomdossier">
|
|
Vous n'êtes pas connecté·e
|
|
</div>
|
|
<a href="fourmiliere.php" title="Site de blog" class="optiondossier premieroptiondossier option icon-doc-text-inv-1">
|
|
La fourmilière
|
|
</a>
|
|
<a href="commentaire.php" title="Lire/Envoyer des commentaires" class="optiondossier option icon icon-comment" >
|
|
Espace commentaire
|
|
</a>
|
|
<a href="connexion.php?depuis=<?php echo $page['adresse']; ?>" title="Se connecter à son compte Ant" class="optiondossier option icon-user">
|
|
Connexion
|
|
</a>
|
|
<a href="signup.php?depuis=<?php echo $page['adresse']; ?>" title="Se créer un compte Ant" class="petiteoption optiondossier option icon-user-plus" >
|
|
Créer un compte
|
|
</a>
|
|
<?php } ?>
|
|
|
|
<div class="nomdossier">
|
|
La cave à l'info-rmatique
|
|
</div>
|
|
<a href="cave.module.php" title="Voir la liste des modules que je vous recommande" class="optiondossier petiteoption premieroptiondossier option icon-puzzle">
|
|
Modules
|
|
</a>
|
|
<a href="cave.navigateur.php" title="Voir la liste des navigateurs web" class="optiondossier petiteoption option icon-network">
|
|
Navigateurs web
|
|
</a>
|
|
<a href="cave.mdr.php" title="Voir la liste des moteurs de recherche" class="optiondossier petiteoption option icon-search-8">
|
|
Moteurs de recherche
|
|
</a>
|
|
<a href="cave.os.php" title="Voir la liste des systèmes d'exploitation" class="optiondossier petiteoption option icon-cogs">
|
|
Systèmes d'exploitation
|
|
</a>
|
|
<a href="cave.definition.php" title="Voir des définitions simples concernent internet et l'informatique" class="optiondossier petiteoption option icon-quote">
|
|
Définitions
|
|
</a>
|
|
</div>
|
|
<a href="antmusique.php" title="Écouter les AntMusiques" class="option icon-music">
|
|
AntMusiques
|
|
</a>
|
|
<a href="monnavigateur.php" title="Voir des informations en rapport avec mon navigateur Web" class="option icon-info-circled">
|
|
Mon navigateur
|
|
</a>
|
|
<a href="aleatoire.php" title="Générer un évènement aléatoirement" class="option icon-shuffle">
|
|
Générateur aléatoire
|
|
</a>
|
|
<a href="https://nuant.antopie.org/" title="Accéder à NuAnt, le nuage Ant" class="option icon-cloud" >
|
|
NuAnt
|
|
</a>
|
|
<a href="2048/" title="Jouer au 2048 en ligne" class="option icon-gamepad" >
|
|
2048
|
|
</a>
|
|
|
|
<a href="apropos.php" title="À propos du site" class="option icon-code">
|
|
À propos
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
<div class="pub-carree-bloc">
|
|
|
|
<div class="pub-carree">
|
|
<script src="sense3/sense3.js" data-sense3="300x250;adblock,advertising,amazon,apple,browser,chrome,degooglisons,elementary,encyclopedia,facebook,firefox,framabookin,gafam,generic,google,linux,mac,mageia,microsoft,mozilla,opera,referrer,safari,social,system,twitter,ubuntu,wikipedia,windows,peertube;#ffffff,#ff0000,#000000,#3783ff,#00ddff,#FFFFFF"></script>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<br/>
|
|
|
|
<span class="in92pack">J'aime les <a href="licenses/aboutant.html" class="li192pack">trains</a>.</span>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="texte">
|
|
<button id="bouttonmenu" onClick="asideswipe()">Afficher/masquer le menu</button>
|
|
<script src="js/menu.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php } $reponse->closeCursor(); ?>
|
|
|
|
|
|
<?php } ?>
|