can send post vars to framlework

This commit is contained in:
Gnieark 2015-11-30 22:39:56 +01:00
parent faaececcf1
commit 9c6e11c380
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,8 @@ if (isset($_POST['xd_check'])){
//call the good act.php
if(($currentArena <> "") && (file_exists("../src/arenas/".$currentArena."/act.php"))){
require_once("../src/arenas/".$currentArena."/act.php");
}else{
require_once("../src/act.php");
}
}
//title

View File

@ -5,6 +5,7 @@ echo $lang['SITE_DESCRIPTION'];?>
<article id="addBot">
<h2>Ajouter votre bot</h2>
<form method="POST" action="/">
<?php echo xd_check_input(0); ?>
<p><label for="botName">Nom de votre Bot: </label><input id="botName" type="text" name="botName" placeholder="votre pseudo par exemple"/></p>
<p><label for="botGame">Jeu du bot: </label>
<select id="botGame" name="botGame">