2018-08-27 16:00:21 +02:00
< ? 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>
2018-08-27 18:01:25 +02:00
< link type = " text/css " rel = " stylesheet " href = " css/main.css " />
< link type = " text/css " rel = " stylesheet " href = " fontello/css/fontello.css " />
2018-08-27 16:00:21 +02:00
< 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 " />
2018-09-08 16:46:45 +02:00
< meta property = " og:image " content = " https://antopie.org/web/media/logo/antorigine.png " />
< meta property = " og:image:secure_url " content = " https://antopie.org/web/media/logo/antorigine.png " />
2018-08-27 16:00:21 +02:00
< 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'] ; ?> " />
2018-09-08 16:46:45 +02:00
<!-- Début du code Matomo -->
<!-- Code Javascript Matomo si activé -->
< script type = " text/javascript " >
var _paq = _paq || [];
_paq . push ([ function () {
var self = this ;
function getOriginalVisitorCookieTimeout () {
var now = new Date (),
nowTs = Math . round ( now . getTime () / 1000 ),
visitorInfo = self . getVisitorInfo ();
var createTs = parseInt ( visitorInfo [ 2 ]);
var cookieTimeout = 33696000 ; // 13 mois en secondes
var originalTimeout = createTs + cookieTimeout -
nowTs ;
return originalTimeout ;
}
this . setVisitorCookieTimeout ( getOriginalVisitorCookieTimeout () );
}]);
_paq . push ([ 'trackPageView' ]);
_paq . push ([ 'enableLinkTracking' ]);
( function () {
var u = " //matomo.antopie.org/ " ;
_paq . push ([ 'setTrackerUrl' , u + 'piwik.php' ]);
_paq . push ([ 'setSiteId' , '1' ]);
var d = document , g = d . createElement ( 'script' ), s = d . getElementsByTagName ( 'script' )[ 0 ];
g . type = 'text/javascript' ; g . async = true ; g . defer = true ; g . src = u + 'piwik.js' ; s . parentNode . insertBefore ( g , s );
})();
</ script >
<!-- Image Matomo si JS désactivé -->
< noscript >
< img src = " https://matomo.antopie.org/piwik.php?idsite=1&rec=1&action_name=<?php echo $page['titre'] ; ?> " style = " border:0 " alt = " " />
</ noscript >
<!-- Fin du code Matomo -->
2018-08-27 16:00:21 +02:00
</ 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 : ?>
2018-09-08 16:46:45 +02:00
100 % indépendAnt
2018-08-27 16:00:21 +02:00
< ? 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 >
2018-08-30 15:57:37 +02:00
< a href = " commentaire.php " title = " Lire/Envoyer des commentaires " class = " optiondossier option icon-comment " >
2018-08-27 16:00:21 +02:00
Espace commentaire
</ a >
2018-08-30 15:57:37 +02:00
< a href = " deconnexion.php?depuis=<?php echo $page['adresse'] ; ?> " title = " Cliquez ici pour vous déconnecter " class = " petiteoption optiondossier option icon-user-times " >
2018-08-27 16:00:21 +02:00
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 >
2018-09-22 10:57:11 +02:00
< a href = " https://jirafourmie.antopie.org/ " title = " Accéder à Jirafourmie, un service de téléversement de fichiers " class = " option icon-upload-cloud " >
Jirafourmie
</ a >
2018-08-27 16:00:21 +02:00
< 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 />
2018-08-27 18:01:25 +02:00
< span class = " in92pack " > J ' aime les < a href = " licenses/aboutant.html " class = " li192pack " > trains </ a >.</ span >
2018-08-27 16:00:21 +02:00
</ div >
< div class = " texte " >
< button id = " bouttonmenu " onClick = " asideswipe() " > Afficher / masquer le menu </ button >
< script src = " js/menu.js " ></ script >
< ? php } $reponse -> closeCursor (); ?>
< ? php } ?>