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



边栏推荐
- OneForAll安装使用
- BS-XX-042 基于SSM实现人事管理系统
- 2020-2022 two-year anniversary of creation
- Solve the Hanoi Tower problem [modified version]
- 怎样在电脑上设置路由器的WiFi密码
- Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
- 为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
- [深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
- Learnopongl notes (I)
- PHP strict mode
猜你喜欢
随机推荐
Desci: is decentralized science the new trend of Web3.0?
极坐标扇图使用场景与功能详解
[js] 技巧 简化if 判空
Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
文件操作--I/O
Summary of PHP pseudo protocol of cisp-pte
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
Cartoon: what is distributed transaction?
Keras crash Guide
Data verification before and after JSON to map -- custom UDF
自己要有自己的坚持
"21 days proficient in typescript-3" - install and build a typescript development environment md
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
[echart] resize lodash 实现窗口缩放时图表自适应
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]
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Learnopongl notes (I)
Google Earth engine (GEE) -- a brief introduction to kernel kernel functions and gray level co-occurrence matrix
如何将mysql卸载干净









