if (MD5 ($action. $userdb. $forward. $passport _key)!= $verify) {
Exit (' Illegal request (phpwind) ');
The variables inside can be customized, so you can sy around
Parse_str (Strcode ($userdb, ' DECODE '), $USERDB); Pay attention to Strcode ($userdb, ' DECODE '), so you have to encode the variable $userdb,strcode ($userdb, ' DECODE ') you submit.
if ($action = = ' Login ') {//Submit Action=login
if (! $userdb [' time '] | |! $USERDB [' username '] | | |! $USERDB [' password ']) {
Exit ("Lack of parameters (Phpwind)");
}//submitted $userdb decoding to have this data later
if ($timestamp-$userdb [' time ']>3600] {
Exit (' Passport request expired (phpwind) ');
}//commit userdb[' time '] bigger
.....
$rt = $db->get_one ("Select UID $sql from pw_members WHERE username= ' $userdb [username] '");
if ($RT) {//If there is this user, call the following statement to modify the password, etc.
$sql && $db->update ("Update pw_members SET $sql WHERE uid= ' $rt [uid] '");
$sql 2 && $db->update ("Update Pw_memberdata SET $sql 2 WHERE uid= ' $RT [uid] '");
}else{//If you do not have this user will call the following add a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service