当前位置:网站首页>PHP人才招聘系统开发 源代码 招聘网站源码二次开发
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
2022-07-05 16:12:00 【withkai44】
招聘需求·简历管理·广告发布
招聘需求发布,简历智能分析,用户轨迹跟踪
支持视频面试,招聘会,校招,专题招聘等多场景运用
猎头·培训·问答系统
针对中高端挖掘高端人才,培训机构发布课程
在线预订课程,问答增强网站互动性和粘贴度
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
演示站:https://v2.ch2p.cn/
<?php
class index_controller extends common{
function index_action(){
if($this->uid!=""&&$this->username!=""){
if($_GET['type']=="out"){
$this->cookie->unset_cookie();
}else{
$this->ACT_msg($this->config['sy_weburl']."/member", "您已经登录了!");
}
}
if($_GET['backurl']=='1'){
$this->cookie->setCookie("backurl",$_SERVER['HTTP_REFERER'],time()+60);
}
if(!$_GET['usertype']){
$_GET['usertype'] = 1;
}
$this->yunset("cookie", $_COOKIE['checkurl']);
$this->yunset("usertype",(int)$_GET['usertype']);
$this->yunset("loginname",$_COOKIE['loginname']);
$this->yunset("referurl",$_SERVER['HTTP_REFERER']);
$this->seo("login");
$this->yun_tpl(array('index'));
}
//登录验证
function loginsave_action(){
$Member = $this->MODEL('userinfo');
$lData['username'] = $_POST['username'];
$lData['uid'] = $this->uid;
$lData['usertype'] = $this->usertype;
$lData['act_login'] = $_POST['act_login'];
$lData['num'] = $_POST['num'];
$lData['loginname'] = $_POST['loginname'];
$lData['password'] = $_POST['password'];
$lData['referurl'] = $_POST['referurl'];
$lData['authcode'] = $_POST['authcode'];
$return = $Member->userLogin($lData);
if($return['uclogin']){
$error = 2;
$return['msg'] = $return['uclogin'];
}else{
$error = 1;
}
if($return['errcode']==2){
$this->layer_msg($return['msg'],9,0,Url('register',array('c'=>'ident')),2,$error);
}else if($return['url']){
$this->layer_msg($return['msg'],9,0,$return['url'],2,$error);
}else{
$this->layer_msg($return['msg']);
}
}
//登录短信验证码发送
function sendmsg_action()
{
$noticeM = $this->MODEL('notice');
$result = $noticeM->jycheck($_POST['code'],'前台登录');
if(!empty($result)){
$this->layer_msg($result['msg'], 9, 0, '', 2, $result['error']);
}
$moblie = $_POST['moblie'];
$UserinfoM = $this->MODEL('userinfo');
$userinfo = $UserinfoM->getInfo(array("moblie" => $moblie),array('field'=>"`usertype`,`uid`"));
$user = array(
'uid' => $userinfo['uid'],
'usertype' => $userinfo['usertype']
);
$result = $noticeM->sendCode($moblie, 'login', 1, $user, 6, 90, 'msg');
echo json_encode($result);exit();
}
function rest_action(){
$this->cookie->unset_cookie();
$url = Url("login",array("usertype"=>"1"),"1");
header("Location: ".$url);
}
function utype_action(){
if($this->uid){
header("Location:".$this->config['sy_weburl']."/member");
}
$this->seo("login");
$this->yun_tpl(array('utype'));
}
function setutype_action(){
//验证前期保存的登录数据,是否在本系统有存在并且密码对应
if($_COOKIE['username'] && $_COOKIE['password'] && (CheckRegUser($_COOKIE['username']) OR CheckRegEmail($_COOKIE['username'])==false)){
//无usertype情况下 才予以激活 否则直接登录会员中心
$Member=$this->MODEL("userinfo");
$user = $Member->getInfo(array("username"=>$_COOKIE['username']),array("field"=>"`uid`,`username`,`password`,`salt`,`usertype,did`"));
$userid = $user['uid'];
if(!$user['usertype']){
if(passCheck($_COOKIE['password'],$user['salt'],$user['password']) && $user['password']!=''){
$usertype = (int)$_GET['usertype'];
if($usertype=='1'){
$table = "member_statis";
$table2 = "resume";
$data1=array("uid"=>$userid);
$data2['uid']=$userid;
}elseif($usertype=='2'){
$table = "company_statis";
$table2 = "company";
$ratingM = $this->MODEL('rating');
$data1 = $ratingM->FetchRatingInfo();
$data2['uid'] = $userid;
$data1['did'] = $user['did'];
}elseif($usertype=='3'){
$table = 'lt_statis';
$table2 = 'lt_info';
$id =$this->config['lt_rating'];
$row = $Member->GetRatinginfoOne(array('id'=>$id));
$data1=array('rating'=>$id,'integral'=>$this->config['integral_reg'],'rating_name'=>$row['name'],'rating_type'=>$row['type'],'lt_job_num'=>$row['lt_job_num'],'lt_down_resume'=>$row['lt_resume'],'lt_editjob_num'=>$row['lt_editjob_num'],'lt_breakjob_num'=>$row['lt_breakjob_num']);
if($row['service_time']>0){
$time=time()+86400*$row['service_time'];
}else{
$time=0;
}
$data1['vip_etime']=$time;
$data2['uid']=$userid;
$data2['did']=$user['did'];
}
$Member->upInfo(array(array("uid"=>$userid),"usertype"=>$usertype));
$Member->InsertReg($table,$data1);
$Member->InsertReg($table2,$data2);
$this->cookie->unset_cookie();
$this->cookie->add_cookie($userid,$user['username'],$user['salt'],$user['email'],$user['password'],$usertype,$this->config['sy_logintime'],$user['did']);
header("Location:".$this->config['sy_weburl'].'/member');
}else{
$this->cookie->unset_cookie();
echo "激活失败";
}
}else{
$this->cookie->unset_cookie();
echo "激活失败";
}
}else{
header("Location:".Url('index'));
}
}
//微信登录
function wxlogin_action()
{
$wxloginid = isset($_COOKIE['wxloginid']) ? $_COOKIE['wxloginid'] : '';
$WxM = $this->MODEL('weixin');
$qrcode = $WxM->applyWxQrcode($wxloginid, '', $this->uid);
if (!$qrcode) {
echo 0;
} else {
echo $qrcode;
}
}
边栏推荐
- Games101 notes (III)
- 帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
- [team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
- 搜索 正排索引 和 倒排索引 区别
- 迁移/home分区
- Accès aux données - intégration du cadre d'entité
- The memory of a Zhang
- 极坐标扇图使用场景与功能详解
- 新春限定丨“牛年忘烦”礼包等你来领~
- What is the difference between EDI license and ICP business license
猜你喜欢
【刷题篇】鹅厂文化衫问题
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
数据湖(十四):Spark与Iceberg整合查询操作
今日睡眠质量记录79分
Reduce the cost by 40%! Container practice of redis multi tenant cluster
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
HiEngine:可媲美本地的云原生内存数据库引擎
如何安装mysql
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
Accès aux données - intégration du cadre d'entité
随机推荐
The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough
搜索 正排索引 和 倒排索引 区别
英特尔第13代Raptor Lake处理器信息曝光:更多核心 更大缓存
Summary of methods for finding intersection of ordered linked list sets
2020-2022两周年创作纪念日
给自己打打气
Accès aux données - intégration du cadre d'entité
Cartoon: what is the eight queens problem?
极坐标扇图使用场景与功能详解
How to use FRP intranet penetration +teamviewer to quickly connect to the intranet host at home when mobile office
Get ready for the pre-season card game MotoGP ignition champions!
Jarvis OJ Flag
SQL injection of cisp-pte (Application of secondary injection)
Benji Banas membership pass holders' second quarter reward activities update list
数据访问 - EntityFramework集成
关于new Map( )还有哪些是你不知道的
【刷題篇】鹅廠文化衫問題
挖财股票开户安全吗?怎么开股票账户是安全?
Oneforall installation and use
清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会