Exemplo n.º 1
0
     $bbs_post_array['fid'] = $info_config['fid'];
     if (!empty($info_config['fid'])) {
         $post_array['tid'] = bbs_post($bbs_post_array);
     }
     DB::update("info_post", array('tid' => $post_array['tid']), " post_id='{$post_id}'");
     $feed_template = "{actor} {$info_lang['member_post_inc_php_1']} <a href='{$info_config['root']}' target='_blank'>{$info_config['name']}</a> {$info_lang['member_post_inc_php_2']} <a href='{$info_config['root']}?mod=view&post_id={$post_id}' target='_blank'>{$post_array['post_title']}</a>";
     $feed_array = array('icon' => 'share', 'uid' => $_G['uid'], 'username' => $_G['username'], 'dateline' => TIMESTAMP, 'title_template' => $feed_template);
     DB::insert("home_feed", $feed_array);
     if ($_G['setting']['followforumid']) {
         $fid = $_G['setting']['followforumid'];
         if ($post['post_img_1']) {
             $img = "<img src='{$post['post_img_1']}' />";
         }
         $content = str_replace("{actor}", $_G['username'], $feed_template) . $img;
         $post_array = array('fid' => $fid, 'uid' => $_G['uid'], 'username' => $_G['username'], 'text' => $content);
         $tid = bbs_post($post_array);
         DB::insert("home_follow_feed", array('tid' => $tid, 'uid' => $_G['uid'], 'username' => $_G['username'], 'dateline' => TIMESTAMP));
         DB::insert("forum_threadpreview", array('tid' => $tid, 'relay' => 0, 'content' => $content));
     }
     brian_cat_cache();
     $dcj_url = $info_config['root'] . "?mod=view&post_id={$post_id}";
     session_start();
     $biaoti = $post_array['cat_title'] . '/' . $post_array['subcat_title'];
     $zhifu_yanzheng = $_SESSION['zhifu_yanzheng'] = rand(0, 20000) . time() . rand(0, 10000);
     include template("info:{$style}/{$mod}/dcj_main");
     exit;
     //showmessage($info_lang['post_ok'],$info_config['root']."?mod=view&post_id={$post_id}");
 } elseif ($ac == 'edit') {
     DB::update("forum_thread", array("subject" => $post_array['post_title']), " tid='{$post['tid']}'");
     DB::update("forum_post", array("subject" => $post_array['post_title'], "message" => $tid_text), " tid='{$post['tid']}' AND first=1");
     showmessage($info_lang['edit_ok'], $info_config['root'] . "?mod=view&post_id={$post_id}");
Exemplo n.º 2
0
    $tid_text_post_text = str_replace("\r\n", "<br>", $post_array['post_text']);
    $tid_text = "\r\n[table]\r\n[tr]\r\n[td]{$house_lang['xinxixiangqing']}[/td]\r\n[td][url]{$house_config['root']}?mod=view&post_id={$post_id}[/url][/td]\r\n[/tr]\r\n[tr]\r\n[td]{$house_lang['area']} : [/td]";
    if ($ac == 'post') {
        $tid_text .= "[td]{$post_array['province']} {$post_array['city']} {$post_array['dist']} {$post_array['community']}[/td]";
    } elseif ($ac == 'edit') {
        $tid_text .= "[td]{$post['province']} {$post['city']} {$post['dist']} {$post['community']}[/td]";
    }
    $tid_text .= "\r\n[/tr]\r\n[tr]\r\n[td=2,0,0]\r\n{$tid_text_post_text}\r\n[/td]\r\n[/tr]\r\n[/table]";
    if ($ac == 'post') {
        $bbs_post_array = array();
        $bbs_post_array['title'] = "[{$post_array['profile_type_title']}]" . $post_array['post_title'];
        $bbs_post_array['text'] = $tid_text;
        $bbs_post_array['uid'] = $_G['uid'];
        $bbs_post_array['username'] = $_G['username'];
        $bbs_post_array['fid'] = $house_config['fid'];
        $post_array['tid'] = bbs_post($bbs_post_array);
        DB::update("house_post", array('tid' => $post_array['tid']), " post_id='{$post_id}'");
        showmessage($house_lang['post_ok'], $house_config['root'] . "?mod=view&post_id={$post_id}");
    } elseif ($ac == 'edit') {
        DB::update("forum_thread", array("subject" => $post_array['post_title']), " tid='{$post['tid']}'");
        DB::update("forum_post", array("subject" => $post_array['post_title'], "message" => $tid_text), " tid='{$post['tid']}' AND first=1");
        showmessage($house_lang['edit_ok'], $house_config['root'] . "?mod=view&post_id={$post_id}");
    }
}
if ($ac == 'edit') {
    $post_profile = fetch_all('house_post_profile', " WHERE post_id='{$post_id}'");
    foreach ($post_profile as $key => $value) {
        $value['post_profile_title'] = stripslashes($value['post_profile_title']);
        if ($value['profile_setting_name'] == 'house_allocation') {
            $value['post_profile_title'] = unserialize($value['post_profile_title']);
        }
Exemplo n.º 3
0
                     var_dump($_member);exit;
                     if($member['sale_goods_id']){
     
                         DB::update('sale_member',$_member,"sale_goods_id='{$goods_id}'");
                     }else{
                         DB::insert('sale_member',$_member);
                     }
                 }*/
     //var_dump($sale_config['fid']);exit;
     if ($sale_config['fid']) {
         $bbs = array();
         $bbs['fid'] = $sale_config['fid'];
         $bbs_goods_price = !empty($goods_array['price']) ? "&yen;" . $goods_array['price'] : $_lang['mianyi'];
         $bbs['title'] = "[{$bbs_goods_price}]" . $goods_array['goods_title'];
         $bbs['text'] = "\r\n                    [table]\r\n                    [tr]\r\n                    [td]{$_lang['xinxixiangqing']} : [/td]\r\n                    [td][url]{$sale_config['root']}?mod=view&goods_id={$goods_id}[/url]\r\n                    [/td]\r\n                    [/tr]\r\n                    [tr]\r\n                    [td]{$_lang['area']} : [/td]\r\n                    [td]{$goods_array['province']} {$goods_array['city']} {$goods_array['dist']} {$goods_array['community']}\r\n                    [/td]\r\n                    [/tr]\r\n                    [tr]\r\n                    [td=2,0,0]{$goods_array['goods_text']}\r\n                    [/td]\r\n                    [/tr]\r\n                    [/table]";
         $tid = bbs_post($bbs);
         DB::update("sale_goods", array("tid" => $tid), " goods_id='{$goods_id}'");
     }
     //var_dump($sale_config['root']."?mod=view&goods_id={$goods_id}");exit;
     $new_url = $_SERVER['SERVER_NAME'] . "?mod=view&goods_id={$goods_id}&pwd=check";
     $new_url1 = $sale_config['root'] . "?mod=view&goods_id={$goods_id}&pwd=check";
     $edit_url = "sale.php?mod=post&ac=edit&goods_id={$goods_id}&pwd=check";
     include template("sale:{$style}/member_dcj");
     //显示发布信息之后的提示页面需要审核
     exit;
     //showmessage($_lang['post_ok'],$sale_config['root']."?mod=view&goods_id={$goods_id}");
 } elseif ($ac == 'edit') {
     unset($goods_array['goods_upload_file']);
     unset($goods_array['pwd']);
     DB::update('sale_goods', $goods_array, "goods_id='{$goods_id}'");
     $add_post = array('member_username' => trim($_REQUEST['member_username']), 'member_qq' => trim($_REQUEST['member_qq']), 'member_phone' => trim($_REQUEST['member_phone']), 'member_time' => time(), 'member_email' => trim($_REQUEST['member_email']));