예제 #1
0
    if (!$_REQUEST['pas']) {
        //显示要编辑的时候输入密码的页面
        include template("info:{$style}/{$mod}/dcj_main_edit_pass");
        exit;
    }
    //var_dump($post);exit;
    for ($i = 0; $i < 30; $i++) {
        $new_name = 'post_img_' . ($i + 1);
        if ($post[$new_name]) {
            $post_img[$i]['img'] = $post[$new_name];
            $post_img[$i]['post_id'] = $post['post_id'];
        }
    }
} elseif ($ac == 'post') {
    if ($info_config['maxpost'] > 0) {
        $member_broker = is_info_broker($_G['uid']);
        /* 		if(!$member_broker){
             $maxpost= DB::result_first("SELECT count(post_id) FROM ".DB::table('info_post')." WHERE profile_type_id!='2' AND member_uid ='{$_G['uid']}' ");
             if($maxpost > $info_config['maxpost']){
             $message = "{$info_lang['member_post_1']} {$info_config['maxpost']} {$info_lang['member_post_2']} . <a href='{$info_config['broker_link']}'>{$info_lang['member_post_3']}</a>";
             showmessage($message);
             }
             } */
    }
    /* 	$has_member = DB::result_first("SELECT member_uid FROM ".DB::table('info_member')." WHERE member_uid='{$_G['uid']}'");
        if(empty($has_member)){
        showmessage($info_lang['member_post_4'],$info_config['root']."?mod=member&op=profile");
        } */
    $post['subcat_id'] = $subcat_id;
    $post['cat_id'] = $cat_array[$subcat_id]['cat_pid'];
    if ($area_id) {
예제 #2
0
}*/
$post = fetch_all('info_post', " WHERE post_id='{$post_id}'", "*", "0");
$now_time = time();
if ($now_time > $post['post_begin_time'] && $now_time < $post['post_end_time']) {
    $post['goods_status'] = 1;
} else {
    $post['goods_status'] = 0;
}
//蜘蛛采集的数据不需要调用discuzcode函数转码,通过密码前5位判断
if (substr($post['pwd'], 0, 5) != '_auto') {
    //以下代码会将HTML作为文本输出
    require_once libfile('function/discuzcode');
    $post['post_text'] = @discuzcode($post['post_text'], -1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1);
}
$member = fetch_all('info_member', " as im LEFT JOIN " . DB::table("common_member_verify") . " as cmv ON im.member_uid = cmv.uid WHERE im.member_uid='{$post['member_uid']}'", '*', 0);
$member_borker = is_info_broker($member['member_uid']);
if ($member_borker) {
    $_member_profle = fetch_all('info_member_profile', " WHERE member_uid='{$member['member_uid']}'");
    foreach ($_member_profle as $key => $value) {
        $_member_profle[$value['profile_setting_name']] = $value['post_profile_title'];
        unset($_member_profle[$key]);
    }
    $member['profile'] = $_member_profle;
    $broker_verify = DB::result_first("SELECT verify{$info_config['verify']} FROM " . DB::table('common_member_verify') . " WHERE uid='{$member['member_uid']}' ");
}
$profile_type_id = $post['profile_type_id'];
$profile_type_title = get_profile_type_title($profile_type_id);
$op = addslashes($_GET['op']);
if ($op == 'send_email') {
    $to_email = trim($_REQUEST['to_email']);
    $obj = trim($_REQUEST['obj']);
예제 #3
0
$__s_site_url = $__a_info_config['siteurl'];
$__s_paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
$__s_paypal_account = '*****@*****.**';
//$__s_site_url = $_SERVER['SERVER_NAME'] . "/";
//error_reporting(E_ALL);
if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
//if(empty($_G['uid']) ) {	showmessage($info_lang['login'],'',array(),array('login' => true));}
$biaozhun_arr = array(1, 2, 3);
$biaozhun_time = array(1 => 3, 2 => 6, 3 => 12);
$biaozhun_money = array(1 => 240, 2 => 360, 3 => 600);
$zhifu_arr = array(1, 2, 3);
$op_array = array('post', 'postlist', 'mypostup', 'profile', 'setpostup', 'dcj_zhifu', 'dcj_return', 'dcj_success_return');
$op = in_array($_GET['op'], $op_array) ? addslashes($_GET['op']) : 'mypost';
$is_info_broker = is_info_broker();
if ($op == 'post') {
    require_once DISCUZ_ROOT . "./source/plugin/info/module/{$mod}/{$mod}_{$op}.inc.php";
}
if ($_REQUEST['op'] == 'jubao') {
    $goods_id = $_REQUEST['post_id'];
    $goods_title = fetch_all('info_post', " WHERE post_id='{$goods_id}'", " post_title ");
    $goods_title = $goods_title[0]['post_title'];
    DB::insert('info_post_jubao', array('post_id' => $goods_id, 'reason' => $_REQUEST['reason'], 'post_title' => $goods_title, 'jubao_time' => time()));
    /* $admin_group = unserialize($info_config['admingroup']);
       $admin_group = dimplode($admin_group);
       $notice_uids = fetch_all('common_member'," WHERE groupid IN ({$admin_group}) OR adminid='1' ",' uid ');
       foreach($notice_uids as $u){
       $notice = $info_config['name']." : ".$info_lang['note_new_jubao'];
       notification_add($u['uid'],'system',$notice);
       } */