Exemplo n.º 1
0
 }
 if ($FD) {
     fields_check($post_fields);
 }
 if ($CP) {
     property_check($post_ppt);
 }
 $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);
 }