44 lines
2.3 KiB
PHP
Executable File
44 lines
2.3 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
include_once("mailer.v04.php");
|
|
include_once ($includePath. "/req/14-init.mailMsgList.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Fabrication du message
|
|
// -----------------------------------------------------
|
|
$sujet="Nouveau compte administrateur sur " .$_SESSION['nomSiteAff'];
|
|
$msgB='';
|
|
$msgB .="<br>";
|
|
$msgB="<img src='" .$mailImgPt[19]. "' alt='" .$mailAlt[19]. "' /><br><br>";
|
|
$msgB .="Chers administrateurs,<br>";
|
|
$msgB .="Une nouveau compte administrateur a été crée sur le site " .$_SESSION['nomSiteAff']. "<br>";
|
|
$msgB .="Voici les informations du compte :<br>";
|
|
$msgB .="Identifiant : $Login";
|
|
$msgB .='<br> --------------------------------- <br>';
|
|
$msgB .='<br><br><a href="' .$prodServer. '/admin/stats/frm.stats">Voir les statistiques</a><br><br>';
|
|
|
|
$msgB=stripslashes($msgB);
|
|
|
|
if (isset($debug[1]) && $debug[1] == '1' ) {
|
|
$usrSiteMsg .='<br>message_=' .$msgB. '<br>';
|
|
$usrSiteMsg .='mail compteCreate.php => $nbAdmin => ' .$nbAdmin;
|
|
}
|
|
|
|
// -----------------------------------------------------
|
|
// Pied de page
|
|
// -----------------------------------------------------
|
|
include ("./mails/pdpAdmin.php");
|
|
$msgB .=stripslashes($msgPdp);
|
|
$message_business = '<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>' .$sujet. '</title></head><body>' .$msgB. '<br></body></html>';
|
|
if (isset($debug[1]) && $debug[1] == '1' ) {echo 'message_business=' .$message_business. '<br>';}
|
|
|
|
// -----------------------------------------------------
|
|
// Envoi des mails pour chaque admin
|
|
// -----------------------------------------------------
|
|
if (empty($_SESSION['nbAdmin'])) include ($includePath. "/req/15-init.adminMsgList.php");
|
|
for ( $ijk=0 ; $ijk<$_SESSION['nbAdmin'] ; $ijk++) {
|
|
if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .= '<br>tableLibAdmin[' .$ijk. ']=' .$tableLibAdmin[$ijk]. ' | tableAdminSms[' .$ijk. ']=' .$tableAdminSms[$ijk];}
|
|
if ($lg=='') {$lg='FRA';}
|
|
$envMail = mailer(1, '','', 0, $_SESSION['smtpServer123'], $sujet, $message_business, $tableLibAdmin[$ijk],'', '', 0, $navMsg[10],$navMsg[23], 0, '', '', 'admin@123ventes.com', $_SESSION['from_mails'], '', $lg);
|
|
} //for nb admin
|
|
?>
|