85 lines
2.8 KiB
PHP
85 lines
2.8 KiB
PHP
|
<?php
|
||
|
if(!defined('INDEX')) { header('Location: ./'); exit; }
|
||
|
|
||
|
require_once(_FCORE."kernel.php");
|
||
|
|
||
|
define('VERSION', $config['version']);
|
||
|
|
||
|
//Constante permettant de savoir si les attaques sont désactivées ou non
|
||
|
define("ATTAQUES", $config['attaques']);
|
||
|
//Définition des limites de la galaxie
|
||
|
define("MAX_AMAS", $config['nb_amas']);
|
||
|
define("MAX_SYSTEME", $config['nb_systeme']);
|
||
|
define("MAX_PLANETE", $config['nb_planete']);
|
||
|
|
||
|
require_once(_FCORE."hb_game/function.php");
|
||
|
require_once(_FCORE."hb_game/tables.php");
|
||
|
|
||
|
//On prépare le gestionnaire de templates
|
||
|
$template = new Template();
|
||
|
|
||
|
$template->assign('date', strftime("%A %d %B %Y %H:%M"));
|
||
|
$template->assign('datehb', str_replace('.', '', strftime("/%a %d %b %Y/%H%M %S")));
|
||
|
|
||
|
$template->assign('link', array_map("url", $config['link']));
|
||
|
$template->assign('menu', array_map("url", $config['menu']));
|
||
|
$template->assign('menua', array_map("url", $config['menuadmin']));
|
||
|
$template->assign('url_serveur', $_SERVER['HTTP_HOST']);
|
||
|
|
||
|
include_once(_FCORE."hb_game/fermerServeur.php");
|
||
|
|
||
|
//On démarre la session
|
||
|
$sess = new session();
|
||
|
$sess->load();
|
||
|
|
||
|
$nanite = 0;
|
||
|
|
||
|
$template->assign('pub', '<script type="text/javascript"><!--
|
||
|
google_ad_client = "pub-8183761828268957";
|
||
|
//468x60, date de création 20/11/07
|
||
|
google_ad_slot = "9088855275";
|
||
|
google_ad_width = 468;
|
||
|
google_ad_height = 60;
|
||
|
//--></script>
|
||
|
<script type="text/javascript"
|
||
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
||
|
</script><br />');
|
||
|
|
||
|
$template->assign('analyst', '<script type="text/javascript">
|
||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||
|
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
var pageTracker = _gat._getTracker("UA-3544473-3");
|
||
|
pageTracker._initData();
|
||
|
pageTracker._trackPageview();
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
<!--
|
||
|
xtnv = document; //parent.document or top.document or document
|
||
|
xtsd = "http://logi2";
|
||
|
xtsite = "58399";
|
||
|
xtn2 = "3"; // level 2 site
|
||
|
xtpage = ""; //page name (with the use of :: to create chapters)
|
||
|
xtdi = ""; //implication degree
|
||
|
//-->
|
||
|
</script>
|
||
|
<script type="text/javascript" src="http://www.monsite.fr/xtcore.js"></script>');
|
||
|
|
||
|
|
||
|
$bdd = new bdd();
|
||
|
$bdd->connexion();
|
||
|
|
||
|
$bdd->query("SELECT id FROM $table_user WHERE race = 'covenant';"); $nbcovie = $bdd->num_rows;
|
||
|
$bdd->query("SELECT id FROM $table_user WHERE race = 'humain';"); $nbhumain = $bdd->num_rows;
|
||
|
|
||
|
//Bandeau d'informations
|
||
|
$infos = $bdd->query("SELECT * FROM $table_infoshead");
|
||
|
|
||
|
$bdd->deconnexion();
|
||
|
|
||
|
//Affichage du header
|
||
|
$template->assign('infos',$infos);
|
||
|
$template->assign('nbinfos',$bdd->num_rows-1);
|
||
|
$template->assign('count',array('humains' => $nbhumain, 'covenants' => $nbcovie, 'serveurs' => 'cette'));
|
||
|
?>
|