<p><b>这是一款免费软件,作者 <a href="http://www.ikk.me" target="_blank">kookxiang</a>,你可以从 www.kookxiang.com 上下载到这个项目的最新版本。</b></p> <p>如果有人向您兜售本程序,麻烦您给个差评。</p><br> <p>配置签到助手之后,我们会在每天的 0:30 左右为您自动签到。</p> <p>签到过程不需要人工干预,您可以选择签到之后发送一封邮件报告到您的注册邮箱。</p><br> <p>准备好了吗?点击下面的“下一步”按钮开始配置吧</p> <p class="btns"><button class="btn submit" onclick="$('#guide_page_1').hide();$('#guide_page_2').show();">下一步 »</button></p> </div> <div id="guide_page_2" class="hidden"> <p>首先,你需要绑定你的百度账号。</p><br> <p>为了确保账号安全,我们只储存你的百度 Cookie,不会保存你的账号密码信息。</p> <p>你可以通过修改密码的方式来让这些 Cookie 失效。</p><br> <form method="post" action="api.php?action=baidu_login" target="_blank"> <p>百度通行证:<input type="text" name="username" placeholder="推荐使用邮箱登陆" required value="" /></p> <p>通行证密码:<input type="password" name="password" placeholder="百度通行证密码" required value="" /></p> <p><input type="submit" value="绑定百度账号" /> <a href="<?php echo cloud::get_api_path(); ?> manual_bind.php?sid=<?php echo cloud::id(); ?> &formhash=<?php echo $formhash; ?> " class="btn" target="_blank">手动绑定</a></p> </form> <br> <form method="post" action="api.php?action=receive_cookie&local=1&formhash=<?php echo $formhash; ?> ">
<?php define('DISABLE_PLUGIN', true); require_once './system/common.inc.php'; if (!$uid) { header('Location: member.php'); exit; } if ($_GET['action'] == 'baidu_login') { $parms = array($_POST['username'], $_POST['password'], $formhash); $parm_string = serialize($parms); $parm_string = authcode($parm_string, 'ENCODE', cloud::key()); $parm_string = bin2hex($parm_string); header('Location: ' . cloud::get_api_path() . 'login.php?sid=' . cloud::id() . '&parm=' . $parm_string); } elseif ($_GET['action'] == 'register_cloud') { cloud::do_register(); } elseif ($_GET['action'] == 'receive_cookie') { $_cookie = $_POST['cookie'] ? $_POST['cookie'] : $_GET['cookie']; if (!$_cookie) { throw new Exception('Empty response!'); } if ($_GET['formhash'] != $formhash) { throw new Exception('Illegal request!'); } $cookie = authcode(pack('H*', $_cookie), 'DECODE', cloud::key()); if (!$cookie) { showmessage('非法调用!', './#baidu_bind', 1); } if (!verify_cookie($cookie)) { showmessage('无法登陆百度贴吧,请尝试重新绑定<form action="api.php?action=receive_cookie&formhash=' . $formhash . '" method="post"><input type="hidden" name="cookie" value="' . $_cookie . '"></from><script type="text/javascript">setTimeout(function(){ document.forms[0].submit(); }, 2000);</script>'); }