예제 #1
0
         exit;
     }
 } elseif ($control == 'pass') {
     if ($bid = intval($_G['sr_bid'])) {
         C::t('#sanree_brand#sanree_brand_businesses')->update($bid, array('isshow' => 1, 'status' => 1));
         fixthread($bid);
         syngroup($bid);
         sendbrand_notice($bid, 'brand_adminpass');
     }
     cpmsg($langs['succeed'], "action=plugins&operation=config&act=" . $act . "&do=businessesaudit&identifier=sanree_brand&pmod=admincp&page=" . $page, 'succeed');
 } elseif (submitcheck('batch')) {
     if ($ids = dimplode($_G['sr_delete'])) {
         C::t('#sanree_brand#sanree_brand_businesses')->update($_G['sr_delete'], array('isshow' => 1, 'status' => 1));
         fixthread($_G['sr_delete']);
         syngroup($_G['sr_delete']);
         sendbrand_notice($_G['sr_delete'], 'brand_pass');
     }
     cpmsg($langs['succeed'], "action=plugins&operation=config&act=" . $act . "&do=businessesaudit&identifier=sanree_brand&pmod=admincp&page=" . $page, 'succeed');
 } elseif (submitcheck('submit')) {
     if ($_G['sr_delete']) {
         C::t('#sanree_brand#sanree_brand_businesses')->delete($_G['sr_delete']);
     }
     cpmsg($langs['succeed'], "action=plugins&operation=config&act=" . $act . "&do=businessesaudit&identifier=sanree_brand&pmod=admincp&cateid=" . $cateid . '&page=' . $page, 'succeed');
 } else {
     $category = C::t('#sanree_brand#sanree_brand_category')->fetch_all_category();
     $cates = array();
     foreach ($category as $v) {
         $cates[$v[cateid]] = $v;
     }
     $skeyword = $_G['sr_skeyword'];
     showsubmenu($menustr);
예제 #2
0
     }
     if ($regprice > 0) {
         $creditdata = array('extcredits' . $creditunit => -intval($regprice));
         updatemembercount($_G[uid], $creditdata, true, 'BRD', 1);
     }
     if ($config["isshen"] == 1) {
         sendbrand_notice($bid, 'brand_pending');
         sanreeupdatecache('newbrandlist');
         sanreeupdatecache('hotbrandlist');
         sanreeupdatecache('recommendlist');
         showmessage(srlang('yesmessage'), $url_forward, array(), $extra);
     } else {
         fixthread($bid);
         syngroup($bid);
         deletecachebrandpic($bid);
         sendbrand_notice($bid, 'brand_pass');
         sanreeupdatecache('newbrandlist');
         sanreeupdatecache('hotbrandlist');
         sanreeupdatecache('recommendlist');
         showmessage(srlang('okmessage'), $url_forward, array(), $extra);
     }
 } else {
     C::t('#sanree_brand#sanree_brand_businesses')->update($bid, $setarr);
     if ($result['status'] == 1) {
         fixthread($bid);
         syngroup($bid);
         deletecachebrandpic($bid);
     }
     sanreeupdatecache('hotbrandlist');
     sanreeupdatecache('recommendlist');
     showmessage(srlang('editmessage'), $url_forward, array(), $extra);