} list($winduid, $groupid, $windpwd, $showmsginfo) = $logininfo; $cktime = 7 * 24 * 3600; (int) $keepyear && ($cktime = 31536000); $cktime != 0 && ($cktime += $timestamp); Cookie("winduser", StrCode($winduid . "\t" . $windpwd . "\t" . $user['safecv']), $cktime); Cookie("ck_info", $db_ckpath . "\t" . $db_ckdomain); //Cookie("ucuser",'cc',$cktime); Cookie('lastvisit', '', 0); echo "ok\t{$showmsginfo}"; ajax_footer(); } elseif ($action == 'jobpop') { if (!$db_job_isopen || !$winduid) { exit; } initGP(array("v", "job")); if ($job == "cookie") { $v = in_array($v, array(0, 1)) ? $v : 0; /*设置cookie*/ Cookie("jobpop", $v); } elseif ($job == "show" || !getCookie("jobpop")) { /*强制显示或自定义显示*/ Cookie("jobpop", 0); $jobService = L::loadclass("job"); /*任务服务类*/ $lists = $jobService->jobDisplayController($winduid, $groupid, 'list'); $appliedHTML = $jobService->buildApplieds($winduid, $groupid); require PrintEot('jobpop'); ajax_footer(); exit; }
} updatecache_c(); adminmsg('operate_success', "{$basename}&action={$action}"); } include_once PrintEot('setadvert'); exit; } elseif ($action == 'statistics') { $adverClass = L::loadclass('adver'); /*statistics*/ list($status, $types, $benchs) = $adverClass->statistics(); include_once PrintEot('setadvert'); exit; } elseif ($action == 'alter') { $adverClass = L::loadclass('adver'); /*during*/ initGP(array("step")); if ($step == 2) { InitGP(array('alterstatus', 'alterbefore', 'alterway')); $alterstatus = in_array($alterstatus, array(1, 0)) ? $alterstatus : 1; /*security*/ $alterway = in_array($alterway, array(1, 2)) ? $alterway : 1; $alterbefore = intval($alterbefore); $alters = array('alterstatus' => $alterstatus, 'alterbefore' => $alterbefore, 'alterway' => $alterway); setConfig('db_alterads', $alters); updatecache_c(); adminmsg("operate_success", "{$basename}&action={$action}"); } $alters = $db_alterads ? $db_alterads : $adverClass->getDefaultAlter(); /*alter*/ $c_alterstatus = $c_alterway = array('', ''); $alters['alterstatus'] == 1 ? $c_alterstatus[1] = 'checked' : ($c_alterstatus[0] = 'checked');
$message = $jobService->getLanguage("job_apply_fail"); ajaxResponse($message, false); } else { $message = $jobService->getLanguage("job_apply_success"); $appliedHTML = $jobService->buildApplieds($winduid, $groupid); ajaxResponse($message, true, $appliedHTML); } } } elseif (empty($action) || $action == "applied") { $joblists = $jobService->getAppliedJobs($winduid); $jobs = $jobService->buildLists($joblists, $action, $winduid, $groupid); $current[1] = "current"; include PrintEot('jobcenter'); footer(); } elseif ($action == "finish") { initGP(array("jobid")); if ($jobid) { $jobid = intval($jobid); if ($jobid < 1) { Showmsg('undefined_action'); } $job = $jobService->getJob($jobid); if (!$job) { Showmsg('任务不存在'); } $jober = $jobService->getJoberByJobId($winduid, $jobid); $list = array(); $list['id'] = $job['id']; $list['title'] = $job['title']; $list['description'] = html_entity_decode($job['description']); $list['period'] = $job['period'] ? "每隔" . $job['period'] . " 小时可以申请一次" : "一次性任务";
<?php !function_exists('adminmsg') && exit('Forbidden'); if ($action == "guide") { initGP(array("guideshow")); $guideshow = $guideshow == 1 ? 1 : 0; setConfig('db_guideshow', $guideshow); updatecache_c(); exit; }
<?php /* 四川省扶贫和移民工作局 */ define('IN_ADMIN', True); require 'include/common.php'; $do = getGP('do', 'G'); if (check_submit('dosubmit')) { $errmsg = array(); initGP(array('username', 'password', 'vdcode', 'remember'), 'P'); if (strlen($username) < 3 || strlen($username) > 50) { $errmsg[] = '用户名长度必须在3-20字节之间。'; } elseif (!is_username($username)) { $errmsg[] = '用户名中含有非法字符。'; } if (strlen($password) < 6) { $errmsg[] = '密码长度不能小于6个字节。'; } if (get_config('user', 'login_vdcode')) { session_start(); if (strtolower($vdcode) != $_SESSION['vdcode']) { $errmsg[] = '验证码不正确。'; } unset($_SESSION['vdcode']); } if (count($errmsg)) { show_msg($errmsg, 'login.php'); } $flag = $_USER->login($username, $password, $remember); if ($flag == 1) {
!$result && adminmsg("主题印戳增加失败 "); adminmsg('operate_success', "{$basename}&action="); } elseif ($action == "manage") { initGP(array('list')); !is_array($list) && adminmsg("提示的数据有误 "); $overprints = array(); foreach ($list as $id => $v) { $v['title'] == "" && adminmsg("主题印戳 关联名称不能为空"); ($v['icon'] == "" || !$overPrintClass->checkIcon($v['icon'])) && adminmsg("请选择主题印戳图标或图标格式不正确"); $t = array(); $t['title'] = $v['title']; $t['icon'] = $v['icon']; $t['isopen'] = $v['check'] ? 1 : 0; $t['related'] = $operate == "close" ? '-20' : $v['related']; $overprints[$id] = $t; } !$overprints && adminmsg('operate_success', "{$basename}&action="); $status = $isopen == 'open' ? 1 : 0; foreach ($overprints as $id => $overprint) { $overPrintClass->updateOverPrint($overprint, $id); /*更新*/ } adminmsg('operate_success', "{$basename}&action="); } elseif ($action == "delete") { initGP(array('id')); $id < 0 && adminmsg("主题印戳ID错误"); $overPrintClass->deleteOverPrint($id); /*删除*/ adminmsg('operate_success', "{$basename}&action="); } else { }
if (!is_superadmin()) { if ($_CONFIG->config_data('opendate') <= get_date('H', PHP_TIME) && $_CONFIG->config_data('enddate') <= get_date('H', PHP_TIME)) { exit('对不起,系统被管理员关闭,开启时间为' . $_CONFIG->config_data('opendate') . '点到' . $_CONFIG->config_data('enddate') . '点'); } else { if ($_CONFIG->config_data('configflag') == '0') { exit('对不起,系统被管理员关闭,请联系管理员!<br>关闭原因:' . $_CONFIG->config_data('closereason')); } } } if ($_GET[fileurl] != "") { $fileurl = $_GET[fileurl]; } else { $fileurl = "home"; } define('ADMIN_ROOT', TOA_ROOT . $fileurl . '/'); initGP(array('ac', 'do')); empty($ac) && ($ac = 'index'); if (!eregi('[a-z_]', $ac)) { $ac = 'index'; } //接收第三方插件 if ($fileurl == "ilohamail") { echo '<script>location.href="' . $ac . '?oausername='******'";</script>'; exit; } //新框架转接 if ($fileurl == "home") { echo '<script>location.href="index.php";</script>'; exit; } require_once 'include/function_' . $fileurl . '.php';
$doReply['limit'] = $job && $jobName == "doReply" ? $factor['limit'] : ""; $doReply['type1'] = $job && $jobName == "doReply" && $factor['type'] == 1 ? "checked" : ""; $doReply['type2'] = $job && $jobName == "doReply" && $factor['type'] == 2 ? "checked" : ""; /**************论坛操作类 end *********************************************************/ include PrintEot('jobhander'); exit; } elseif ($action == "delete") { initGP(array('id')); $id = intval($id); if ($id < 1) { adminmsg($jobService->getLanguage("job_id_null")); } $result = $jobService->deleteJob($id); $result && adminmsg('operate_success', "{$basename}&action="); } elseif ($action == "setting") { initGP(array('isopen', 'ispop')); setConfig('db_job_isopen', $isopen); setConfig('db_job_ispop', $ispop); updatecache_c(); adminmsg('operate_success', "{$basename}&action="); } else { } function getForumSelectHtml($fid) { global $db; $query = $db->query("SELECT f.*,fe.creditset,fe.forumset,fe.commend FROM pw_forums f LEFT JOIN pw_forumsextra fe ON f.fid=fe.fid ORDER BY f.vieworder,f.fid"); $fkeys = array('fid', 'fup', 'ifsub', 'childid', 'type', 'name', 'style', 'f_type', 'cms', 'ifhide'); $catedb = $forumdb = $subdb1 = $subdb2 = $forum_cache = $fname = array(); while ($forums = $db->fetch_array($query)) { $fname[$forums['fid']] = str_replace(array("\\", "'", '<', '>'), array("\\\\", "\\'", '<', '>'), strip_tags($forums['name'])); $forum = array();