//Ä«µå
 $point_id = "@" . $sr[cd_id];
 $point_price = $price_2_value;
 $point_price2 = -1 * $point_price;
 $price_2_id = $sr[price_2_id];
 if (!$is_testing) {
     insert_point($point_id, $point_price, "Àû¸³Æ÷ÀÎÆ®({$share_uniq}:Ä«µå) ", '@passive', $mb_id, $member[mb_id] . "-" . uniqid(""));
 }
 if (!$is_testing) {
     insert_point($point_id, $point_price2, "Àû¸³Æ÷ÀÎÆ®({$share_uniq}:Ä«µå->ȸ¿ø)", '@passive', $mb_id, $member[mb_id] . "-" . uniqid(""));
 }
 if (!$is_testing) {
     insert_point($price_2_id, $point_price, "Àû¸³Æ÷ÀÎÆ®({$share_uniq}:ȸ¿ø<-Ä«µå) ", '@passive', $mb_id, $member[mb_id] . "-" . uniqid(""));
 }
 //Ä«µåÀÇ Àû¸³È½¼ö¸¦ ±â·Ï
 $cd = get_card($sr[cd_id]);
 $cd_count = $cd[cd_count] - 1;
 sql_query("update g4_card set cd_count = '" . $cd_count . "' where cd_id = '" . $cd[cd_id] . "' ");
 //ÇöÀç±îÁöÀÇ ´©Àû Àû¸³±Ý¾×À» °è»êÇÔ
 $cd_Cumulative_amount = sql_fetch("select sum(po_point) as sum from g4_point where mb_id = '@" . $cd[cd_id] . "' and po_content like 'Àû¸³Æ÷ÀÎÆ®%' and po_content like '%:Ä«µå)%'   ");
 //´©Àû Àû¸³±Ý¾×ÀÌ 1000¿øº¸´Ù ³·¾ÆÁö°í ¿ø·¡Æ÷ÀÎÆ®´Â 1000¿øÀÌ ³Ñ¾úÀ»°æ¿ì..
 if ($cd_Cumulative_amount['sum'] < 1000 && $cd_Cumulative_amount['sum'] - $price_2_value >= 1000) {
     //ùÀû¸³ ¼º°ø ÃßõÀο¡°Ô Æ÷ÀÎÆ®¸¦ÁÜ.
     if ($cd[rc_id]) {
         //ÃßõÀ¸·Î °¡ÀԵȰæ¿ì
         $rc = get_recommend($cd[rc_id]);
         if ($cd[cd_recommend]) {
             $rc_mb = get_member($cd[cd_recommend]);
         }
         if (!$rc_mb['mb_id']) {
             if ($cd[mb_id]) {
        if (stristr($next_card_type, 'sorcery')) {
            $next_card_type = 'Sorceries';
        }
        if (stristr($next_card_type, 'land')) {
            $next_card_type = 'Lands';
        }
        if (stristr($next_card_type, 'scheme')) {
            $next_card_type = 'Schemes';
        }
        if ($card_type != $next_card_type) {
            echo "<div class='cardtype'>{$next_card_type}</div>";
            $card_type = $next_card_type;
        }
        ?>
                                <?php 
        $card = get_card($item['card_id']);
        ?>
                                <a data-url="<?php 
        $set = get_set_by_id($card['set_id']);
        $url = '/pictures/' . $set['official_code'] . '/' . $card['card_name'];
        if ($card['variation_number'] != NULL) {
            $url = $url . $card['variation_number'];
        }
        $url = $url . '.jpg';
        $url = fix_url($url);
        echo $url;
        ?>
" href=".?action=details&amp;cardname=<?php 
        echo urlencode($card['card_name']);
        ?>
&amp;setid=<?php