sns 공유 링크 수정 및 사용하지 않는 파일 삭제

This commit is contained in:
chicpro
2014-06-20 11:42:59 +09:00
parent d3ad579381
commit 7a18b3530c
2 changed files with 1 additions and 31 deletions

View File

@ -1436,7 +1436,7 @@ function get_sns_share_link($sns, $url, $title, $img)
switch($sns) {
case 'facebook':
$str = '<a href="https://www.facebook.com/sharer/sharer.php?u='.urlencode($url).'&amp;t='.urlencode($title).'" class="share-facebook" target="_blank"><img src="'.$img.'" alt="페이스북에 공유"></a>';
$str = '<a href="https://www.facebook.com/sharer/sharer.php?u='.urlencode($url).'&amp;p='.urlencode($title).'" class="share-facebook" target="_blank"><img src="'.$img.'" alt="페이스북에 공유"></a>';
break;
case 'twitter':
$str = '<a href="https://twitter.com/share?url='.urlencode($url).'&amp;text='.urlencode($title).'" class="share-twitter" target="_blank"><img src="'.$img.'" alt="트위터에 공유"></a>';

View File

@ -1,30 +0,0 @@
<?php
include_once('./_common.php');
$url = $_REQUEST['url'];
$title = str_replace('\"', '"',$_REQUEST['title']);
$title_url = $title.' : '.$url;
//$title = strcut_utf8($title, 140);
switch($_REQUEST['sns']) {
case 'facebook' :
header("Location:http://www.facebook.com/sharer/sharer.php?s=100&amp;p[url]=".$url."&amp;p[title]=".$title);
break;
case 'twitter' :
header("Location:http://twitter.com/home?status=".$title_url);
break;
case 'me2day' :
header("Location:http://me2day.net/posts/new?new_post[body]=".$title_url);
break;
case 'yozm' :
header("Location:http://yozm.daum.net/api/popup/prePost?sourceid=41&amp;prefix=".$title_url);
break;
case 'google' :
header("Location:https://plus.google.com/share?url=".$url);
break;
default :
echo 'Error';
break;
}
?>