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



边栏推荐
- 二叉树相关OJ题
- "21 days proficient in typescript-3" - install and build a typescript development environment md
- Get ready for the pre-season card game MotoGP ignition champions!
- How was the middle table destroyed?
- 【 brosser le titre 】 chemise culturelle de l'usine d'oies
- 不敢买的思考
- Starkware: to build ZK "universe"
- 【刷题篇】有效的数独
- Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
- 帮忙看看是什么问题可以吗?[ERROR] Could not execute SQL stateme
猜你喜欢

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

2020-2022两周年创作纪念日

深潜Kotlin协程(二十一):Flow 生命周期函数

Detailed explanation of use scenarios and functions of polar coordinate sector diagram

Starkware: to build ZK "universe"

數據訪問 - EntityFramework集成

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

数据访问 - EntityFramework集成

Keras crash Guide

PSPNet | 语义分割及场景分析
随机推荐
PSPNet | 语义分割及场景分析
How was the middle table destroyed?
Summary of methods for finding intersection of ordered linked list sets
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
Jarvis OJ shell流量分析
Jarvis OJ webshell analysis
Cheer yourself up
Starkware: to build ZK "universe"
如何将mysql卸载干净
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
文件操作--I/O
How can programmers improve their situation?
How does win11 change icons for applications? Win11 method of changing icons for applications
详解SQL中Groupings Sets 语句的功能和底层实现逻辑
如何安装mysql
Scratch colorful candied haws Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
Enterprise backup software Veritas NetBackup (NBU) 8.1.1 installation and deployment of server
Win11 prompt: what if the software cannot be downloaded safely? Win11 cannot download software safely
[es6] add if judgment or ternary operator judgment in the template string