-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6322f8f
commit ffb3742
Showing
16 changed files
with
700 additions
and
700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
1.1 | ||
- Modification des apparences (formulaire) | ||
- Ajout menu en haut avec une administration | ||
- Ajout d'un mod permettant l'ajout des phalanges aussi ;) | ||
- Modification du code du fichier recycleurs.php, plus rapide plus efficace ;) | ||
1.0a | ||
- Modification des apparences (tableau + formulaire) | ||
- Le formulaire n'a plus besoin d'être remplit avec le nom ig, celui de l'ogspy est inséré autamatiquement | ||
- Ajout de la date à laquel l'envoie a été fait | ||
- Modification du numéro de version ( ce sont les bons cette fois ci :p) | ||
- Modification du fichier install : ATTENTION nouvelles tables smile | ||
- Ajout fichier uninstall.php | ||
- Petite modification bénine smile | ||
1.0 | ||
1.1 | ||
- Modification des apparences (formulaire) | ||
- Ajout menu en haut avec une administration | ||
- Ajout d'un mod permettant l'ajout des phalanges aussi ;) | ||
- Modification du code du fichier recycleurs.php, plus rapide plus efficace ;) | ||
|
||
|
||
1.0a | ||
- Modification des apparences (tableau + formulaire) | ||
- Le formulaire n'a plus besoin d'être remplit avec le nom ig, celui de l'ogspy est inséré autamatiquement | ||
- Ajout de la date à laquel l'envoie a été fait | ||
- Modification du numéro de version ( ce sont les bons cette fois ci :p) | ||
- Modification du fichier install : ATTENTION nouvelles tables smile | ||
- Ajout fichier uninstall.php | ||
- Petite modification bénine smile | ||
|
||
1.0 | ||
- Version initiale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Bonjour, | ||
ceci est un module d'ogspy permettant de voir auxquels coordonnées | ||
sont disposés les recycleurs, phalanges des personnes utilisant ogspy. | ||
Simple d'utilisation grâce au menu, il y a une surface administration | ||
dans laquelle on peut supprimer toutes les données en une seule fois. | ||
D'autre fonctionnalités seront ajoutés au fur et à mesure :) | ||
DeusIrae > OgsTeam > GoldzoneWeb | ||
Contact : | ||
MP Forum : DeusIrae | ||
Merci d'avance. | ||
Bonjour, | ||
ceci est un module d'ogspy permettant de voir auxquels coordonnées | ||
sont disposés les recycleurs, phalanges des personnes utilisant ogspy. | ||
|
||
Simple d'utilisation grâce au menu, il y a une surface administration | ||
dans laquelle on peut supprimer toutes les données en une seule fois. | ||
D'autre fonctionnalités seront ajoutés au fur et à mesure :) | ||
|
||
DeusIrae > OgsTeam > GoldzoneWeb | ||
|
||
Contact : | ||
|
||
MP Forum : DeusIrae | ||
Merci d'avance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
<?php | ||
if (!defined('IN_SPYOGAME')) { | ||
die("Hacking attempt"); | ||
} | ||
|
||
if ($user_data["user_admin"] != 1 && $user_data["user_coadmin"] != 1) { | ||
redirection("index.php?action=message&id_message=forbidden&info"); | ||
} | ||
|
||
?> | ||
<form method="POST" action="index.php?action=recycleurs&sub_action=set_recy_limit"> | ||
<table align="center"> | ||
<tr> | ||
<td> | ||
<table width="200" style="border:2px #003399 solid;" cellpadding="3"> | ||
|
||
<td align="center" class="c" colspan="2">Flotte minimale de recycleurs à afficher</td> | ||
<tr> | ||
<th align="center"> | ||
Nombre: <input type="text" name="low_limit" value="<?php echo mod_get_option('recy_limit');?>"><br> | ||
</tr> | ||
<th align="center" colspan="2"> | ||
<input type="submit" value="Envoi"> | ||
</th> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
<br> | ||
<form method="POST" action="index.php?action=recycleurs&sub_action=raz"> | ||
<table align="center"> | ||
<tr> | ||
<td> | ||
<table width="200" style="border:2px #003399 solid;" cellpadding="3"> | ||
|
||
<td align="center" class="c" colspan="2">Remise à Zéro des tables ?</td> | ||
</tr> | ||
<tr> | ||
<th align="center" colspan="2"> | ||
<input type="submit" value="Effacer"> | ||
</th> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
<br> | ||
|
||
|
||
|
||
<?php | ||
if (!defined('IN_SPYOGAME')) { | ||
die("Hacking attempt"); | ||
} | ||
|
||
if ($user_data["user_admin"] != 1 && $user_data["user_coadmin"] != 1) { | ||
redirection("index.php?action=message&id_message=forbidden&info"); | ||
} | ||
|
||
?> | ||
<form method="POST" action="index.php?action=recycleurs&sub_action=set_recy_limit"> | ||
<table align="center"> | ||
<tr> | ||
<td> | ||
<table width="200" style="border:2px #003399 solid;" cellpadding="3"> | ||
|
||
<td align="center" class="c" colspan="2">Flotte minimale de recycleurs à afficher</td> | ||
<tr> | ||
<th align="center"> | ||
Nombre: <input type="text" name="low_limit" value="<?php echo mod_get_option('recy_limit');?>"><br> | ||
</tr> | ||
<th align="center" colspan="2"> | ||
<input type="submit" value="Envoi"> | ||
</th> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
<br> | ||
<form method="POST" action="index.php?action=recycleurs&sub_action=raz"> | ||
<table align="center"> | ||
<tr> | ||
<td> | ||
<table width="200" style="border:2px #003399 solid;" cellpadding="3"> | ||
|
||
<td align="center" class="c" colspan="2">Remise à Zéro des tables ?</td> | ||
</tr> | ||
<tr> | ||
<th align="center" colspan="2"> | ||
<input type="submit" value="Effacer"> | ||
</th> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
<br> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
<?php | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: Anthony | ||
* Date: 14/07/2016 | ||
* Time: 18:42 | ||
*/ | ||
|
||
if (!defined('IN_SPYOGAME')) die("Hacking attempt"); | ||
|
||
function add_phalanx($galaxie = "", $system = "", $position = "", $level = "", $xtense = false) | ||
{ | ||
global $db, $table_prefix, $user_data, $server_config; | ||
define("TABLE_PHALANGES", $table_prefix . "phalanges"); | ||
|
||
if ($position < 1) | ||
$position = "1"; | ||
elseif ($position > 15) | ||
$position = "15"; | ||
|
||
$arrondi_type = 0; | ||
$phalanx_range = pow($level, 2) - 1; | ||
$system_lower_range = $system - $phalanx_range; | ||
if ($system_lower_range < 1) { | ||
$system_lower_range = $system_lower_range + $server_config['num_of_systems']; | ||
$arrondi_type = 1; | ||
}; //Partie négative : 1:490 -> 1:5 | ||
$system_higher_range = $system + $phalanx_range; | ||
if ($system_higher_range > $server_config['num_of_systems']) { | ||
$system_higher_range = $system_higher_range - $server_config['num_of_systems']; | ||
$arrondi_type = 2; | ||
}; | ||
|
||
$request = "SELECT * from " . TABLE_PHALANGES . " WHERE `galaxie`=" . $galaxie . " AND systeme=" . $system . " AND position='" . $position . "'"; | ||
|
||
if ($db->sql_numrows($db->sql_query($request)) != 0) { | ||
$query = "UPDATE " . TABLE_PHALANGES . " SET `systemea`= '" . $system_higher_range . "', `systemep`= '" . $system_lower_range . "', `time` = '" . time() . "' WHERE `galaxie`= '" . $galaxie . "' AND `systeme`='" . $system . "' AND `position` = '" . $position . "'"; | ||
} else { | ||
$query = "INSERT INTO " . TABLE_PHALANGES . "(`user_name` , `galaxie` , `systeme` , `position` , `systemea` , `systemep` , `time`) VALUES ('" . $user_data['user_name'] . "', '" . $galaxie . "', '" . $system . "', '" . $position . "', '" . $system_higher_range . "', '" . $system_lower_range . "', " . time() . ")"; | ||
} | ||
$db->sql_query($query); | ||
|
||
if ($xtense != true) | ||
redirection("index.php?action=recycleurs&sub_action=phalanges"); | ||
} | ||
|
||
function del_phalanx($id = "") | ||
{ | ||
global $db, $table_prefix; | ||
|
||
// on écrit la requête sql | ||
$query = "DELETE FROM " . $table_prefix . "phalanges" . " where id= '$id'"; | ||
$db->sql_query($query); | ||
|
||
redirection("index.php?action=recycleurs&sub_action=phalanges"); | ||
} | ||
|
||
function reset_phalanx_table() | ||
{ | ||
global $db, $table_prefix; | ||
|
||
$query = "DELETE FROM " . $table_prefix . "phalanges"; | ||
$db->sql_query($query); | ||
} | ||
<?php | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: Anthony | ||
* Date: 14/07/2016 | ||
* Time: 18:42 | ||
*/ | ||
|
||
if (!defined('IN_SPYOGAME')) die("Hacking attempt"); | ||
|
||
function add_phalanx($galaxie = "", $system = "", $position = "", $level = "", $xtense = false) | ||
{ | ||
global $db, $table_prefix, $user_data, $server_config; | ||
define("TABLE_PHALANGES", $table_prefix . "phalanges"); | ||
|
||
if ($position < 1) | ||
$position = "1"; | ||
elseif ($position > 15) | ||
$position = "15"; | ||
|
||
$arrondi_type = 0; | ||
$phalanx_range = pow($level, 2) - 1; | ||
$system_lower_range = $system - $phalanx_range; | ||
if ($system_lower_range < 1) { | ||
$system_lower_range = $system_lower_range + $server_config['num_of_systems']; | ||
$arrondi_type = 1; | ||
}; //Partie négative : 1:490 -> 1:5 | ||
$system_higher_range = $system + $phalanx_range; | ||
if ($system_higher_range > $server_config['num_of_systems']) { | ||
$system_higher_range = $system_higher_range - $server_config['num_of_systems']; | ||
$arrondi_type = 2; | ||
}; | ||
|
||
$request = "SELECT * from " . TABLE_PHALANGES . " WHERE `galaxie`=" . $galaxie . " AND systeme=" . $system . " AND position='" . $position . "'"; | ||
|
||
if ($db->sql_numrows($db->sql_query($request)) != 0) { | ||
$query = "UPDATE " . TABLE_PHALANGES . " SET `systemea`= '" . $system_higher_range . "', `systemep`= '" . $system_lower_range . "', `time` = '" . time() . "' WHERE `galaxie`= '" . $galaxie . "' AND `systeme`='" . $system . "' AND `position` = '" . $position . "'"; | ||
} else { | ||
$query = "INSERT INTO " . TABLE_PHALANGES . "(`user_name` , `galaxie` , `systeme` , `position` , `systemea` , `systemep` , `time`) VALUES ('" . $user_data['user_name'] . "', '" . $galaxie . "', '" . $system . "', '" . $position . "', '" . $system_higher_range . "', '" . $system_lower_range . "', " . time() . ")"; | ||
} | ||
$db->sql_query($query); | ||
|
||
if ($xtense != true) | ||
redirection("index.php?action=recycleurs&sub_action=phalanges"); | ||
} | ||
|
||
function del_phalanx($id = "") | ||
{ | ||
global $db, $table_prefix; | ||
|
||
// on écrit la requête sql | ||
$query = "DELETE FROM " . $table_prefix . "phalanges" . " where id= '$id'"; | ||
$db->sql_query($query); | ||
|
||
redirection("index.php?action=recycleurs&sub_action=phalanges"); | ||
} | ||
|
||
function reset_phalanx_table() | ||
{ | ||
global $db, $table_prefix; | ||
|
||
$query = "DELETE FROM " . $table_prefix . "phalanges"; | ||
$db->sql_query($query); | ||
} |
Oops, something went wrong.