2">
U}@WRf^qouzŬȴ͸Ͻ T%X'Y (Z )[ +\-^,]-^-]/`._/`/_0`1a2b3b4c4d6e5d6e7f9g:h#>l$?l'Bm)Co+Ep,Fq0It1Ju5Nw8Py;S{AYD[G^JaI_McPeQfShVkYm[p[ocvexgzj|qrïɭDz팛{Ξе۷WZ!["\$^%_&_'`(a)a)b*a*c*b,c,d-e.e.e/f0g1h1g2h4i6k8m9m;orC3+L҈ >EP 2X@ \$ *@p5<Y %m J 'MS&`g$t'Q%LEPXqф 9]Ye8e <&K07`Fĵ hX%* )_C` x'< +ZawTDXai4F1 Vtb'ܗ%@  8!6P Ҏ:^A6荈(DS"Y YhЖ| =A *@24CDQU|!4\ T؅*B1 EL20@~F(@J(BE kO"0b`Y"6;CbTb 0T ҵ绰15607710285
            ҵQQ:4286077410
    нget_one("SELECT COUNT(*) AS num FROM {$table} WHERE $sql AND status>1"); $limit_used = $r['num']; $limit_free = $MG['mall_limit'] > $limit_used ? $MG['mall_limit'] - $limit_used : 0; } if(check_group($_groupid, $MOD['group_refresh'])) $MOD['credit_refresh'] = 0; switch($action) { case 'add': if($MG['mall_limit'] && $limit_used >= $MG['mall_limit']) dalert(lang($L['info_limit'], array($MG[$MOD['module'].'_limit'], $limit_used)), $_userid ? $MODULE[2]['linkurl'].$DT['file_my'].'?mid='.$mid : $MODULE[2]['linkurl'].$DT['file_my']); if($MG['day_limit']) { $today = $today_endtime - 86400; $r = $db->get_one("SELECT COUNT(*) AS num FROM {$table} WHERE $sql AND addtime>$today"); if($r && $r['num'] >= $MG['day_limit']) dalert(lang($L['day_limit'], array($MG['day_limit'])), $_userid ? $MODULE[2]['linkurl'].$DT['file_my'].'?mid='.$mid : $MODULE[2]['linkurl'].$DT['file_my']); } if($MG['mall_free_limit'] >= 0) { $fee_add = ($MOD['fee_add'] && (!$MOD['fee_mode'] || !$MG['fee_mode']) && $limit_used >= $MG['mall_free_limit'] && $_userid) ? dround($MOD['fee_add']) : 0; } else { $fee_add = 0; } $fee_currency = $MOD['fee_currency']; $fee_unit = $fee_currency == 'money' ? $DT['money_unit'] : $DT['credit_unit']; $need_password = $fee_add && $fee_currency == 'money'; $need_captcha = $MOD['captcha_add'] == 2 ? $MG['captcha'] : $MOD['captcha_add']; $need_question = $MOD['question_add'] == 2 ? $MG['question'] : $MOD['question_add']; $could_elite = check_group($_groupid, $MOD['group_elite']) && $MOD['credit_elite'] && $_userid; $could_color = check_group($_groupid, $MOD['group_color']) && $MOD['credit_color'] && $_userid; if($submit) { if($fee_add && $fee_add > ($fee_currency == 'money' ? $_money : $_credit)) dalert($L['balance_lack']); if($need_password && !is_payword($_username, $password)) dalert($L['error_payword']); if(!$_userid) { if(strlen($post['company']) < 4) dalert($L['type_company']); if($AREA) { if(!isset($AREA[$post['areaid']])) dalert($L['type_area']); } else { if(!$post['areaid']) dalert($L['type_area']); } if(strlen($post['truename']) < 4) dalert($L['type_truename']); if(strlen($post['mobile']) < 7) dalert($L['type_mobile']); } if($MG['add_limit']) { $last = $db->get_one("SELECT addtime FROM {$table} WHERE $sql ORDER BY itemid DESC"); if($last && $DT_TIME - $last['addtime'] < $MG['add_limit']) dalert(lang($L['add_limit'], array($MG['add_limit']))); } $msg = captcha($captcha, $need_captcha, true); if($msg) dalert($msg); $msg = question($answer, $need_question, true); if($msg) dalert($msg); if($do->pass($post)) { $CAT = get_cat($post['catid']); if(!$CAT || !check_group($_groupid, $CAT['group_add'])) dalert(lang($L['group_add'], array($CAT['catname']))); $post['addtime'] = $post['level'] = $post['fee'] = 0; $post['style'] = $post['template'] = $post['note'] = $post['filepath'] = ''; if(!$IMVIP && $MG['uploadpt']) $post['thumb1'] = $post['thumb2'] = ''; $need_check = $MOD['check_add'] == 2 ? $MG['check'] : $MOD['check_add']; $post['status'] = get_status(3, $need_check); $post['hits'] = 0; $post['username'] = $_username; if($FD) fields_check($post_fields); if($CP) property_check($post_ppt); if($could_elite && isset($elite) && $post['thumb'] && $_credit > $MOD['credit_elite']) { $post['level'] = 1; credit_add($_username, -$MOD['credit_elite']); credit_record($_username, -$MOD['credit_elite'], 'system', lang($L['credit_record_elite'], array($MOD['name'])), $post['title']); } if($could_color && $color && $_credit > $MOD['credit_color']) { $post['style'] = $color; credit_add($_username, -$MOD['credit_color']); credit_record($_username, -$MOD['credit_color'], 'system', $L['title_color'], '['.$MOD['name'].']'.$post['title']); } $do->add($post); if($FD) fields_update($post_fields, $table, $do->itemid); if($CP) property_update($post_ppt, $moduleid, $post['catid'], $do->itemid); if($MOD['show_html'] && $post['status'] > 2) $do->tohtml($do->itemid); if($fee_add) { if($fee_currency == 'money') { money_add($_username, -$fee_add); money_record($_username, -$fee_add, $L['in_site'], 'system', lang($L['credit_record_add'], array($MOD['name'])), 'ID:'.$do->itemid); } else { credit_add($_username, -$fee_add); credit_record($_username, -$fee_add, 'system', lang($L['credit_record_add'], array($MOD['name'])), 'ID:'.$do->itemid); } } $msg = $post['status'] == 2 ? $L['success_check'] : $L['success_add']; $js = ''; if(isset($post['sync_sina']) && $post['sync_sina']) $js .= sync_weibo('sina', $moduleid, $do->itemid); if(isset($post['sync_qq']) && $post['sync_qq']) $js .= sync_weibo('qq', $moduleid, $do->itemid); if($_userid) { set_cookie('dmsg', $msg); $forward = $MODULE[2]['linkurl'].$DT['file_my'].'?mid='.$mid.'&status='.$post['status']; $msg = ''; } else { $forward = $MODULE[2]['linkurl'].$DT['file_my'].'?mid='.$mid.'&action=add'; } $js .= 'window.onload=function(){parent.window.location="'.$forward.'";}'; dalert($msg, '', $js); } else { dalert($do->errmsg, '', ($need_captcha ? reload_captcha() : '').($need_question ? reload_question() : '')); } } else { if($itemid) { $MG['copy'] && $_userid or dalert(lang('message->without_permission_and_upgrade'), 'goback'); $do->itemid = $itemid; $item = $do->get_one(); if(!$item || $item['username'] != $_username) message(); extract($item); if($step) { extract(unserialize($step)); $a2 > 0 or $a2 = ''; $a3 > 0 or $a3 = ''; $p2 > 0 or $p2 = ''; $p3 > 0 or $p3 = ''; } else { $a1 = 1; $p1 = $item['price']; $a2 = $a3 = $p2 = $p3 = ''; } $thumb = $thumb1 = $thumb2 = ''; } else { foreach($do->fields as $v) { $$v = ''; } $a1 = 1; $a2 = $a3 = $p1 = $p2 = $p3 = ''; $boc = 1; $content = ''; $catid = 0; $mycatid = 0; } $item = array(); $mycatid_select = type_select('mall-'.$_userid, 0, 'post[mycatid]', $L['type_default']); } break; case 'edit': $itemid or message(); $do->itemid = $itemid; $item = $do->get_one(); if(!$item || $item['username'] != $_username) message(); if($MG['edit_limit'] < 0) message($L['edit_refuse']); if($MG['edit_limit'] && $DT_TIME - $item['addtime'] > $MG['edit_limit']*86400) message(lang($L['edit_limit'], array($MG['edit_limit']))); if($submit) { if($do->pass($post)) { $CAT = get_cat($post['catid']); if(!$CAT || !check_group($_groupid, $CAT['group_add'])) dalert(lang($L['group_add'], array($CAT['catname']))); $post['addtime'] = timetodate($item['addtime']); $post['level'] = $item['level']; $post['fee'] = $item['fee']; $post['style'] = addslashes($item['style']); $post['template'] = addslashes($item['template']); $post['filepath'] = addslashes($item['filepath']); $post['note'] = addslashes($item['note']); if(!$IMVIP && $MG['uploadpt']) { $post['thumb1'] = $item['thumb1']; $post['thumb2'] = $item['thumb2']; } $need_check = $MOD['check_add'] == 2 ? $MG['check'] : $MOD['check_add']; $post['status'] = get_status($item['status'], $need_check); $post['hits'] = $item['hits']; $post['username'] = $_username; if($FD) fields_check($post_fields); if($CP) property_check($post_ppt); if($FD) fields_update($post_fields, $table, $do->itemid); if($CP) property_update($post_ppt, $moduleid, $post['catid'], $do->itemid); $do->edit($post); set_cookie('dmsg', $L['success_edit']); dalert('', '', 'parent.window.location="'.$forward.'"'); } else { dalert($do->errmsg); } } else { extract($item); if($step) { extract(unserialize($step)); $a2 > 0 or $a2 = ''; $a3 > 0 or $a3 = ''; $p2 > 0 or $p2 = ''; $p3 > 0 or $p3 = ''; } else { $a1 = 1; $p1 = $item['price']; $a2 = $a3 = $p2 = $p3 = ''; } $mycatid_select = type_select('mall-'.$_userid, 0, 'post[mycatid]', $L['type_default'], $mycatid); } break; case 'delete': $MG['delete'] or message(); $itemid or message(); $itemids = is_array($itemid) ? $itemid : array($itemid); foreach($itemids as $itemid) { $do->itemid = $itemid; $item = $db->get_one("SELECT username FROM {$table} WHERE itemid=$itemid"); if(!$item || $item['username'] != $_username) message(); $do->recycle($itemid); } dmsg($L['success_delete'], $forward); break; case 'refresh': $MG['refresh_limit'] > -1 or dalert(lang('message->without_permission_and_upgrade'), 'goback'); $itemid or message($L['select_goods']); $itemids = $itemid; $s = $f = 0; foreach($itemids as $itemid) { $do->itemid = $itemid; $item = $db->get_one("SELECT username,edittime FROM {$table} WHERE itemid=$itemid"); $could_refresh = $item && $item['username'] == $_username; if($could_refresh && $MG['refresh_limit'] && $DT_TIME - $item['edittime'] < $MG['refresh_limit']) $could_refresh = false; if($could_refresh && $MOD['credit_refresh'] && $MOD['credit_refresh'] > $_credit) $could_refresh = false; if($could_refresh) { $do->refresh($itemid); $s++; if($MOD['credit_refresh']) $_credit = $_credit - $MOD['credit_refresh']; } else { $f++; } } if($MOD['credit_refresh'] && $s) { $credit = $s*$MOD['credit_refresh']; credit_add($_username, -$credit); credit_record($_username, -$credit, 'system', lang($L['credit_record_refresh'], array($MOD['name'])), lang($L['refresh_total'], array($s))); } $msg = lang($L['refresh_success'], array($s)); if($f) $msg = $msg.' '.lang($L['refresh_fail'], array($f)); dmsg($msg, $forward); break; case 'onsale': $itemid or message($L['select_goods']); $itemids = $itemid; foreach($itemids as $itemid) { $do->itemid = $itemid; $item = $db->get_one("SELECT username FROM {$table} WHERE itemid=$itemid"); if($item && $item['username'] == $_username) $do->onsale($itemid); } dmsg($L['success_onsale'], $forward); break; case 'unsale': $itemid or message($L['select_goods']); $itemids = $itemid; foreach($itemids as $itemid) { $do->itemid = $itemid; $item = $db->get_one("SELECT username FROM {$table} WHERE itemid=$itemid"); if($item && $item['username'] == $_username) $do->unsale($itemid); } dmsg($L['success_unsale'], $forward); break; case 'relate_del': $itemid or message($L['select_goods']); $do->itemid = $itemid; $M = $do->get_one(); ($M && $M['status'] == 3) or message($L['select_goods']); $id = isset($id) ? intval($id) : 0; $id or message($L['select_goods']); $do->itemid = $id; $A = $do->get_one(); $do->relate_del($M, $A); dmsg($L['success_delete'], '?mid='.$mid.'&itemid='.$itemid.'&action=relate'); break; case 'relate_add': $relate_name = isset($relate_name) ? dhtmlspecialchars(trim($relate_name)) : ''; $relate_name or message($L['mall_relate_name'
  • ˾±˾˾
  • ·ؽ ʽ
  • ʵʩ߲Ԥ Ƶ
  • ٽҵӪԵ߽
  • ڷ Чϵ֧
  • ҵͶʻ
  • '3'/>
  • û::֤:

    ڡݻרߣ15607710285Ѷ

    Ѷ