Exemplo n.º 1
0
    <tr>
        <td width="120" align="right">请输入Google Auth中显示的验证码以便确认</td>
        <td width="auto" align="left"><input type="text" class="sl" name="gauthcode" value="" /></td>
    </tr>
    <tr>
        <td width="120" align="right"></td>
        <td width="auto" align="left"><input type="submit" value="确定关闭二次登录" name="submit" class="textbtn" /></td>
    </tr>
    
</tbody></table>
</form>

</div>';
} else {
    $ga = new GoogleAuth();
    $secret = $ga->createSecret();
    $qrCodeUrl = $ga->createQRCode($options['name'], $secret);
    echo '
<a name="4"></a>
<div class="title"><i class="fa fa-angle-double-right"></i> 设置二次验证 </div>
<div class="main-box">
<p class="red">', $tip4, '</p>

<form method="post" action="', $_SERVER["REQUEST_URI"], '#4">
<input type="hidden" name="action" value="setgauth" />
<input type="hidden" name="gsecret" value="', $secret, '" />

<table cellpadding="5" cellspacing="8" border="0" width="100%" class="fs12" height="120px">
    <tbody>
    <tr>
        <td width="120" align="right">请输入Google Auth中显示的验证码以便确认</td>