manage bots

This commit is contained in:
Gnieark 2016-06-09 15:16:10 +02:00
parent d578d3bfaf
commit bb3ca4e18a
3 changed files with 16 additions and 2 deletions

View File

@ -192,6 +192,18 @@ if(isset($_GET['arena'])){
$cssAdditionalScript="";
$jsAdditionalScript="";
break;
case "ValidateEditBot":
$siteTitle="Your bot is changed";
$siteDescription="bots arena ";
$permitIndex=false;
$mainSectionScript="../src/validateEditBot.php";
$asideSectionContent=''; //to do
$cssAdditionalScript="";
$jsAdditionalScript="";
break;
default:
error(404,"Not found");
break;

View File

@ -175,7 +175,7 @@ switch($_POST['act']){
$mail->setFrom($smtpParams['username'], 'Bots Arena');
$mail->Subject = 'BotsArena';
$mail->addAddress($_POST['email']);
$mail->Body = $lang['E_MAIL_EDIT_BOT']."\n".$siteParam['BASEURL'].'p/editBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE'];
$mail->Body = $lang['E_MAIL_EDIT_BOT']."\n".$siteParam['BASEURL'].'p/ValidateEditBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE'];
if (!$mail->send()) {
error(500,"Mailer Error: " . $mail->ErrorInfo);
} else {

2
src/validateEditBot.php Normal file
View File

@ -0,0 +1,2 @@
<?php
echo "<h1>PLOP</h1>";