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



边栏推荐
- 为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
- tf.sequence_mask函数讲解案例
- 自己要有自己的坚持
- [brush questions] effective Sudoku
- PHP strict mode
- [es6] 模板字符串内添加if判断或添加三元运算符判断
- Data access - entityframework integration
- The difference between searching forward index and inverted index
- EDI许可证和ICP经营性证有什么区别
- SQL injection of cisp-pte (Application of secondary injection)
猜你喜欢

Single merchant v4.4 has the same original intention and strength!

公司自用的国产API管理神器

清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会

The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough

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]

Starkware: to build ZK "universe"

为季前卡牌游戏 MotoGP Ignition Champions 做好准备!

Win11如何给应用换图标?Win11给应用换图标的方法

Desci: is decentralized science the new trend of Web3.0?

今日睡眠质量记录79分
随机推荐
【深度学习】深度学习如何影响运筹学?
DenseNet
普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
[brush title] goose factory shirt problem
Detailed explanation of use scenarios and functions of polar coordinate sector diagram
关于new Map( )还有哪些是你不知道的
深潜Kotlin协程(二十一):Flow 生命周期函数
Games101 notes (III)
Data verification before and after JSON to map -- custom UDF
Jarvis OJ 简单网管协议
一些认知的思考
Mongodb getting started Tutorial Part 04 mongodb client
挖财股票开户安全吗?怎么开股票账户是安全?
How does win11 change icons for applications? Win11 method of changing icons for applications
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Cheer yourself up
有序链表集合求交集 方法 总结