Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 116
0 Users 5 Guests Online

Change Pincode Addon

Look for this on your login.php file
PHP Code
1
2
3
4
5
6
7
8
9
10
11
12
if($logged[id]){ 
//welcomes the member 
echo "Welcome $logged[username]<br><br>"; 
//shows the user menu 
echo " 
- <a href='editprofile.php'>Edit Profile</a><br> 
- <a href='changepassword.php'>Change Password</a><br> 
- <a href='members.php'>Members</a><br> 
- <a href='logout.php?logout'>Logout</a>"; 

else

add before it
PHP Code
1
2
3
4
5
6
7
if($logged[pincode]==123){ 
//checks if pincode is default 
echo ("<font face=\"Verdana\" size=\"1\">Pincode not configured</font><meta http-equiv=\"refresh\" content=\"5;url=chpin.php\">");
//redirects to the configure pincode

else

that's all..
check skill's tuts for the pincode features
gbt91
Author:
Views:
2145
Rating:
Posted on Friday 1st June 2007 at 09:54 PM
gbt91
gbt91
:P
Posted on Friday 1st June 2007 at 08:57 PM
MCP
MCP
Thanks. I added this in case the users did not set one. Having it as default would make their accounts easy to get into.