<?php if (!defined('IN_DISCUZ')) { exit('Access Denied'); } if (empty($_G['uid'])) { showmessage($house_lang['login'], '', array(), array('login' => true)); } $post_id = intval($_GET['post_id']); $ac = !empty($_GET['ac']) ? addslashes($_GET['ac']) : 'post'; $my_credit = fetch_all("common_member_count", " WHERE uid='{$_G['uid']}'", " extcredits{$house_config['extcredits']} ", "0"); $my_credit = $my_credit["extcredits{$house_config['extcredits']}"]; $profile_type_id = !empty($_GET['profile_type_id']) ? intval($_GET['profile_type_id']) : 1; $profile_setting = get_profile_setting($profile_type_id); $profile_type_title = get_profile_type_title($profile_type_id); if (!empty($post_id)) { $post = fetch_all('house_post', " WHERE post_id='{$post_id}'", "*", 0); } $post['post_map'] = !empty($post['post_map']) ? $post['post_map'] : $house_config['google_map']; if (submitcheck('button_post_submit') || submitcheck('button_edit_submit')) { if (empty($_GET['post_text']) || empty($_GET['post_title']) || empty($_GET['post_begin_time']) || empty($_GET['post_end_time'])) { showmessage($house_lang['must_post']); } if ($ac == 'post' && $house_config['postcredit'] > 0) { $new_credit = $my_credit - $house_config['postcredit']; if ($new_credit < 0) { showmessage($house_lang['post'] . $house_config['credit_unit'] . $house_lang['not_credit']); } else { updatemembercount($_G['uid'], array($house_config['extcredits'] => -$house_config['postcredit']), 1, '', '', '', $house_lang['fabu_koufei'], $house_config['name'] . ": <a href='{$house_config['root']}?mod=member' target='_blank'>{$house_lang['about_info']}</a>"); } }
$resume['resume_skill_bbcode'] = discuzcode($resume['resume_skill'], 0, 0); $resume['resume_language_bbcode'] = discuzcode($resume['resume_language'], 0, 0); $gpc_resume = gpc('resume_'); $gpc_resume['resume_birthday'] = strtotime($gpc_resume['resume_birthday']); if (submitcheck('submit_resume')) { if (!empty($resume['user_id'])) { DB::update('house_member_resume', $gpc_resume, " user_id='{$user_id}' "); showmessage($house_lang['edit_ok'], $house_config['root'] . "?mod=member&op=resume"); } else { $gpc_resume['user_id'] = $user_id; DB::insert('house_member_resume', $gpc_resume); showmessage($house_lang['edit_ok'], $house_config['root'] . "?mod=member&op=resume"); } } $profile_type_id = "1"; $profile_setting = get_profile_setting(); $district = fetch_all('common_district', " WHERE level = '1'"); } elseif ($op == 'mycredit') { if (empty($house_config['extcredits'])) { showmessage($house_lang['no_extcredits']); } else { $credit = DB::result_first("SELECT extcredits{$house_config['extcredits']} FROM " . DB::table('common_member_count') . " WHERE uid='{$_G['uid']}'"); $credit_log = fetch_all('house_up', " as su LEFT JOIN " . DB::table('house_post') . " as sg ON su.post_id = sg.post_id WHERE sg.member_uid='{$_G['uid']}'"); } } elseif ($op == 'fav') { if ($_GET['action'] == 'del') { DB::delete('house_member_fav', " post_id='" . intval($_GET['post_id']) . "' AND user_id='{$_G['uid']}'"); showmessage($house_lang['done'], $house_config['root'] . "?mod=member&op=fav"); } $fav_list = fetch_all("house_post", " as jp LEFT JOIN " . DB::table('house_member_fav') . " as jma ON jma.post_id = jp.post_id WHERE jma.user_id='{$_G['uid']}'"); } elseif ($op == 'apply') {