当前位置:网站首页>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;
}
}



边栏推荐
- Using graylog alarm function to realize the regular work reminder of nail group robots
- EDI许可证和ICP经营性证有什么区别
- Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
- Win11如何给应用换图标?Win11给应用换图标的方法
- [61dctf]fm
- Data access - entityframework integration
- The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough
- DeSci:去中心化科学是Web3.0的新趋势?
- Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
- Games101 notes (I)
猜你喜欢

Migrate /home partition
![[brush questions] effective Sudoku](/img/5b/3064170bebd1ccbee68d6a85d23830.png)
[brush questions] effective Sudoku

极坐标扇图使用场景与功能详解

Oneforall installation and use

Deep learning plus

PSPNet | 语义分割及场景分析

The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
![[brush title] goose factory shirt problem](/img/c8/44496c767a778101cf3982bd911933.png)
[brush title] goose factory shirt problem

《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md

【刷题篇】鹅厂文化衫问题
随机推荐
【 brosser le titre 】 chemise culturelle de l'usine d'oies
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Cartoon: what is MapReduce?
Facing new challenges and becoming a better self -- attacking technology er
Deep dive kotlin synergy (XXI): flow life cycle function
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
[es6] add if judgment or ternary operator judgment in the template string
Summary of methods for finding intersection of ordered linked list sets
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
JSON转MAP前后数据校验 -- 自定义UDF
Games101 notes (II)
PSPNet | 语义分割及场景分析
10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
【刷题篇】有效的数独
Android privacy sandbox developer preview 3: privacy, security and personalized experience
【刷題篇】鹅廠文化衫問題
Dare not buy thinking