Version 1.14a

This commit is contained in:
nemunaire 2020-11-15 16:12:32 +01:00
parent ba8f323879
commit dc48225dc9
1094 changed files with 189038 additions and 13875 deletions

1
htdocs/.onyx Normal file
View File

@ -0,0 +1 @@
C:\Users\Pierre-Olivier\Programmation\PHP\halo-battle\onyx2\load.php

View File

@ -62,7 +62,7 @@ if (isset($SESS) && isset($SESS->values['connected']) && $SESS->values['connecte
include("admin/inscription.php");
break;
case 'njoueur':
include("game/serveur/njoueur.php");
include("server/njoueur.php");
break;
case 'mail_mass':
include("admin/mail_mass.php");
@ -71,7 +71,7 @@ if (isset($SESS) && isset($SESS->values['connected']) && $SESS->values['connecte
include("admin/bdd.php");
break;
case 'proxy':
include("admin/proxy.php");
include("admin/proxy.php");
break;
}
}

View File

@ -1,13 +1,13 @@
<?php
//Définition de la constante anti-hacking
define("INDEX", 1);
define("INDEX", 2);
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");
require_once("donnees.php");
//On charge la session
$SESS = new Session();
@ -15,7 +15,7 @@ $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");
include_once("Class/user.php");
$user = new User($SESS->values['id']);
if (!empty($user->id_alliance))
{

View File

@ -39,7 +39,7 @@ $act['graph'] = unserialize($act['graph']);
for($i = 1; $i < 8; $i++){
if (!isset($act['graph'][(date('w')+$i)%7])) $values[] = 0;
else $values[] = ceil(pow($act['graph'][(date('w')+$i)%7], -0.1) * 2000)/10;
else $values[] = ceil(pow($act['graph'][(date('w')+$i)%7], -0.1) * 20000)/10;
}
for($i = 6; $i >= 0; $i--){

View File

@ -1,25 +1,23 @@
<?php
session_start();
if(!defined('INDEX')) define('INDEX', 1);
//include('../includes/common.php');
define('INDEX', 1);
//Inclusion de l'API Onyx
require_once(trim(file_get_contents('../.onyx')));
// On défini la configuration :
if(!IsSet($_GET['nbr_chiffres']) || $_GET['nbr_chiffres'] < 5) {
$nbr_chiffres = 7; // Nombre de chiffres qui formerons le nombre par défaut
}
else {
$nbr_chiffres = $_GET['nbr_chiffres']; // Si l'on met dans l'adresse un ?nbr_chiffres=X
}
$SESS = new Session();
//On défini la configuration
if(!isset($_GET['nbr_chiffres']) || $_GET['nbr_chiffres'] < 5)
$nbr_chiffres = mt_rand(7, 9); // Nombre de chiffres qui formerons le nombre par défaut
else
$nbr_chiffres = intval(gpc('nbr_chiffres')); // Si l'on met dans l'adresse un ?nbr_chiffres=X
// Là, on défini le header de la page pour la transformer en image
header ("Content-type: image/png");
// Là, on crée notre image
//Création de l'image à partir d'un fond
$_img = imagecreatefromgif('fond_verif_img.gif');
// On défini maintenant les couleurs
// Couleur de fond :
//$arriere_plan = imagecolorallocate($_img, 0, 0, 0); // Au cas où on utiliserai pas d'image de fond, on utilise cette couleur là.
// Autres couleurs :
//On définit une couleur de fond
//$arriere_plan = imagecolorallocate($_img, 0, 0, 0); // Au cas où on utiliserai pas d'image de fond, on utilise cette couleur là.
//On définit les autres couleurs
$couleur = mt_rand(0, 4);
if ($couleur == 0) $avant_plan = imagecolorallocate($_img, rand(250,225), rand(0,25), rand(0,25));
elseif ($couleur == 1) $avant_plan = imagecolorallocate($_img, rand(0,25), rand(250,225), rand(0,25));
@ -27,48 +25,34 @@ $couleur = mt_rand(0, 4);
elseif ($couleur == 3) $avant_plan = imagecolorallocate($_img, rand(0,25), rand(250,225), rand(250,225));
elseif ($couleur == 4) $avant_plan = imagecolorallocate($_img, rand(250,225), rand(0,25), rand(250,225));
elseif ($couleur == 5) $avant_plan = imagecolorallocate($_img, rand(250,225), rand(250,225), rand(0,25));
else $avant_plan = imagecolorallocate($_img, rand(200,225), rand(200,225), rand(200,225)); // Couleur des chiffres
else $avant_plan = imagecolorallocate($_img, rand(200,225), rand(200,225), rand(200,225));
$i = 0;
while($i < $nbr_chiffres) {
$chiffre = mt_rand(1, 18); // On génère le nombre aléatoire
if ($chiffre == 10) $chiffre="a";
elseif ($chiffre == 2) $chiffre="w";
elseif ($chiffre == 11) $chiffre="t";
elseif ($chiffre == 12) $chiffre="c";
elseif ($chiffre == 13) $chiffre="n";
elseif ($chiffre == 14) $chiffre="p"; // e avec l'écriture Google
elseif ($chiffre == 15) $chiffre="f";
elseif ($chiffre == 16) $chiffre="y";
elseif ($chiffre == 17) $chiffre="m";
elseif ($chiffre == 18) $chiffre="k";
$chiffres[$i] = $chiffre;
$i++;
}
$nombre = null;
// On explore le tableau $chiffres afin d'y afficher toutes les entrées qu'y s'y trouvent
foreach ($chiffres as $caractere) {
$nombre .= $caractere;
//Définition de la liste des caractères
$caracteres = "2345678azertypsdfhjkmwxcbn?";
$nb_caracteres = strlen($caracteres)-1;
$captcha = "";
for($i = 0; $i < $nbr_chiffres; $i++)
{
$alea = mt_rand(0, $nb_caracteres);
$captcha .= $caracteres[$alea];
}
$_SESSION['aleat_nbr'] = strtolower($nombre);
//$sess->values['aleatnbr'] = strtolower($nombre);
//$sess->put();
$SESS->values['_captcha'] = strtolower($captcha);
$SESS->put();
// On détruit les variables inutiles :
unset($chiffre);
unset($i);
unset($caractere);
unset($chiffres);
//On détruit les variables inutiles
unset($chiffre, $i, $caractere, $nbr_chiffres, $nb_caracteres, $caracteres);
//$fontfile = mt_rand(0, 2).'.TTF';
// Free
//$fontfile = '/mnt/152/free.fr/b/c/www.msnparadize/util/ab/1.TTF';
//On définit la police
//$fontfile = './'.mt_rand(0, 2).'.TTF';
$fontfile = './2.TTF';
//imagestring($_img, 5, 18, 8, $nombre, $avant_plan);
if ($fontfile == './0.TTF') ImageTTFText($_img, 18, 2, 0, 23, $avant_plan, $fontfile, strtoupper($nombre));
else ImageTTFText($_img, 18.5, 2, rand(0,6), 23, $avant_plan, $fontfile, $nombre);
if ($fontfile == './0.TTF')
ImageTTFText($_img, 20, 2, 0, 23, $avant_plan, $fontfile, strtoupper($captcha));
else
ImageTTFText($_img, 20, mt_rand(1,5), rand(1,7), 30, $avant_plan, $fontfile, $captcha);
imagepng($_img);
?>

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

1
htdocs/css/csnu/csnu.css Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

BIN
htdocs/css/csnu/img/msg.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

BIN
htdocs/css/csnu/img/ok.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

BIN
htdocs/css/csnu/img/rss.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,77 @@
<!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.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

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