Post: simple PHP login script
02-20-2012, 06:22 AM #1
Nero.
Space Ninja
(adsbygoogle = window.adsbygoogle || []).push({}); Okay this is a basic login script that I coded.
It took about 5-10 minutes to code...

You must login or register to view this content.[/COLOR][/SIZE][/FONT]

okay to set it up you need to hash a username and a password.

Use this link
You must login or register to view this content.
now enter the hashes in at
$user
and
$pass
then edit $self

or just edit lines 20, 21 and 22 Happy

    
<style type="css/text">
textarea
{
font-family: Courier New, Courier, monospace;
font-size: 14px;
color: #000000;
border:double;
border-color:#3C3C3C;
background-color:#60D5C9;
}
hr
{
background-color: #33CCCC;
}

</style>
<?php
$passe = md5($_POST['passentry']);
$usere = md5($_POST['userentry']);
$self= 'https://thefinalstring.com';
$pass = '81dc9bdb52d04dc20036dbd8313ed055';
$user = '81dc9bdb52d04dc20036dbd8313ed055';
?>
<center>
<body text=#336666 bgcolor="#0000000" style="font-family: Courier New, Courier, monospace;
font-size: 18px;" oncontextmenu="return false;">
<form method="post">
Username:<input type="text" name="userentry" /><br>
Password:<input type="password" name="passentry" /> <br>
<input type="submit" value="Login" name="Login" />
</form></center>
</body>
<?php
echo base64_decode("PGNlbnRlcj48Zm9udCBjb2xvcj1cInJlZFwiPiBDUkVBVEVEIEJZIE5FUk8gQCA8YSBocmVmPSJodHRwOi8vdGhlZmluYWxzdHJpbmcuY29tIj4gVGhlIEZpbmFsIFN0cmluZyEgPC9hPjwvZm9udD48L2NlbnRlcj4NCg==");
?>
<?php

if (isset($_POST['Login']) && $passe===$pass && $usere===$user )
{
header('location:'.$self);
}

if(isset($_POST['Login']) && $passe== " ")
{ echo "<br><font color=red><b>Please enter a password</font></b><br>"; }

if (isset($_POST['Login']) && $usere== " ")
{
echo "<br><font color=red><b>Please enter a username</b><br></font>";
}
?>
(adsbygoogle = window.adsbygoogle || []).push({});
06-17-2012, 01:53 AM #11
Default Avatar
trini14
Guest
Good work was looking at this and it helps Smile Thanks!!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo