// 트랙백을 보내는 함수
    // 이글루스와 온블로그일때
    if ($trackback_url&&(eregi("egloos",$trackback_url)||eregi("onblog",$trackback_url))) {
        include "./send_trackback.php";
        $blogname = "reedyfox Trackback";
        $result = send_tb($trackback_url,"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI'])."/zboard.php?id=".$id."&no=".$no,$subject,$blogname,$memo);

        if ($result) {
            $trance = array(
            "/tb/"=>"/", //이글루스
            );
            $trackback_url =  strtr($trackback_url , $trance);
            //온블로그 주소 파싱
            if(eregi("onblog",$trackback_url)) {
                $onblog_trackback_url1 = explode("/PingServer?mode=tb&id=", $trackback_url);
                $onblog_url1 = $onblog_trackback_url1[0];
                $onblog_trackback_url2 = explode("/", $onblog_trackback_url1[1]);
                $onblog_url2 = $onblog_trackback_url2[0];
                $onblog_url3 = $onblog_trackback_url2[1];
                $trackback_url = $onblog_url1."/blog/blog_post_list.jsp?owner_uid=".$onblog_url2."&post_uid=".$onblog_url3;
            }
            $memo = addSlashes("【b】트랙백으로 이어진 앞글【/b】 : [hyperlink|".$trackback_url."|".$trackback_url."|hyperlink]\r\n").$memo;
        } else {
        ?>
            <script language=javascript>
            alert("트랙백에 실패했습니다. : <?=$tb_error_str?>");
            </script>
        <?
        
}
    
// 그밖의 블로그들
    
} elseif($trackback_url) {
        include 
"./tb_functions.php";
        
$result =  postTrackBack($subject"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['REQUEST_URI'])."/zboard.php?id=".$id."&no=".$no$memo$trackback_url);
        if (
$result["value"]) {
            
                if (
$result['link']) {
                    
$result_url $result['link'];
                    
// 제로블로그에서 퍼머링크가 리턴되지 않을 경우
                    
if(eregi("zerotb",$result_url)) {
                        
$trance1 = array(
                                
"zerotb.php"=>"zboard.php",
                                
"&no"=>"&go_no",
                                );
                        
$result_url =  strtr($result_url $trance1);
                    }
                    
// 일반적인 치환
                    
$trance2 = array(
                    
"rserver.php?mode=tb&sl"=>"index.php?pl"//태터툴즈
                    
"trackback.php?bid=talk&id"=>"miniwinis/board/index.php?bid=talk&mode=read&id"//미니위니 자게
                    
"trackback.php?bid=qna&id"=>"miniwinis/board/index.php?bid=qna&mode=read&id"//미니위니 질게
                    
"trackback.php?bid=share&id"=>"miniwinis/board/index.php?bid=share&mode=read&id"//미니위니 알짜
                    
);
                    
$result_url =  strtr($result_url $trance2);
                 }

                
$memo addSlashes("【b】트랙백으로 이어진 앞글【/b】 : [hyperlink|".$result_url."|".$result['title']."|hyperlink]\r\n").$memo;
        } else {
        
?>
            <script language=javascript>
            alert("트랙백에 실패했습니다. : <?=$result["message"]?>");
            </script>
        <?
        
}
    }