59 lines
2.2 KiB
PHP
Executable File
59 lines
2.2 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
if (empty($navMsg)) {$refresh='Oui';include ($includePath. '/req/05-init.navMsgList.php');$refresh='N';}
|
|
if (empty($clientMsg)) {$refresh='Oui';include ($includePath. '/req/06-init.cliMsgList.php');$refresh='N';}
|
|
if (empty($contactMsg)) {$refresh='Oui';include ($includePath. '/req/13-init.contactMsgList.php');$refresh='N';}
|
|
|
|
$validLogin='O';
|
|
|
|
// ---------------------------------------------------
|
|
// regarde si le mail est non vide
|
|
// ---------------------------------------------------
|
|
if (empty ($idMail) && $validLogin!='N') {
|
|
$usrSiteMsg .= '<span>' .$clientMsg[39]. '</span>';
|
|
$validLogin='N';
|
|
$usrSiteMsgClass='ko';
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// caractères dans mail
|
|
// ---------------------------------------------------
|
|
if ($idMail!='' && $validLogin!='N') {
|
|
$char =CheckValidName($idMail);
|
|
if (!empty ($char))
|
|
{$usrSiteMsg .= '<span class="msgCli">'.$mess1.' "'.$char.'" '.$mess2.' "' .$idMail. '"</span>';
|
|
$validLogin='N';
|
|
$usrSiteMsgClass='ko';}
|
|
|
|
$nbCar=5;
|
|
$longueur=mb_strlen($idMail);
|
|
if ($longueur < $nbCar && $validLogin!='N') {
|
|
$usrSiteMsg .= '<span class="msgCli" >' .$clientMsg[10].' '.$mess4.' '.$longueur.' '.$mess3.' "'.$idMail. '" '.$mess5.' '.$nbCar.'</span>';
|
|
$validLogin='N';
|
|
$usrSiteMsgClass='ko';
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// regarde si le mail a un @
|
|
// ---------------------------------------------------
|
|
$testMail=mb_strpos($idMail,'@');
|
|
// echo 'testM:' .$testMail;
|
|
if (empty($testMail) && $validLogin!='N') {
|
|
$usrSiteMsg .= '<span>' .$clientMsg[43]. ' : </span> <span class="msgCli">' .$idMail. '</span>';
|
|
$validLogin='N';
|
|
$usrSiteMsgClass='ko';
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// regarde si le mail a un '.' apres @
|
|
// ---------------------------------------------------
|
|
$testPointApres=strstr($idMail, '@');
|
|
// echo '<br>testPointApres=' .$testPointApres;
|
|
$testPoint=mb_strpos($testPointApres,'.');
|
|
// echo '<br>testP:' .$testPoint;
|
|
if ($testPoint=='' && $validLogin!='N') {
|
|
$usrSiteMsg .= '<span>' .$clientMsg[42]. ' : </span> <span class="msgCli">' .$idMail. '</span>';
|
|
$validLogin='N';
|
|
}
|
|
?>
|