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
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