You may modify this and get it work with any extension ,
this one is maked for music , and is requesting direct download link by soap client with login !
This is ten percent luck, twenty percent skillFifteen percent concentrated power of willFive percent pleasure, fifty percent pain
😂And a hundred percent reason to remember the name!
This is ten percent luck, twenty percent skillFifteen percent concentrated power of willFive percent pleasure, fifty percent pain
😂And a hundred percent reason to remember the name!
why 4shared script? 'Fisierul nu este disponibil reincarca pagina !'
i think it's useful for all ->
That tells you that 4shared file doesn't exist , or isn't available , that is a protection act so your user will not be redirected to 4shared and see they'r error page 🙂 .
This is ten percent luck, twenty percent skillFifteen percent concentrated power of willFive percent pleasure, fifty percent pain
😂And a hundred percent reason to remember the name!
charith7788 wrote:
bro when i click the next button in the bottom of the search result page, it comes with 2nd page with type of mp3 as default, check it out
To solve this problem just change this line in the file "4shared.php"
if($page>1)
{ $ppage = $page-1;
echo "<a href=\"4shared.php?page=".$ppage."&query=".htmlspecialchars($_GET['query'])."\">« Prev</a> | ";
}
//if the number of files can't be divided by 10 (pages)
//add 1 to show the rest of items available
if ($toate % 10 !== 0) {$total=$total_pages+1;}
//if the number of files can be divided by 10 (pages)
else{$total = $total_pages;}
if($page<$total)
{
$addpage = $page+1;
echo "<a href=\"4shared.php?page=".$addpage."&query=".htmlspecialchars($_GET['query'])."\">Next »</a>";
}
echo "<form action=\"4shared.php\" method=\"get\">";
echo "<input type=\"hidden\" name=\"query\" value=\"".htmlspecialchars($_GET['query'])."\" size=\"2\"/>";
echo "<input type=\"text\" name=\"page\" value=\"".$page."\" size=\"2\"/>";
echo "<b>/".$total."</b> <input type=\"submit\" value=\"GO!\"/></form>";
}
For this line:
if($page>1)
{$ppage = $page-1;
echo "<a href=\"4shared.php?query=".htmlspecialchars($_GET['query'])."&type=".$type."&page=".$ppage."\">« Prev</a> | ";
}
//if the number of files can't be divided by 10 (pages)
//add 1 to show the rest of items available
if ($toate % 10 !== 0) {$total=$total_pages+1;}
//if the number of files can be divided by 10 (pages)
else{$total = $total_pages;}
if($page<$total)
{
$addpage = $page+1;
echo "<a href=\"4shared.php?query=".htmlspecialchars($_GET['query'])."&type=".$type."&page=".$addpage."\">Next »</a>";
}
echo "<form action=\"4shared.php\" method=\"get\">";
echo "<input type=\"hidden\" name=\"query\" value=\"".htmlspecialchars($_GET['query'])."\" size=\"2\"/>";
echo "<input type=\"text\" name=\"page\" value=\"".$page."\" size=\"2\"/>";
echo "<b>/".$total."</b> <input type=\"submit\" value=\"GO!\"/></form>";
}
I've noticed that the downloads do not work in some hostings and tell the truth I would not know why this happens because as you can see in the [DEMO] downloads work perfectly! 🤷
The Fox wrote:
I've noticed that the downloads do not work in some hostings and tell the truth I would not know why this happens because as you can see in the [DEMO] downloads work perfectly! 🤷
<?php
######################
## forged on gowap.ro#
######################
require_once'config.php';
require_once'functions.php';
$formeruri='http://www.4shared.com/mp3/'.$_GET['id'].'/'.$_GET['mod'].'.html';
# get direct download link
$client = new SoapClient("http://api.4shared.com/servlet/services/DesktopApp?wsdl");
$dlid = $client->getDirectLink(LOGIN,PASSWORD,$formeruri);
$id = $client->decodeLink(LOGIN,PASSWORD,$formeruri);
$info = $client->getFileInfo(LOGIN,PASSWORD,$id);
$regx=array('|\[(.*?)]|i','|\((.*?)\)|i','|www(.*?)$|i');
$nume_fisier=preg_replace($regx,'',utf8_format($info->name));
/// check if 302 and switch $url to header location
/// otherwise use $dlid former url got from api
$head = array_change_key_case(get_headers($dlid, TRUE));
/// switch here
if(!empty($head['location'])){$dlid=$head['location'];}
## if the $url is file location we force to get 200 ok
## the $url location from header must also return 200 ok
$status=get_headers($dlid);
echo $status[0]." ";
if($status[0]=="HTTP/1.1 200 OK") {
echo' <a href="'.htmlspecialchars($dlid).'">'.$nume_fisier.' ['.format_bytes($info->size).'] </a><br/>';
}
/*
## we use else statement if header is not 200 ok
## this works if they modify the header other than 302 or 200
## it will work fine but you will not be able to stop the user
## for beeing redirected if the file doesn't exist anymore .
## uncomment if you want to use it !
else {
echo' <a href="'.htmlspecialchars($dlid).'">'.$nume_fisier.' ['.format_bytes($info->size).'] </a><br/>';
}
*/
## comment this line if you want to use the upper one !
else {
echo"<h1>This file is not available !</h1>";
}
?>
This is ten percent luck, twenty percent skillFifteen percent concentrated power of willFive percent pleasure, fifty percent pain
😂And a hundred percent reason to remember the name!
This is ten percent luck, twenty percent skillFifteen percent concentrated power of willFive percent pleasure, fifty percent pain
😂And a hundred percent reason to remember the name!