mirror of
https://github.com/hakasenyang/link-skipper
synced 2026-08-22 11:03:08 +09:00
Style
This commit is contained in:
+11
-6
@@ -14,7 +14,7 @@
|
|||||||
$temp = $temp[0];
|
$temp = $temp[0];
|
||||||
return $temp;
|
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);
|
$uri = parse_url($url);
|
||||||
$paramType = strtoupper($paramType);
|
$paramType = strtoupper($paramType);
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
CURLOPT_CONNECTTIMEOUT => 5,
|
CURLOPT_CONNECTTIMEOUT => 5,
|
||||||
CURLOPT_SSL_VERIFYPEER => FALSE,
|
CURLOPT_SSL_VERIFYPEER => FALSE,
|
||||||
CURLOPT_HEADER => 1,
|
CURLOPT_HEADER => 1,
|
||||||
);
|
);
|
||||||
curl_setopt_array($ch, $opts);
|
curl_setopt_array($ch, $opts);
|
||||||
if ($uri['host'] != 'sh.st') curl_setopt($ch, CURLOPT_USERAGENT, $this->httph);
|
if ($uri['host'] != 'sh.st') curl_setopt($ch, CURLOPT_USERAGENT, $this->httph);
|
||||||
if ($otherheader) curl_setopt($ch, CURLOPT_HTTPHEADER, $otherheader);
|
if ($otherheader) curl_setopt($ch, CURLOPT_HTTPHEADER, $otherheader);
|
||||||
@@ -48,13 +48,18 @@
|
|||||||
* @return [string] [Original URL]
|
* @return [string] [Original URL]
|
||||||
* Source by http://skizzerz.net/scripts/adfly.php
|
* Source by http://skizzerz.net/scripts/adfly.php
|
||||||
*/
|
*/
|
||||||
public function decode_adfly( $ysmm ) {
|
public function decode_adfly( $ysmm )
|
||||||
|
{
|
||||||
$left = '';
|
$left = '';
|
||||||
$right = '';
|
$right = '';
|
||||||
for ( $i = 0; $i < strlen( $ysmm ); $i++ ) {
|
for ( $i = 0; $i < strlen( $ysmm ); $i++ )
|
||||||
if ( $i % 2 == 0 ) {
|
{
|
||||||
|
if ( $i % 2 == 0 )
|
||||||
|
{
|
||||||
$left .= $ysmm[$i];
|
$left .= $ysmm[$i];
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$right = $ysmm[$i] . $right;
|
$right = $ysmm[$i] . $right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
include_once '_function.php';
|
include_once '_function.php';
|
||||||
$aa = new Redirect();
|
$aa = new Redirect();
|
||||||
$url = $_GET['url'];
|
$url = $_GET['url'];
|
||||||
if($url) {
|
if($url)
|
||||||
|
{
|
||||||
$urls = parse_url($url);
|
$urls = parse_url($url);
|
||||||
switch($urls['host'])
|
switch($urls['host'])
|
||||||
{
|
{
|
||||||
@@ -61,7 +62,12 @@
|
|||||||
echo 'Not supported. (E-mail: contact@hakase.kr)';
|
echo 'Not supported. (E-mail: contact@hakase.kr)';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if($data) echo $data; else echo 'Error';
|
|
||||||
|
if($data)
|
||||||
|
echo $data;
|
||||||
|
else
|
||||||
|
echo 'Error';
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -69,6 +75,7 @@
|
|||||||
<a href='?url=<?php echo urlencode('http://me2.do/G4AB9cJL');?>'>http://me2.do/G4AB9cJL</a><br>
|
<a href='?url=<?php echo urlencode('http://me2.do/G4AB9cJL');?>'>http://me2.do/G4AB9cJL</a><br>
|
||||||
<a href='?url=<?php echo urlencode('https://goo.gl/AIScrC');?>'>https://goo.gl/AIScrC</a><br>
|
<a href='?url=<?php echo urlencode('https://goo.gl/AIScrC');?>'>https://goo.gl/AIScrC</a><br>
|
||||||
<a href='?url=<?php echo urlencode('http://bit.ly/29O1WJt');?>'>http://bit.ly/29O1WJt</a><br>
|
<a href='?url=<?php echo urlencode('http://bit.ly/29O1WJt');?>'>http://bit.ly/29O1WJt</a><br>
|
||||||
<a href='?url=<?php echo urlencode('http://durl.kr/cpubjn');?>'>http://durl.kr/cpubjn</a></p>
|
<a href='?url=<?php echo urlencode('http://durl.kr/cpubjn');?>'>http://durl.kr/cpubjn</a><br>
|
||||||
|
And the other...</p>
|
||||||
<p>How to use? : ?url=URL<br>
|
<p>How to use? : ?url=URL<br>
|
||||||
Supported URL : me2.do / goo.gl / tinyurl.com / me2.do / durl.kr / adf.ly / sh.st / adfoc.us / bc.vc (wait for 5 seconds)</p>
|
Supported URL : me2.do / goo.gl / tinyurl.com / me2.do / durl.kr / adf.ly / sh.st / adfoc.us / bc.vc (wait for 5 seconds)</p>
|
||||||
Reference in New Issue
Block a user