automatic downloader habbo
This is a mini tool but very useful
Step 1: Create notexist-downloadnow.php in the folder on your webserver (www folder depends on your webserver)
PHP Code:
<?php
$requri = getenv ("REQUEST_URI");
$result=file_get_contents("http://images.habbo.com".$requri);
if ($result === false)
{
// file located in www.habbo.com ?
$result=file_get_contents("http://www.habbo.com".$requri);
if ($result === false)
{
return; // not found in images.habbo.com and www.habbo.com
}
}
$dir_ = getenv("DOCUMENT_ROOT").$requri;
$dir = str_replace("\\", "/", $dir_);
$dir = substr($dir, 0, strrpos($dir, "/"));
mkdir($dir,0777,true);
$f = fopen($dir_,'w');
fwrite($f,$result,strlen($result));
fclose($f);
?>
Step 2: Edit the httpd.conf, usually located in Apache2.2/conf (Look 404 and edit it as shown in the video)
Ready when trying to access a file that not exist, is downloaded from habbo (eg if the client wants to open the Chicken.swf and not exist .. will download and automatically placed in the right place)
Logically your files should point to your webhost (I mean that the customer uses the files on your webhost and not those of habbo, such as "external.variables.txt": "http://localhost/gamedata/external_variables/1" etc..)
View Example: YouTube - ‪clip0006.avi‬‏
Download Tool: notexist-downloadnow.php
Re: automatic downloader habbo
Re: automatic downloader habbo
To give you an idea can have all c_images/catalog, etc...
are downloaded automatically.
Re: automatic downloader habbo
Re: automatic downloader habbo
I've improved the code .. Now if there not exist the folders to put the files is created automatically ..
Re: automatic downloader habbo
Nice, but don't work for me..
I get this errors:
Warning: file_get_contents(http://images.habbo.com/notexist-downloadnow.php) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in C:\xampp\htdocs\notexist-downloadnow.php on line 3
Warning: file_get_contents(http://www.habbo.com/notexist-downloadnow.php) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in C:\xampp\htdocs\notexist-downloadnow.php on line 7
Re: automatic downloader habbo
Quote:
Originally Posted by
Imagician
Nice, but don't work for me..
I get this errors:
Warning: file_get_contents(
http://images.habbo.com/notexist-downloadnow.php) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in C:\xampp\htdocs\notexist-downloadnow.php on line 3
Warning: file_get_contents(
http://www.habbo.com/notexist-downloadnow.php) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in C:\xampp\htdocs\notexist-downloadnow.php on line 7
Same here
Re: automatic downloader habbo
Quote:
Originally Posted by
Flowan
Same here
who tried to open?
not have to open the php..
GO TO VIEW VIDEO
Re: automatic downloader habbo
You must change the errordocument 404 in you htaccess to that file ;)
But this is verry smart ;P
Re: automatic downloader habbo
Re: automatic downloader habbo
Let me see .... Its a mistake to send multiple files in a map?
Re: automatic downloader habbo
Re: automatic downloader habbo
Come on why the files are not in the server folder?
[url=http://imageshack.us/photo/my-images/801/42408896.png/]ImageShack
Re: automatic downloader habbo
Quote:
Originally Posted by
Drop
Come on why the files are not in the server folder?
[url=http://imageshack.us/photo/my-images/801/42408896.png/]ImageShack
these in the correct folder?
Re: automatic downloader habbo