2016-06-09 15:16:10 +02:00
|
|
|
<?php
|
2016-06-09 16:21:01 +02:00
|
|
|
$rs=mysqli_query($lnMysql,"SELECT 1 FROM bots_modifs WHERE validate_secret='".mysqli_real_escape_string($lnMysql,$_GET['params'])."';");
|
|
|
|
if(!$r=mysqli_fetch_row($rs)){
|
|
|
|
error(404,"Page doesn't exist");
|
|
|
|
die;
|
|
|
|
}
|
|
|
|
|
|
|
|
mysqli_query(
|
|
|
|
"UPDATE bots, bots_modifs
|
|
|
|
SET bots.name = bots_modifs.name
|
|
|
|
, bots.game = bots_modifs.game
|
|
|
|
, bots.url = bots_modifs.url
|
|
|
|
, bots.description = bots_modifs.description
|
|
|
|
, bots.unclean_description = bots_modifs.unclean_description
|
|
|
|
WHERE
|
|
|
|
bots.id=bots_modifs.real_id
|
|
|
|
AND bots_modifs.validate_secret='".mysqli_real_escape_string($lnMysql,$_GET['params'])."';");
|
|
|
|
|
|
|
|
?
|
|
|
|
<h2>Thanks!</h2>
|
|
|
|
<p> Votre bot est validé, merci d'avoir donné à manger à Bots'Arena</p>
|