edit bots

This commit is contained in:
Gnieark 2015-12-27 13:03:45 +01:00
parent a64bbd22fe
commit f12207546e
3 changed files with 12 additions and 1 deletions

View File

@ -161,6 +161,15 @@ if(isset($_GET['arena'])){
$jsAdditionalScript=""; $jsAdditionalScript="";
break; break;
case "editBot":
$siteTitle="Modifier un bot";
$siteDescription="bots arena ";
$permitIndex=false;
$mainSectionScript="../src/editBot.php";
$asideSectionContent=''; //to do
$cssAdditionalScript="";
$jsAdditionalScript="";
break;
default: default:
error(404,"Not found"); error(404,"Not found");
break; break;

View File

@ -1,5 +1,6 @@
<article> <article>
<?php <?php
echo '<h2>A props de '.htmlentities($_GET['params']).'</h2><p>Inscrit le '.$theBot['date_inscription'].'</p><p>'.$theBot['description'].'</p>'; echo '<h2>A props de '.htmlentities($_GET['params']).'</h2><p>Inscrit le '.$theBot['date_inscription'].'</p><p>'.$theBot['description'].'</p>
<p><i><a href="/p/editBot/'.$theBot['id'].'">Si vous êtes le propriétaire de ce bot, vous pouvez le modifier</a></i></p>';
?> ?>
</article> </article>

1
src/editBot.php Normal file
View File

@ -0,0 +1 @@
<h2>EditBot</h2>