Simple but powerful login script

Go down

Simple but powerful login script

Post  cyberhunter on Sun May 25, 2008 10:36 pm

No MySQL required, very simple to set up.

Code:

<?php
$username = "user1";
$password = "pass1";

$user = $_GET['user'];
$pass = $_GET['pass'];

if($user == $username && $pass == $password)
{
echo "Welcome to the site!<BR>\n";

// Start website code after the tag below
?>
<!-- Change the code below to whatever you want the site to be like... -->
<title>Members Area</title>
<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF">
<marquee>MEMBERS AREA</marquee>
<?php
echo "You see it works!";
?>
<!-- You see you can even add php in the middle. -->

<?php
}
else
{
echo "Your not supposed to be here..<BR>\n";
exit;
}
?>




Its supposed to be logged into like this:
http://www.YOUR_SITE_URL.com/WHATEVER.php?user=user1&pass=pass1
avatar
cyberhunter
Info Cracker
Info Cracker

Posts : 201
Join date : 2008-03-12
Age : 34
Location : In your computer

View user profile http://www.infofreakz.co.cc

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum