27 lines
894 B
PHP
27 lines
894 B
PHP
<?php
|
|
include_once("./_common.php");
|
|
|
|
$title = str_replace('\"', '"',$_REQUEST['title']);
|
|
$short_url = googl_short_url($_REQUEST['longurl']);
|
|
$title_url = $title.' : '.$short_url;
|
|
|
|
switch($_REQUEST['sns']) {
|
|
case 'facebook' :
|
|
header("Location:http://www.facebook.com/sharer/sharer.php?s=100&p[url]=".$short_url."&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&prefix=".$title_url);
|
|
break;
|
|
case 'gplus' :
|
|
header("Location:https://plus.google.com/share?url=".$short_url);
|
|
break;
|
|
default :
|
|
echo 'Error';
|
|
}
|
|
?>
|