The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: testna koda | March 20, 2010 @ 9:41am
PHP Code
[
Download
]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Naloga 7</title> <link href="reset.css" rel="stylesheet" type="text/css" /> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> </head> <body> <div id="container"> <div id="login-forma"> <img class="adm-log-p" src="images/h_administracija.png" width="155" height="29" alt="administracija" /> <form name="login" action="" method="post"> <div class="title">Uporabni�ko ime</div> <div class="input_bg"><input class="input" name="user" value="" size="30" autocomplete="off" value="" type="text" /></div> <div class="title">Geslo</div> <div class="input_bg"><input class="input" name="pass" value="" size="30" type="password" /></div> <input type="submit" class="login-button" value="" /> </form> </div> <div class="napaka"> <h1>Vnesli ste napa�no uporabni�ko ime ali geslo!</h1> </div> <div class="knjiga_gostov"> <h1>Knjiga gostov</h1> </div> </div> <?php $auth = 1; $userx='21232f297a57a5a743894a0e4a801fc3'; // (uporabni�ko ime) $passx='211340d1aab430caaadba78431c3e810'; // (geslo) if($auth == 1) { if(md5($_POST['user']) == $userx && md5($_POST['pass']) == $passx) {?> <script type="text/javascript"> $(function(){ $('.knjiga_gostov').show(500); }); </script> <?php } else {?> <script type="text/javascript"> $(function(){ $('.napaka').show(500); }); </script> <?php } } ?> </body> </html>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.20 / 8
143 Votes
http://codebin.yi.org/553
page generated in 0.00 seconds