예제 #1
0
파일: login.php 프로젝트: rhertzog/lcs
//==================================
//Nom année
	$tbs_gepiSchoolName = getSettingValue("gepiSchoolName");
	$tbs_gepiYear = getSettingValue("gepiYear");
	
//==================================
//Message
	if (isset($message)) {
		$tbs_message[] =array("classe"=>"txt_rouge","texte" => $message);
	} else {
		//$tbs_message_class = "message";
		$tbs_message[] =array("classe"=>"","texte" => "Afin d'utiliser Gepi, vous devez vous identifier.");
	}

	$tbs_input_password_to_text= input_password_to_text('no_anti_inject_password');

//==================================
//	Mot de passe oublié
	$tbs_password_recovery = "";
	if (getSettingValue("enable_password_recovery") == "yes") {
		$tbs_password_recovery = "recover_password.php";
	}


//==================================
//	Demande de compte/mot de passe
	$tbs_demande_compte_mdp = "";
	if (getSettingAOui("GepiResp_obtenir_compte_et_motdepasse")) {
		$tbs_demande_compte_mdp = "obtenir_compte_et_motdepasse.php";
	}
예제 #2
0
파일: change_pwd.php 프로젝트: rhertzog/lcs
        echo "Il doit comporter au moins une lettre et au moins un chiffre.";
    echo "</b></p>\n";
    echo "<br />\n";
	echo "<table summary='Mot de passe'>
	<tr>
		<td>Nouveau mot de passe (<em>".getSettingValue("longmin_pwd")." caractères minimum</em>) : </td>
		<td>
			<input type='password' name='no_anti_inject_password' id='no_anti_inject_password' size='20' tabindex='1' />
			".input_password_to_text('no_anti_inject_password')."
		</td>
	</tr>
	<tr>
		<td>Nouveau mot de passe (<em>à confirmer</em>) :</td>
		<td>
			<input type='password' name='reg_password2' id='reg_password2' size='20' tabindex='2' />
			".input_password_to_text('reg_password2')."
		</td>
	</tr>
</table>
<input type='hidden' name='valid' value=\"yes\" />
<input type='hidden' name='user_login' value='".$user_login."' />\n";

	echo "<br /><center><input type='submit' value='Enregistrer' tabindex='3' /></center>";

	$user_statut = sql_query1("select statut from utilisateurs where login='******';");
	if($user_statut=='eleve') {
		$sql="SELECT no_gep FROM eleves WHERE login='******';";
		$res_ine=mysqli_query($GLOBALS["mysqli"], $sql);
		if(mysqli_num_rows($res_ine)>0){
			$lig_ine=mysqli_fetch_object($res_ine);
			if($lig_ine->no_gep!='') {
예제 #3
0
파일: mon_compte.php 프로젝트: rhertzog/lcs
                    <?php
                        // Cela merdoie: Il doit y avoir un conflit entre le test de solidité et le changement de type.
                        echo input_password_to_text('mypassword');
                    ?>
        </td>
        <td>
            Complexité de votre mot de passe : 
            <div style="width: 150px;">
                <div id="mypassword_text" style="font-size: 11px;"></div>
                <div id="mypassword_bar" style="font-size: 1px; height: 3px; width: 0px; border: 1px solid white;"></div>
            </div>
        </td>
    </tr>
    <tr>
        <td>Nouveau mot de passe (<em>à confirmer</em>) : </td>
        <td><input type='password' name='reg_password2' id='reg_password2' size='20' tabindex='<?php echo $tabindex;$tabindex++;?>' /><?php echo input_password_to_text('reg_password2');?></td>
    </tr>
</table>
<?php
	if ((isset($_GET['retour'])) or (isset($_POST['retour'])))
?>
<p><input type="hidden" name="retour" value="accueil" /></p>

<?php
}
if ($affiche_bouton_submit=='yes')
	echo "<br /><center><input type=\"submit\" value=\"Enregistrer\" tabindex='$tabindex' /></center>\n";
	$tabindex++;
	echo "<input type=\"hidden\" name=\"valid\" value=\"yes\" />\n";
echo "</fieldset>\n";
echo "</form>\n";