act
This commit is contained in:
parent
129687f578
commit
b64ba24958
23
src/act.php
Normal file
23
src/act.php
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
switch($_POST['act']){
|
||||||
|
case "addBot":
|
||||||
|
//verifier les variables "botName""botGame""botURL""email""botDescription"
|
||||||
|
|
||||||
|
//botname -> il ne doit pas y avoir una autre bot avec les 8 même premiers caracteres
|
||||||
|
|
||||||
|
//botGame -> doi exister
|
||||||
|
|
||||||
|
//BotUrl (doit retourner un code 200)
|
||||||
|
|
||||||
|
//email => doit être valide
|
||||||
|
|
||||||
|
//BotDescription=> a voir
|
||||||
|
|
||||||
|
echo "TODO";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
error(500,"erf";)
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user