public static function set_report($order_id, $to_uid, $report_type, $file_name, $desc, $reason) { global $uid; global $_lang; $order_info = self::get_order_info($order_id); $transname = keke_report_class::get_transrights_name($report_type); if ($order_info['order_uid'] == $uid || $order_info['seller_uid'] == $uid) { if ($order_info['order_uid'] == $uid && $uid == $to_uid) { return $_lang['buyer_can_not_to_self'] . $transname; } elseif ($order_info['seller_uid'] == $uid && $uid == $to_uid) { return $_lang['seller_can_not_to_self'] . $transname; } } else { return $_lang['no_trans_not_to_order'] . $transname; } $uid == $order_info['order_uid'] and $user_type = '2' or $user_type = '1'; return keke_report_class::add_report('order', $order_id, $to_uid, $desc, $report_type, $order_info['order_status'], $order_info['obj_id'], $user_type, $file_name, $reason); }
public function set_report($obj, $obj_id, $to_uid, $to_username, $report_type, $file_name, $desc) { $this->set_agreement_status($type = 'agree_status', 4); keke_report_class::add_report($obj, $obj_id, $to_uid, $to_username, $desc, $report_type, '6', $this->_task_id, $this->_user_role, $file_name); }
public static function set_report($obj_id, $to_uid, $report_type, $file_name, $desc, $reason) { global $uid; global $_lang; $service_info = self::get_service_info($obj_id); $transname = keke_report_class::get_transrights_name($report_type); if ($service_info['uid'] == $uid) { return $_lang['can_not_to_self'] . $transname; } $user_type = '2'; return keke_report_class::add_report('product', $obj_id, $to_uid, $desc, $report_type, $service_info['service_status'], $obj_id, $user_type, $file_name, $reason); }
public function set_report($obj, $obj_id, $to_uid, $report_type, $file_name, $desc, $reason) { global $_lang; $this->_uid != $this->_guid and $user_type = '1' or $user_type = '2'; return keke_report_class::add_report($obj, $obj_id, $to_uid, $desc, $report_type, $this->_task_status, $this->_task_id, $user_type, $file_name, $reason); }