본문 바로가기

Program(Down,Int)/(php)Web_program

카카오톡 보내기 기능

<? if (preg_match('/iPhone|iPod|iPad|BlackBerry|Android|Windows CE|LG|MOT|SAMSUNG|SonyEricsson|IEMobile|Mobile|lgtelecom|PPC|opera mobi|opera mini|nokia|webos/',$_SERVER['HTTP_USER_AGENT']) ) { 
// 모바일기기 일때만 접속 가능 
?>
<tr>
<?
$kakotalk_subject = urlencode($view[wr_subject]);
$kakotalk_urlencode = "http://$_SERVER[SERVER_NAME]/bbs/board.php?bo_table=$bo_table&wr_id=$view[wr_id]";
$kakotalk_url = urlencode($kakotalk_urlencode);
?>
<td align="right"><a href="kakaolink://sendurl?msg=<?=$kakotalk_subject?>&amp;url=<?=$kakotalk_url?>&amp;appid=maxim&amp;appver=0.1"><img src="<?=$board_skin_path?>/img/2010102612404338448.jpg"></a></p></td>
</tr>
<? } // 모바일분류 끝 ?>