Exemple #1
0
    $link[0]['text'] = "返回会员中心首页";
    $link[0]['href'] = 'personal_index.php?act=';
    exit(showmsg('您的账号处于暂停状态,请联系管理员设为正常后进行操作!', 1, $link));
}
if ($_CFG['login_per_audit_email'] && $user['email_audit'] == "0" && $act != 'authenticate' && $act != 'user_email' && $act != 'user_mobile') {
    $link[0]['text'] = "认证邮箱";
    $link[0]['href'] = 'personal_user.php?act=authenticate';
    $link[1]['text'] = "网站首页";
    $link[1]['href'] = $_CFG['site_dir'];
    showmsg('您的邮箱未认证,认证后才能进行其他操作!', 1, $link, true, 6);
    exit;
}
$sms = get_cache('sms_config');
if ($_CFG['login_per_audit_mobile'] && $user['mobile_audit'] == "0" && $act != 'authenticate' && $act != 'user_mobile' && $act != 'user_email' && $sms['open'] == "1") {
    $link[0]['text'] = "认证手机";
    $link[0]['href'] = 'personal_user.php?act=authenticate';
    $link[1]['text'] = "网站首页";
    $link[1]['href'] = $_CFG['site_dir'];
    showmsg('您的手机未认证,认证后才能进行其他操作!', 1, $link, true, 6);
    exit;
}
$smarty->assign('user', $user);
$smarty->assign('userindexurl', 'personal_index.php');
$auditresume = get_auditresume_list($_SESSION['uid'], 2);
$smarty->assign('auditresume', $auditresume);
$smarty->assign('sms', $sms);
// 检测是否 今天第一次登录
if ($_SESSION['personal_login_first'] && $auditresume && $act != "edit_resume") {
    $smarty->assign('personal_login_first', $_SESSION['personal_login_first']);
    unset($_SESSION['personal_login_first']);
}
Exemple #2
0
$user = get_user_info($_SESSION['uid']);
if (empty($user)) {
    unset($_SESSION['utype'], $_SESSION['uid'], $_SESSION['username']);
    header("Location: " . url_rewrite('QS_login') . "?url=" . $_SERVER["REQUEST_URI"]);
    exit;
} elseif ($user['status'] == "2" && $act != 'index' && $act != 'user_status' && $act != 'user_status_save') {
    $link[0]['text'] = "返回会员中心首页";
    $link[0]['href'] = 'personal_index.php?act=';
    exit(showmsg('您的账号处于暂停状态,请联系管理员设为正常后进行操作!', 1, $link));
}
if ($_CFG['login_per_audit_email'] && $user['email_audit'] == "0" && $act != 'authenticate' && $act != 'user_email' && $act != 'user_mobile') {
    $link[0]['text'] = "认证邮箱";
    $link[0]['href'] = 'personal_user.php?act=authenticate';
    $link[1]['text'] = "网站首页";
    $link[1]['href'] = $_CFG['main_domain'];
    showmsg('您的邮箱未认证,认证后才能进行其他操作!', 1, $link, true, 6);
    exit;
}
$sms = get_cache('sms_config');
if ($_CFG['login_per_audit_mobile'] && $user['mobile_audit'] == "0" && $act != 'authenticate' && $act != 'user_mobile' && $act != 'user_email' && $sms['open'] == "1") {
    $link[0]['text'] = "认证手机";
    $link[0]['href'] = 'personal_user.php?act=authenticate';
    $link[1]['text'] = "网站首页";
    $link[1]['href'] = $_CFG['main_domain'];
    showmsg('您的手机未认证,认证后才能进行其他操作!', 1, $link, true, 6);
    exit;
}
$smarty->assign('user', $user);
$smarty->assign('userindexurl', 'personal_index.php');
$smarty->assign('auditresume', get_auditresume_list($_SESSION['uid']));
$smarty->assign('sms', $sms);
		</table>');
}
if ($act == "app") {
    $id = isset($_GET['id']) ? $_GET['id'] : exit("id 丢失");
    $jobs = app_get_hunter_jobs($id);
    if (empty($jobs)) {
        exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall">
		    <tr>
				<td width="20" align="right"></td>
				<td class="ajax_app">
					投简历失败!
				</td>
		    </tr>
		</table>');
    }
    $resume_list = get_auditresume_list($_SESSION['uid']);
    if (empty($resume_list)) {
        $str = "<a href=\"" . get_member_url(2, true) . "personal_resume.php?act=resume_list\">[查看我的简历]</a>";
        exit('<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableall">
		    <tr>
				<td width="20" align="right"></td>
				<td class="ajax_app">
					投简历失败,您没有填写简历或者简历不可见 ' . $str . '
				</td>
		    </tr>
		</table>');
    }
    ?>
<script type="text/javascript">
$(".but80").hover(function(){$(this).addClass("but80_hover")},function(){$(this).removeClass("but80_hover")});