Version 1.14a
|
@ -0,0 +1 @@
|
|||
C:\Users\Pierre-Olivier\Programmation\PHP\halo-battle\onyx2\load.php
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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--){
|
||||
|
|
|
@ -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);
|
||||
?>
|
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 235 B |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 407 B |
After Width: | Height: | Size: 192 B |
After Width: | Height: | Size: 289 B |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 88 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 577 B |
After Width: | Height: | Size: 155 B |
After Width: | Height: | Size: 369 B |
After Width: | Height: | Size: 632 B |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 235 B |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 399 B |
After Width: | Height: | Size: 192 B |
After Width: | Height: | Size: 286 B |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 88 B |
After Width: | Height: | Size: 392 B |
After Width: | Height: | Size: 407 B |
After Width: | Height: | Size: 578 B |
After Width: | Height: | Size: 155 B |
After Width: | Height: | Size: 419 B |
After Width: | Height: | Size: 372 B |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 588 B |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 20 KiB |
|
@ -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>
|
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 48 KiB |