source/index/login.ctrl.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class loginControl extends skymvc{
function __construct(){
parent::__construct();
}
public function onInit(){
}
function onDefault(){
if(M("login")->userid){
header("Location:/");
exit;
}
$reg_invitecode=0;
if(defined("REG_INVITECODE") && REG_INVITECODE==1){
$reg_invitecode=1;
}
$this->smarty->goAssign(array(
"openid"=>$openid,
"appname"=>$appname,
"reg_invitecode"=>$reg_invitecode
));
$tpl="login/index.html";
$this->smarty->display($tpl);
}
public function onLoginSave(){
$username=post('username','h');
$password=post('password','h');
$telephone=post('telephone','h');
if(isset($_POST['checkcode'])){
$checkcode=post('checkcode','h');
if($checkcode!=$_SESSION['checkcode']){
$this->goall("验证码出错",1);
}
}
if(!$user && $telephone){
$user=M("user")->selectRow(array("where"=>"telephone='".$telephone."' "));
}
if(!$user && $username){
$user=M("user")->selectRow(array("where"=>"username='".$username."' "));
}
if(empty($user)){
$this->goall('账号不存在',1,"",$_SERVER['HTTP_REFERER']);
后面还有 121 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。