diff --git a/_function.php b/_function.php
index 72098ee..ac01bc5 100644
--- a/_function.php
+++ b/_function.php
@@ -14,7 +14,7 @@
$temp = $temp[0];
return $temp;
}
- public function WEBParsing($url, $cookie=NULL, $postparam=NULL, $otherheader=NULL)
+ public function WEBParsing($url, $cookie = NULL, $postparam = NULL, $otherheader = NULL)
{
$uri = parse_url($url);
$paramType = strtoupper($paramType);
@@ -27,7 +27,7 @@
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_HEADER => 1,
- );
+ );
curl_setopt_array($ch, $opts);
if ($uri['host'] != 'sh.st') curl_setopt($ch, CURLOPT_USERAGENT, $this->httph);
if ($otherheader) curl_setopt($ch, CURLOPT_HTTPHEADER, $otherheader);
@@ -48,13 +48,18 @@
* @return [string] [Original URL]
* Source by http://skizzerz.net/scripts/adfly.php
*/
- public function decode_adfly( $ysmm ) {
+ public function decode_adfly( $ysmm )
+ {
$left = '';
$right = '';
- for ( $i = 0; $i < strlen( $ysmm ); $i++ ) {
- if ( $i % 2 == 0 ) {
+ for ( $i = 0; $i < strlen( $ysmm ); $i++ )
+ {
+ if ( $i % 2 == 0 )
+ {
$left .= $ysmm[$i];
- } else {
+ }
+ else
+ {
$right = $ysmm[$i] . $right;
}
}
diff --git a/index.php b/index.php
index e704b84..0613bd4 100644
--- a/index.php
+++ b/index.php
@@ -8,7 +8,8 @@
include_once '_function.php';
$aa = new Redirect();
$url = $_GET['url'];
- if($url) {
+ if($url)
+ {
$urls = parse_url($url);
switch($urls['host'])
{
@@ -61,7 +62,12 @@
echo 'Not supported. (E-mail: contact@hakase.kr)';
break;
}
- if($data) echo $data; else echo 'Error';
+
+ if($data)
+ echo $data;
+ else
+ echo 'Error';
+
exit;
}
?>
@@ -69,6 +75,7 @@
'>http://me2.do/G4AB9cJL
'>https://goo.gl/AIScrC
'>http://bit.ly/29O1WJt
-'>http://durl.kr/cpubjn
How to use? : ?url=URL
Supported URL : me2.do / goo.gl / tinyurl.com / me2.do / durl.kr / adf.ly / sh.st / adfoc.us / bc.vc (wait for 5 seconds)