Exemplo n.º 1
0
 while ($data = $req->fetch()) {
     if (strip_gpc(strtolower($pseudoreg)) == strtolower($data['pseudo'])) {
         $p = 1;
     }
     if ($mail == $data['mail']) {
         $m = 1;
     }
 }
 $req->closeCursor();
 if (empty($pseudoreg)) {
     $p = 2;
 }
 if (empty($mdpt)) {
     $mp = 2;
 }
 if (isMailSyntaxCorrect($mail)) {
     $m = 4;
 } elseif ($mdpc != $mdp) {
     $mp = 1;
 }
 if (!isset($p)) {
     $p = 0;
 }
 if (!isset($mp)) {
     $mp = 0;
 }
 if (!isset($m)) {
     $m = 0;
 }
 if (strlen($mdpt) < 6) {
     $mp = 9;
Exemplo n.º 2
0
        echo $langue_forgot['forgot12'];
    }
}
// Affichage du formulaire
if ($displayForm) {
    ?>
					<form name="form1" method="post" action="index.php?page=forgot">
						<table cellspacing="0" cellpadding="0">	
							<tr>
								<td colspan="2" style="padding:10px">
									<div align="center">
										<?php 
    if (!isset($_POST['pseudo']) && !isset($_POST['mail'])) {
        echo $langue_forgot['forgot2'] . '<br />' . $langue_forgot['forgot3'] . '<br />' . $langue_forgot['forgot4'];
    } else {
        if (empty($pseudo) || !isMailSyntaxCorrect($_POST['mail'])) {
            echo '<font class="red">' . $langue_forgot['forgot14'] . '</font>';
        } else {
            echo '<font class="red">' . $langue_forgot['forgot15'] . '</font>';
        }
    }
    ?>
									</div>
								</td>
							</tr>
							<tr>
								<td align="right" style="padding:5px">
									<label for="pseudo"><?php 
    echo $langue_forgot['forgot5'];
    ?>
 :</label>