fix
This commit is contained in:
parent
50ed3335d6
commit
3265f66cd1
|
@ -58,7 +58,7 @@ switch($_POST['act']){
|
|||
'".$secret."'"
|
||||
);
|
||||
|
||||
include_once (__DIR__."/config.php");
|
||||
include (__DIR__."/config.php");
|
||||
require_once (__DIR__."/class.phpmailer.php");
|
||||
|
||||
|
||||
|
@ -75,8 +75,8 @@ switch($_POST['act']){
|
|||
$mail->Password = $smtpParams['pass'];
|
||||
$mail->setFrom($smtpParams['username'], 'First Last');
|
||||
$mail->Subject = 'BotsArena';
|
||||
$mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'<p><a href="'.BASEURL.'validateBot/'.$secret.'">'.BASEURL.'validateBot/'.$secret.'</a></p>'.$lang['E_MAIL_ADD_BOT_SIGNATURE_HTML'];
|
||||
$mail->AltBody = $lang['E_MAIL_ADD_BOT_INTRO']."\n".BASEURL.'validateBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE'];
|
||||
$mail->msgHTML=$lang['E_MAIL_ADD_BOT_INTRO_HTML'].'<p><a href="'.$siteParam['BASEURL'].'validateBot/'.$secret.'">'.$siteParam['BASEURL'].'validateBot/'.$secret.'</a></p>'.$lang['E_MAIL_ADD_BOT_SIGNATURE_HTML'];
|
||||
$mail->AltBody = $lang['E_MAIL_ADD_BOT_INTRO']."\n".$siteParam['BASEURL']."validateBot/'.$secret."\n".$lang['E_MAIL_ADD_BOT_SIGNATURE'];
|
||||
if (!$mail->send()) {
|
||||
echo "Mailer Error: " . $mail->ErrorInfo;
|
||||
} else {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
define("BASEURL", "http://botsarena.tinad.fr/");
|
||||
$siteParam=array("BASEURL" => "http://botsarena.tinad.fr/");
|
||||
$mysqlParams=array(
|
||||
'host' => 'localhost',
|
||||
'user' => '',
|
||||
|
|
Loading…
Reference in New Issue
Block a user