본문 sns 사용시 트위터, 페이스북 보내기 일부 코드 수정
This commit is contained in:
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
|
|
||||||
$title = str_replace('\"', '"',$_REQUEST['title']);
|
$title = urlencode(str_replace('\"', '"',$_REQUEST['title']));
|
||||||
$short_url = googl_short_url($_REQUEST['longurl']);
|
$short_url = googl_short_url($_REQUEST['longurl']);
|
||||||
$title_url = $title.' : '.$short_url;
|
$title_url = $title.' : '.$short_url;
|
||||||
|
|
||||||
switch($_REQUEST['sns']) {
|
switch($_REQUEST['sns']) {
|
||||||
case 'facebook' :
|
case 'facebook' :
|
||||||
header("Location:http://www.facebook.com/sharer/sharer.php?s=100&p[url]=".$short_url."&p[title]=".$title);
|
header("Location:http://www.facebook.com/sharer/sharer.php?s=100&u=".$short_url."&p=".$title);
|
||||||
break;
|
break;
|
||||||
case 'twitter' :
|
case 'twitter' :
|
||||||
header("Location:http://twitter.com/home?status=".$title_url);
|
header("Location:http://twitter.com/home?status=".$title_url);
|
||||||
|
|||||||
Reference in New Issue
Block a user