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



边栏推荐
- composer安装报错:No composer.lock file present.
- Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
- Deep dive kotlin synergy (XXI): flow life cycle function
- Android privacy sandbox developer preview 3: privacy, security and personalized experience
- Today's sleep quality record 79 points
- Record a 'very strange' troubleshooting process of cloud security group rules
- Do sqlserver have any requirements for database performance when doing CDC
- 【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
- Flet教程之 12 Stack 重叠组建图文混合 基础入门(教程含源码)
- Jarvis OJ shell流量分析
猜你喜欢

BS-XX-042 基于SSM实现人事管理系统

How to set the WiFi password of the router on the computer

详解SQL中Groupings Sets 语句的功能和底层实现逻辑

浏览器渲染原理以及重排与重绘

Jarvis OJ 简单网管协议

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

How does win11 change icons for applications? Win11 method of changing icons for applications

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

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

Accès aux données - intégration du cadre d'entité
随机推荐
采用药丸屏的iPhone14或引发中国消费者的热烈抢购
WSL2.0安装
Jarvis OJ simple network management protocol
为季前卡牌游戏 MotoGP Ignition Champions 做好准备!
How does win11 change icons for applications? Win11 method of changing icons for applications
The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough
有序链表集合求交集 方法 总结
Games101 notes (III)
[js] skill simplification if empty judgment
面对新的挑战,成为更好的自己--进击的技术er
Jarvis OJ Webshell分析
[61dctf]fm
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
HiEngine:可媲美本地的云原生内存数据库引擎
How to install MySQL
微信公众号网页授权登录实现起来如此简单
Twig数组合并的写法
美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名
Quelques réflexions cognitives
sqlserver 做cdc 要对数据库性能有什么要求么