Paracetamol | Code :
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
- <head>
- <title>Vérification mot de passe</title>
- <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
- <script language="javascript" type="text/javascript">
- <!--
- var login = "*****" ;
- var messagelogin = "Login :";
- var un = prompt (messagelogin,"" );
- var motdepasse = "*****";
- var message = "Mot de Passe";
- var messagefaux = "Votre login ou mot de passe est faux !";
- var pw = prompt (message,"" );
- if (un == login) {
- if (pw != motdepasse) {
- alert (messagefaux);
- window.history.back ();
- }
- }
- if (un != login) {
- alert (messagefaux);
- window.history.back ();
- }
- //-->
- </script>
- <script language="javascript" type="text/javascript">
- setup='toolbar=no,location=no,directories=no,status=no,menubar=no,'
- setup += 'width=200,height=150,scrollbars=no,resizable=no'
- popup1 = window.open ("","popup1",setup)
- popup1.document.write('<head>');
- popup1.document.write('<Title>');
- popup1.document.write('ZONE HAUTE SECURITE');
- popup1.document.write('</Title>');
- popup1.document.write('<script language="javascript">');
- popup1.document.write('setTimeout(');
- popup1.document.write('"self.close()');
- popup1.document.write(';",3500)');
- popup1.document.write('</');
- popup1.document.write('script>');
- popup1.document.write('</head>');
- popup1.document.write('<body>');
- popup1.document.write('<center><h3>Vous entrez dans une zone de haute sécurité !</h3></center>');
- popup1.document.write('</body>');
- </script>
- </head>
- <body>
- <form action="passage.php" method="post">
- <p>
- Login : <input type="text" name="verification_pseudo" /><br />
- Mot de passe : <input type="password" name="verification_motdepasse" /><br />
- <?
- if ($_SERVER['REMOTE_ADDR'] == **.*.**.***)
- {
- echo '<input type="hidden" name="verification_ip" value="**.*.**.***" /><br />';
- }
- else
- {
- echo '<font color="#ff0000"><b>Entrez l\'IP de l\'administrateur.</b></font><br />
- <input type="password" name="verification_ip" /><br />';
- }
- ?>
- <input type="submit" value="Valider">
- </p>
- </form>
- </body>
- </html>
|
Voilà. |