Version 1.13a

This commit is contained in:
nemunaire 2020-11-15 16:12:30 +01:00
commit ba8f323879
1634 changed files with 10080 additions and 213021 deletions

View file

@ -1,7 +0,0 @@
Options -Indexes
ErrorDocument 403 403.html
ErrorDocument 404 404.html
<Files lectlog.php>
</Files>

View file

@ -1 +0,0 @@
/var/www/halo-battle/onyx2/load.php

View file

@ -7,102 +7,119 @@ require_once(trim(file_get_contents('./.onyx')));
require_once("common.php"); //Chargement de tout le nécessaire pour le jeu
//On vérifie si le client est connecté ou non sur le site
if (isset($SESS) && isset($SESS->values['connected']) && $SESS->values['connected'] && !empty($SESS->values['id']) && !empty($SESS->level) && $SESS->level >= 3 && !empty($SESS->values['idPlan']))
if (isset($SESS) && isset($SESS->values['connected']) && $SESS->values['connected'] && !empty($SESS->values['id']) && !empty($SESS->level) && $SESS->level >= 3)
{
function infoPlan($galaxie, $ss, $pos, $info)
{
function infoPlan($galaxie, $ss, $pos, $info)
{
$base = new BDD();
$resultat = $base->unique_query("SELECT * FROM planete WHERE galaxie = '$galaxie' AND ss = '$ss' AND position= '$pos';");
$base->deconnexion();
return $resultat[$info];
}
//Passage des valeurs générales au template
$titre = "Administration";
$template->assign('page', 'admin');
$template->assign('menu', $VAR['menu']);
$template->assign('premiere_page', $VAR['first_page']);
$template->assign('race', $SESS->values['race']);
$template->assign("tpsdejeu", "un certain temps");
if (!empty($SESS->values['souscontrole']))
{
$pagea = 'erreur';
$SESS->values['id'] = $SESS->values['souscontrole'][0];
$SESS->values['idPlan'] = $SESS->values['souscontrole'][1];
$SESS->values['souscontrole'] = null;
$SESS->put();
$template->assign('message', 'Droits rétablis avec succès !<br />');
}
else
{
if (!isset($_GET['p']))
$_GET['p'] = '';
if ($SESS->level >= 5)
{
switch($_GET['p'])
{
case 'djoueurs':
include("admin/supprimer_joueur.php");
break;
case 'bandeau':
include("admin/bandeau.php");
break;
case 'demarrage':
include("admin/demarrage.php");
break;
case 'version':
include("admin/version.php");
break;
case 'inscription':
include("admin/inscription.php");
break;
}
}
if (empty($pagea))
{
switch($_GET['p'])
{
case 'courrier':
include("admin/mail.php");
break;
case 'vip':
include("admin/ip.php");
break;
case 'vflottes':
include("admin/flottes.php");
break;
case 'vplanetes':
include("admin/planete.php");
break;
case 'vjoueurs':
include("admin/joueur.php");
break;
case 'valliances':
include("admin/alliance.php");
break;
case 'vrapports':
include("admin/rapport.php");
break;
case 'sjoueurs':
include("admin/sanction_joueur.php");
break;
case 'cjoueurs':
include("admin/prendre_controle.php");
break;
default:
include("admin/accueil.php");
break;
}
}
}
$template->assign('titre', $titre);
$template->assign('pagea', $pagea);
$template->display('admin/'.$pagea.'.tpl');
$base = new BDD();
$resultat = $base->unique_query("SELECT * FROM planete WHERE galaxie = '$galaxie' AND ss = '$ss' AND position= '$pos';");
$base->deconnexion();
return $resultat[$info];
}
//Passage des valeurs générales au template
$titre = "Administration";
$template->assign('page', 'admin');
$template->assign('menu', $VAR['menu']);
$template->assign('premiere_page', $VAR['first_page']);
$template->assign('race', $SESS->values['race']);
$template->assign("tpsdejeu", "un certain temps");
if (!empty($SESS->values['souscontrole']))
{
$pagea = 'erreur';
$SESS->values['id'] = $SESS->values['souscontrole'][0];
$SESS->values['idPlan'] = $SESS->values['souscontrole'][1];
$SESS->values['souscontrole'] = null;
$SESS->put();
$template->assign('message', 'Droits rétablis avec succès !<br />');
}
else
{
$id_user = $SESS->values['id'];
if (!isset($_GET['p']))
$_GET['p'] = '';
if ($SESS->level >= 5)
{
switch($_GET['p'])
{
case 'djoueurs':
include("admin/supprimer_joueur.php");
break;
case 'bandeau':
include("admin/bandeau.php");
break;
case 'demarrage':
include("admin/demarrage.php");
break;
case 'version':
include("admin/version.php");
break;
case 'inscription':
include("admin/inscription.php");
break;
case 'njoueur':
include("game/serveur/njoueur.php");
break;
case 'mail_mass':
include("admin/mail_mass.php");
break;
case 'bdd':
include("admin/bdd.php");
break;
case 'proxy':
include("admin/proxy.php");
break;
}
}
if (empty($pagea))
{
switch($_GET['p'])
{
case 'courrier':
include("admin/mail.php");
break;
case 'vip':
include("admin/ip.php");
break;
case 'vflottes':
include("admin/flottes.php");
break;
case 'vplanetes':
include("admin/planete.php");
break;
case 'vjoueurs':
include("admin/joueur.php");
break;
case 'valliances':
include("admin/alliance.php");
break;
case 'snalliances':
include("admin/snalliances.php");
break;
case 'vrapports':
include("admin/rapport.php");
break;
case 'sjoueurs':
include("admin/sanction_joueur.php");
break;
case 'cjoueurs':
include("admin/prendre_controle.php");
break;
default:
include("admin/accueil.php");
break;
}
}
}
$template->assign('titre', $titre);
$template->assign('pagea', $pagea);
$template->display('admin/'.$pagea.'.tpl');
}
else
header('Location: '.$VAR['first_page']);
?>
?>

48
htdocs/ajax_chat.php Normal file
View file

@ -0,0 +1,48 @@
<?php
//Définition de la constante anti-hacking
define("INDEX", 1);
define("DEBUG", false);
//Inclusion de l'API Onyx
require_once(trim(file_get_contents('./.onyx')));
require_once("function.php"); //Inclusion des fonctions principales
require_once("tables.php"); //Inclusion des noms des tables de base de données correspondant à l'architecture du serveur
require_once("game/vars.php");
//On charge la session
$SESS = new Session();
//On vérifie si le client est connecté sur le site
if (isset($SESS) && isset($SESS->values['connected']) && $SESS->values['connected'] && !empty($SESS->values['id']) && !empty($SESS->values['race']) && !empty($SESS->level) && isset($SESS->values['idPlan']) && isset($SESS->values['idAsteroide']))
{
include_once("game/Class/class.user.php");
$user = new User($SESS->values['id']);
if (!empty($user->id_alliance))
{
if (isset($_POST['message']))
{
$message = htmlentities(trim(gpc("message", "post")));
if (!empty($message) || $message == "0")
{
$bdd = new BDD();
$bdd->escape($message);
$bdd->query("INSERT INTO $table_alliances_chat (id_alliance, emetteur, timestamp, message) VALUES (".$user->id_alliance.", ".$user->id_user.", ".time().", '$message');");
$bdd->deconnexion();
}
}
else
{
if (!empty($_GET['time']))
$time = intval(gpc("time"))." ORDER BY timestamp DESC";
else
$time = "0 ORDER BY timestamp DESC LIMIT 15";
$bdd = new BDD();
$messages = $bdd->query("SELECT C.*, U.pseudo FROM $table_alliances_chat C INNER JOIN $table_user U ON U.id = C.emetteur WHERE C.id_alliance = ".$user->id_alliance." AND C.timestamp > $time;");
$bdd->deconnexion();
header("X-JSON: ".json_encode($messages));
}
}
}
?>

View file

@ -1,30 +0,0 @@
<?php
//Définition de la constante anti-hacking
define("INDEX", 1);
//Inclusion de l'API Onyx
require_once(trim(file_get_contents('./.onyx')));
$race = "covenant";
require_once("common.php"); //Chargement de tout le nécessaire pour le jeu
include_once("game/vars.php");
/*
print '<var name="descriptions">'."\n";
foreach($nomterde as $key => $lign)
{
print "\t".'<var name="'.$key.'">'.utf8_encode(html_entity_decode($lign)).'</var>'."\n";
}
print '</var>';
*/
print '<var name="noms_sing">'."\n";
foreach ($technolo as $i => $var)
{
/*print "\t".'<var name="'.$i.'">'."\n";
foreach ($var as $k => $key)
{*/
print "\t\t".'<var name="'.$i.'">'.utf8_encode(html_entity_decode($var)).'</var>'."\n";
/*}
print "\t</var>\n";*/
}
print '</var>';
?>

View file

@ -1,31 +0,0 @@
<?php
if (!defined("__DIR__"))
define("__DIR__", dirname(__FILE__));
$xml = new DOMDocument('1.0', 'UTF-8');
$xml->load("/var/www/halo-battle/onyx2/config/root.xml");
$xml->formatOutput = true;
$xml_configs = $xml->createElement("configs");
$xml_configs->setAttribute("active", true);
$xml_configs->setAttribute("root", __DIR__.'/');
$xml_configs->setAttribute("cache", true);
$xml_config = $xml->createElement("config");
$xml_config->setAttribute("match", '*');
$xml_var = $xml->createElement("var", "Béta #1");
$xml_var->setAttribute("name", 'serveur_name');
$xml_config->appendChild($xml_var);
$xml_var = $xml->createElement("var", "Béta #1");
$xml_var->setAttribute("name", 'serveur_name');
$xml_config->appendChild($xml_var);
$xml_configs->appendChild($xml_config);
$xml->appendChild($xml_configs);
print $xml->saveXML();
?>

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View file

@ -1,77 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="fr" />
<title> ::Halo-Battle:: - Erreur</title>
<style type="text/css">
html
{
font-size: 100%;
}
body
{
background-color: #000000;
}
div
{
background-color: #080819;
text-align: center;
margin: 10% auto 0 auto;
padding: 25px 0;
width: 80%;
border-top: #FFFFFF dotted 1px;
border-left: #FFFFFF dotted 1px;
border-right: #FFFFFF solid 3px;
border-bottom: #FFFFFF solid 3px;
}
h1
{
font-size: 3em;
color: #FFFFFF;
}
h2
{
font-size: 2em;
color: #FFFFFF;
}
h3
{
font-size: 1.5em;
color: #FFFFFF;
font-weight: normal;
}
a
{
position: absolute;
bottom: 20px;
right: 30px;
font-size: 0.8em;
display: block;
padding: 5px 10px;
background-color: #FFFFFF;
color: #000000;
text-decoration: underline;
font-weight: bold;
}
</style>
</head>
<body>
<div>
<h2>Erreur</h2>
<h1>403</h1>
<h3>Refus de traitement de la requête.<br /><em>Forbidden.</em></h3>
</div>
<a href="/">HALO-BATTLE</a>
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés -->
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View file

@ -1,77 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="fr" />
<title> ::Halo-Battle:: - Erreur</title>
<style type="text/css">
html
{
font-size: 100%;
}
body
{
background-color: #000000;
}
div
{
background-color: #080819;
text-align: center;
margin: 10% auto 0 auto;
padding: 25px 0;
width: 80%;
border-top: #FFFFFF dotted 1px;
border-left: #FFFFFF dotted 1px;
border-right: #FFFFFF solid 3px;
border-bottom: #FFFFFF solid 3px;
}
h1
{
font-size: 3em;
color: #FFFFFF;
}
h2
{
font-size: 2em;
color: #FFFFFF;
}
h3
{
font-size: 1.5em;
color: #FFFFFF;
font-weight: normal;
}
a
{
position: absolute;
bottom: 20px;
right: 30px;
font-size: 0.8em;
display: block;
padding: 5px 10px;
background-color: #FFFFFF;
color: #000000;
text-decoration: underline;
font-weight: bold;
}
</style>
</head>
<body>
<div>
<h2>Erreur</h2>
<h1>403</h1>
<h3>Refus de traitement de la requête.<br /><em>Forbidden.</em></h3>
</div>
<a href="/">HALO-BATTLE</a>
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés -->
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

View file

@ -1,77 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="fr" />
<title> ::Halo-Battle:: - Erreur</title>
<style type="text/css">
html
{
font-size: 100%;
}
body
{
background-color: #000000;
}
div
{
background-color: #080819;
text-align: center;
margin: 10% auto 0 auto;
padding: 25px 0;
width: 80%;
border-top: #FFFFFF dotted 1px;
border-left: #FFFFFF dotted 1px;
border-right: #FFFFFF solid 3px;
border-bottom: #FFFFFF solid 3px;
}
h1
{
font-size: 3em;
color: #FFFFFF;
}
h2
{
font-size: 2em;
color: #FFFFFF;
}
h3
{
font-size: 1.5em;
color: #FFFFFF;
font-weight: normal;
}
a
{
position: absolute;
bottom: 20px;
right: 30px;
font-size: 0.8em;
display: block;
padding: 5px 10px;
background-color: #FFFFFF;
color: #000000;
text-decoration: underline;
font-weight: bold;
}
</style>
</head>
<body>
<div>
<h2>Erreur</h2>
<h1>403</h1>
<h3>Refus de traitement de la requête.<br /><em>Forbidden.</em></h3>
</div>
<a href="/">HALO-BATTLE</a>
<!-- \\******* By Phantom *******// Halo-Battle, Tous droits réservés -->
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show more