From 82e40e0ccc5ecb5c80de9fee44014fe7d8eb6cd0 Mon Sep 17 00:00:00 2001 From: alexichi Date: Wed, 20 Apr 2016 12:16:30 +0200 Subject: Add main PHP script --- craftmine.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 craftmine.php (limited to 'craftmine.php') diff --git a/craftmine.php b/craftmine.php new file mode 100644 index 0000000..41f9580 --- /dev/null +++ b/craftmine.php @@ -0,0 +1,29 @@ +"; + echo "
  • op: l'operation a executer ('inc', 'dec')
  • "; + echo "
  • pos: la position du hero dans la liste
  • "; + echo ""; + echo "
    "; + echo "La requete aura ete executee avec succes lorsque la page retournera un code 200"; + echo "
    Parametres POST recu: "; + var_dump($_POST); + echo "
    Parametres GET recu: "; + var_dump($_GET); + exit(); +} +if (!isset($_POST["op"])) { + reportBadRequest(); +} + + + +?> -- cgit v1.2.3-70-g09d2