1. wupload.com (Updated: 4 Sep 2011)
کد:
<?php
if (preg_match('#^http://([a-z0-9]+)\.wupload\.com/#', $url) || preg_match('#^http://wupload\.com/#', $url)){
list($login, $password) = explode(':', $this->get_account('wupload.com'));
if(empty($login)==false && empty($password)==false){
#####################################
# Prepare our ids(Link ID) variable #
#####################################
$regex = '|/file/(([a-z][0-9]+/)?[0-9]+)(/.*)?$|';
$matches = array();
preg_match($regex, $url, $matches);
$ids = str_replace('/', '-', $matches[1]);
//echo "<br><br>ids = " . $ids;
############################################################################
# Post our u(Username),p(Password) & ids(Link ID) variables to wupload API #
############################################################################
$data = $this->curl("http://api.wupload.com/link?method=getDownloadLink","","u=$login&p=$password&ids=$ids");
//echo "<br><br>data = " . $data; # <-- remove // to see error message if plugin is not working properly
####################################################################
# Extract URL, filename and filesize variables from generated page #
####################################################################
preg_match('/"url":"(.*?)"}]},"status"/', $data, $matches);
$URL = $matches[1];
$URL = str_replace('\/','/',$URL);
//echo "<br><br>URL = " . $URL;
preg_match('/"filename":"(.*?)","url":"/', $data, $matches);
$filename = $matches[1];
$filename = str_replace('\/','/',$filename);
//echo "<br><br>filename = " . $filename;
$filesize = JTools::remote_size($URL, "");
//echo "<br><br>filesize = " . $filesize;
}
}
# plugin by ..:: [H] ::..
# updated by afterburnerleech.com (4 Sep 2011)
?>
علاقه مندی ها (بوک مارک ها)