manage bots
parent
31c2338a84
commit
62e22b2287
@ -1,2 +1,21 @@
|
||||
<?php
|
||||
echo "<h1>PLOP</h1>";
|
||||
$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>
|
Loading…
Reference in New Issue