示例#1
0
                            /*                         * *********发送邮件部分*********** */
                            //发送邮件的某个函数自己后面再处理下吧,格式如下,../mailcheck.php?userid=num&checkcode=dsaswewasdwewqs,查库的确认格式即可
                            $mailtxtcheckurl = SITEHOST . "mailcheck.php?userid={$user_id}&checkcode={$user_email_checkid}";
                            $mailtxt = "本邮件为系统自动发送,您的战网在线安全令账号已经创建<br><br>" . "您的用户名为:{$user}<br><br>" . "您的用户ID为:{$user_id}<br><br>" . "您的密码为:" . emailpass($unmd5password) . " (只显示前三位)<br><br>" . "您的安全问题为:" . $questionid[$question1] . "<br><br>" . "您的安全问题答案:(已隐藏)<br><br>" . "您的邮箱地址为:{$emailadd}<br><br>" . "您的账号已经创建,为了今后能顺利管理账号,请点击以下链接确认您的邮箱地址<br><br>" . "<a href='{$mailtxtcheckurl}' target='_blank'>{$mailtxtcheckurl}</a><br><br>" . "如果这不是您操作的,请忽略本邮件,绝对不要点击以上链接。<br><br>" . "本邮件为自动发送,请不要回复,因为没人会看的。<br><br>" . "竹井詩織里<br><br>" . date('Y-m-d');
                            send_mail('战网安全令在线版注册邮箱验证邮件', $mailtxt, $emailadd, 0, 1);
                        } else {
                            $registererrid = 6;
                        }
                    } else {
                        $registererrid = 3;
                    }
                } else {
                    $registererrid = 2;
                }
            }
        } else {
            if (checkzhongwenzimushuzixiahuaxian($_POST["username"]) == false) {
                $registererrid = 5;
            } else {
                $registererrid = 4;
            }
        }
    } else {
        $registererrid = 4;
    }
    $_SESSION['letters_code'] = rand();
} else {
    if (check_data('letters_code') && md5(strtolower($_POST["letters_code"])) != $_SESSION['letters_code']) {
        $registererrid = 1;
    }
}
示例#2
0
            if ($rowuserdata) {
                if ($rowuserdata['user_email'] == $emailadd && $rowuserdata['user_question'] == $question1 && $rowuserdata['user_answer'] == $answer1) {
                    $userid = $rowuserdata['user_id'];
                    $sql = "UPDATE `users` SET `user_email_find_code`='{$emailfind}',`user_email_find_mode`='1' WHERE `user_id`='{$userid}'";
                    update($sql);
                    $findurl = SITEHOST . "findpwdmail.php?userid={$userid}&pwdcheckid={$emailfind}";
                    $mailtxt = "本邮件为系统自动发送,您正在申请重置您账号的密码<br><br>" . "您的用户名为:{$user}<br><br>" . "您的用户ID为:{$userid}<br><br>" . "您的邮箱地址为:{$emailadd}<br><br>" . "您还需要最后一步,点击以下链接,前往密码重置页面重置您的密码。<br><br>" . "<a href='{$findurl}' target='_blank'>{$findurl}</a><br><br>" . "如果这不是您操作的,请忽略本邮件,绝对不要点击以上链接。<br><br>" . "本邮件为自动发送,请不要回复,因为没人会看的。<br><br>" . "竹井詩織里<br><br>" . date('Y-m-d');
                    $pwdfinderrorid = send_mail('战网安全令在线版重置密码链接邮件', $mailtxt, $emailadd, 0, 6);
                } else {
                    $pwdfinderrorid = 3;
                }
            } else {
                $pwdfinderrorid = 2;
            }
        } else {
            if (checkzhongwenzimushuzixiahuaxian($_POST["firstName"]) == false) {
                $pwdfinderrorid = 5;
            } else {
                $pwdfinderrorid = 4;
            }
        }
    } else {
        $pwdfinderrorid = 4;
        //POST数据不足
    }
    $_SESSION['letters_code'] = md5(rand());
} else {
    if (check_data('letters_code') && md5(strtolower($_POST["letters_code"])) != $_SESSION['letters_code']) {
        $pwdfinderrorid = 1;
    }
}
示例#3
0
<?php

//fix
include '../config.php';
if (check_data('id', 'get')) {
    if (!checkzhongwenzimushuzixiahuaxian($_GET['id'])) {
        echo "inlegal";
    } else {
        $user = db_iconv('id', 'get', true, true);
        $sql = "SELECT * FROM `users` WHERE `user_name`='{$user}'";
        if (queryNum_rows($sql) == 0) {
            echo "true";
        } else {
            echo "false";
        }
    }
} else {
    echo "";
}