require_once QISHI_ROOT_PATH . 'include/upload.php'; $setsqlarr['audit'] = 2; //添加默认审核中.. !$_FILES['photo_img']['name'] ? showmsg('请上传照片!', 1) : ""; $photo_dir = "../../data/hunter/" . date("Y/m/d/"); make_dir($photo_dir); $setsqlarr['photo_img'] = _asUpFiles($photo_dir, "photo_img", $_CFG['resume_photo_max'], 'gif/jpg/bmp/png', true); if ($setsqlarr['photo_img']) { /* 3.5新增打水印start */ if (extension_loaded('gd')) { include_once QISHI_ROOT_PATH . 'include/watermark.php'; $font_dir = QISHI_ROOT_PATH . "data/contactimgfont/cn.ttc"; if (file_exists($font_dir)) { $tpl = new watermark(); $tpl->img($photo_dir . $setsqlarr['photo_img'], gbk_to_utf8($_CFG['site_name']), $font_dir, 15, 0); } } /* 3.5新增end */ $setsqlarr['photo_img'] = date("Y/m/d/") . $setsqlarr['photo_img']; $auth = $hunter_profile; @unlink("../../data/hunter/" . $auth['photo_img']); !$db->updatetable(table('hunter_profile'), $setsqlarr, " id='" . intval($hunter_profile['id']) . "' AND uid='" . intval($_SESSION['uid']) . "'") ? showmsg("保存失败!", 0) : showmsg("保存成功!", 2); } else { showmsg('保存失败!', 1); } } unset($smarty);
exit("-7"); } require_once QISHI_ROOT_PATH . 'include/upload.php'; !$_FILES['resume_img']['name'] ? exit('请上传图片!') : ""; $datedir = date("Y/m/d/"); $up_dir = "../../data/photo/" . $datedir; make_dir($up_dir); $setsqlarr['img'] = _asUpFiles($up_dir, "resume_img", 800, 'gif/jpg/bmp/png/jpeg', true); if ($setsqlarr['img']) { // 新增打水印 if (extension_loaded('gd')) { include_once QISHI_ROOT_PATH . 'include/watermark.php'; $font_dir = QISHI_ROOT_PATH . "data/contactimgfont/cn.ttc"; if (file_exists($font_dir)) { $tpl = new watermark(); $tpl->img($up_dir . $setsqlarr['img'], gbk_to_utf8($_CFG['site_name']), $font_dir, 13, 0); } } $img_src = $up_dir . $setsqlarr['resume_img']; makethumb($img_src, $up_dir, 600, 600); $setsqlarr['uid'] = $uid; $setsqlarr['resume_id'] = $pid; $setsqlarr['addtime'] = time(); $setsqlarr['img'] = $datedir . $setsqlarr['img']; $img_id = $db->inserttable(table('resume_img'), $setsqlarr, true); if ($img_id > 0) { perfect_resume($_SESSION['uid'], $_SESSION['username'], $pid, 1); $data['save_url'] = $setsqlarr['img']; $data['url'] = $setsqlarr['img']; $data['title'] = $setsqlarr['title']; $data['addtime'] = date('Y-m-d', $setsqlarr['addtime']);
$setsqlarr['audit'] = 2; //添加默认审核中.. !$_FILES['certificate_img']['name'] ? showmsg('请上传图片!', 1) : ""; $certificate_dir = "../../data/" . $_CFG['updir_certificate'] . "/" . date("Y/m/d/"); make_dir($certificate_dir); $setsqlarr['certificate_img'] = _asUpFiles($certificate_dir, "certificate_img", $_CFG['certificate_max_size'], 'gif/jpg/bmp/png', true); if ($setsqlarr['certificate_img']) { /* 3.5新增打水印start */ if (extension_loaded('gd')) { include_once QISHI_ROOT_PATH . 'include/watermark.php'; $font_dir = QISHI_ROOT_PATH . "data/contactimgfont/cn.ttc"; if (file_exists($font_dir)) { $tpl = new watermark(); $tpl->img($certificate_dir . $setsqlarr['certificate_img'], gbk_to_utf8($_CFG['site_name']), $font_dir, 15, 0); } } /* 3.5新增end */ $setsqlarr['certificate_img'] = date("Y/m/d/") . $setsqlarr['certificate_img']; $auth = $company_profile; @unlink("../../data/" . $_CFG['updir_certificate'] . "/" . $auth['certificate_img']); $wheresql = "uid='" . $_SESSION['uid'] . "'"; write_memberslog($_SESSION['uid'], 1, 8002, $_SESSION['username'], "上传了营业执照"); updatetable(table('jobs'), array('company_audit' => 2), $wheresql); updatetable(table('jobs_tmp'), array('company_audit' => 2), $wheresql); !updatetable(table('company_profile'), $setsqlarr, $wheresql) ? showmsg('保存失败!', 1) : showmsg('保存成功,请耐心等待管理员审核!', 2); } else { showmsg('保存失败!', 1);