View Single Post
  #1  
Old 01-21-2009, 08:36 PM
Lust's Avatar
Lust Lust is offline
Ex-Staff Member
 
Join Date: Jun 2008
Location: Russia
Posts: 1,143
Reputation: 1479
Lust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud ofLust has much to be proud of
Default Simple PHP Password Verifyer

1. This is for your logs. Your logs must be a .php extension.
2. The MD5 encryption is only for paranoids.

First add this to your logs page:
PHP Code:
<?php
$check 
= @$_Post***91;'password'***93;;
if (
$check!="CHANGETHISTOAPASSWORD")
die;
?>
Now your admin.php page:
PHP Code:
<form action="YOURLOGNAME.php" method="post">
Password:<br
<
input type="password" name="password">
<
input type="submit" value="Submit">
</
form
MD5 Encryption, add this to logs page:
PHP Code:
<?php
$check 
= @$_Post***91;'password'***93;;
$check1 crypt($check);
if (
$check1!="CHANGETHISTOAMD5HASH")
die;
?>
On this one change "CHANGETHISTOANMD5HASH" to an md5 encrypted pass. If you don't feel like going to a site, here is an easy way, make some form and then:
PHP Code:
$x $_Post***91;'formname'***93;;
$c crypt($x);
echo 
$c
+rep?

it can be done differently, but this way has less code
__________________

Reply With Quote