当前位置:网站首页>PHP talent recruitment system development source code recruitment website source code secondary development
PHP talent recruitment system development source code recruitment website source code secondary development
2022-07-05 16:49:00 【withkai44】
Recruitment needs · Resume management · Advertisement release
Recruitment demand release , Resume intelligence analysis , User tracking
Support video interview , Job fair , The school recruit , Special recruitment and other scenarios
headhunters · train · Question answering system
For the middle and high-end, tap high-end talents , Training institutions release courses
Book courses online , Q & A enhances website interactivity and stickiness
PHP Talent recruitment system development Source code Recruitment website source code secondary development
Demonstration station :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", " You are already logged in !");
}
}
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'));
}
// validate logon
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']);
}
}
// Login SMS verification code sending
function sendmsg_action()
{
$noticeM = $this->MODEL('notice');
$result = $noticeM->jycheck($_POST['code'],' Front desk login ');
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(){
// Verify the login data saved in the early stage , Whether it exists in this system and the password corresponds
if($_COOKIE['username'] && $_COOKIE['password'] && (CheckRegUser($_COOKIE['username']) OR CheckRegEmail($_COOKIE['username'])==false)){
// nothing usertype Under the circumstances To activate Otherwise, log in to the member center directly
$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 " Activation failed ";
}
}else{
$this->cookie->unset_cookie();
echo " Activation failed ";
}
}else{
header("Location:".Url('index'));
}
}
// Wechat login
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;
}
}



边栏推荐
- Benji Bananas 会员通行证持有人第二季奖励活动更新一览
- 今日睡眠质量记录79分
- [deep learning] how does deep learning affect operations research?
- 清晰还原31年前现场,火山引擎超清修复Beyond经典演唱会
- 如何安装mysql
- 美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名
- 单商户 V4.4,初心未变,实力依旧!
- 【刷题篇】有效的数独
- Practice independent and controllable 3.0 and truly create the open source business of the Chinese people
- Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
猜你喜欢

Jarvis OJ 远程登录协议

Win11提示无法安全下载软件怎么办?Win11无法安全下载软件
![[729. My Schedule i]](/img/e3/32914227d00cf7595ee850e60f2b72.png)
[729. My Schedule i]

Seaborn draws 11 histograms

普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理

PHP人才招聘系统开发 源代码 招聘网站源码二次开发

Domestic API management artifact used by the company

Data access - entityframework integration

Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found

DenseNet
随机推荐
Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
How does win11 change icons for applications? Win11 method of changing icons for applications
tf. sequence_ Mask function explanation case
【深度学习】深度学习如何影响运筹学?
[61dctf]fm
Reduce the cost by 40%! Container practice of redis multi tenant cluster
Deep learning plus
【学术相关】多位博士毕业去了三四流高校,目前惨不忍睹……
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
有序链表集合求交集 方法 总结
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
今日睡眠质量记录79分
OneForAll安装使用
Benji Bananas 会员通行证持有人第二季奖励活动更新一览
如何安装mysql
Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
Deep dive kotlin synergy (XXI): flow life cycle function
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
composer安装报错:No composer.lock file present.