Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect("localhost", "xxxxxx", "xxxxxx") or die(mysql_error());
- mysql_select_db("xxxxx") or die(mysql_error());
- if(isset($_COOKIE['ID_my_site']));
- {
- $username = $_COOKIE['ID_my_site'];
- $pass = $_COOKIE['Key_my_site'];
- $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
- while($info = mysql_fetch_array( $check ))
- {
- if ($pass != $info['password'])
- { header("Location: login.php");
- }
- //otherwise they are shown the admin area
- else
- {
- header("Location: boutique.php");
- }
- }
- }
- else
- {
- header("Location: login.php");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement