phpUploader v2.1 - Opensource php based auto uploader

Status
Not open for further replies.

Lifetalk

Active Member
4,392
2008
2,119
530
Wtf is this? Who the heck are you?
This is phpUploader. An open source and/or free, php based auto uploader. I'm lifetalk - a pretty much unknown figure around here.

What does it do?
FFS! I can't be arsed to keep updating this paragraph, lol. This shit does a lot of stuff. Have a look at the changelog.

Features:
- Downloads from RS/HF/FS/MU (Vanilla and LeechMod)
- Extracts files (Vanilla)
- Can extract password protected RAR's (Vanilla)
- Renames the extracted files (Vanilla)
- Changes the MD5 hash of the files (Vanilla)
- If extracted/downloaded files are videos, MTN will create a screencap and upload it to LulzImg (Vanilla/LeechMod)
- Re-Rar's the extracted file with a custom RAR name (Vanilla)
- Can password protect the new RAR files (Vanilla)
- Will generate a post layout using IMDB info (Vanilla and LeechMod)
- Uploads files back to RS/HF/FS/MU (Vanilla and LeechMod)

Extended features:
- You can add multiuser authentication to the script's access. (Vanilla and LeechMod)
- Notifies you via email and/or flashing screen/sound on completion (Vanilla)
- Uses binary rar/unrar so your server does not need RAR/UNRAR installed (Vanilla)
- Plugin based system (Don't bother with this - Vanilla and LeechMod)
- Can delete unnecessary files from the downloaded RAR (Vanilla)
- Can add your custom files to the new RAR (Vanilla)
- I don't remember the rest.. seriously!


Which filehosts?
At the moment:
- FileServe (Download/Upload)
- Hotfile (Download/Upload)
- Rapidshare (Download/Upload)
- Megaupload (Download/Upload)

Why did you release it for free? (Insert random negative effect of doing so, here)
Fuck you!

Can I donate $XYZ to you?
No.

Why?
Because I don't want to make money off warez.

But this is opensource!
Fuck you, again :|

Everyone will use this script to make money, though!
So be it. Look at the positive side. There will be a lot more 'alive' links. Yeah there might be spam, but there's also going to be more choice, variety, etc etc shit.

Got screens?
No. Too lazy to screenshot the new v2.0 release. I haz the Vanilla screens now. Someone screenshot the LeechMod release and PM me pl0xxxxxxxxx. Thankeeeeeeeeeee.

Vanilla Screens:

[slide]http://lulzimg.com/i3/4b45ea9b.png[/slide]
[slide]http://lulzimg.com/i3/80c3759f.png[/slide]
[slide]http://lulzimg.com/i3/8c6448d6.png[/slide]

Vanilla (l0calh0st GUI) Screen:

[slide]http://lulzimg.com/i3/c9ef5d54.png[/slide]


Download v2.1 LeechMod:
http://dl.dropbox.com/u/7114595/phpUploader/phpUploader_v2.1_LeechMod.zip

Download v2.1 Vanilla:
http://dl.dropbox.com/u/7114595/phpUploader/phpUploader_v2.1_Vanilla.zip


Thanks to:
- DeLeTeD for his awesome IMDB mod and skinning phpUploader
- Ronald for designing the skin :D
- deAthbLiss for his rename mod

Special thanks to:
- Somik for his loadza mods and his dedication to making phpUploader better. And of course, to his VPS, for helping us figure out what a possible problem could be :P
- v3g3t4 for his consistent beta testing :D We'll be sure to consistently bug you in future releases, mate :P

Bugs/reports?
Reply here. PMs WILL be ignored.

Prerequisites:
- PHP Safe Mode disabled.
- PHP cURL extension installed.
- Upload to Rapidshare uses the FileMigrator API function. You need to unlock your RS account (security lock).

How do I install RAR/UNRAR on my VPS/server?
If you have ssh access, then either of the two commands will work for you:
Code:
yum install rar unrar -y
OR
Code:
cd /tmp
wget http://www.rarlabs.com/rar/rarlinux-3.8.0.tar.gz
tar -zxvf rarlinux-3.8.0.tar.gz
cd rar
./rar
./unrar
cp rar unrar /usr/bin/
cd
Warning: We are not responsible for how you use the script. Do not use any script modifications or plugin(s) from anyone you dont trust, as they may modify the script to cause harm to your host or premium accounts.


I'll update this post if I've missed stuff out :)
 
684 comments
thatswhathesaid, follow these steps:

Search for:
PHP:
if (in_array("megaupload", $hosts)){
        flush();
        if (file_exists($umucookie));
        {
            unlink($umucookie);
        }
Remove semi-colon after
PHP:
if (file_exists($umucookie))
 
i editted my post output to look like this if anyone wants it let me know

[SLIDE]http://lulzimg.com/i3/ff405c21.jpg[/SLIDE]
 
I'm doing bug fixes and optimizations everywhere. I might even test a plugin based system thing. Give me another 20 hours or so for a more stable and thoroughly tested release :)

EDIT: Until then, use 1.2 or 1.3 :)
 
can't wait to start coding on this one too
it's a nice program :)
the only remark I have is that you should echo a "downloading from .." because it takes a while before you see the output and users might refresh or think it doesn't work
that's only a remark though,keep up the grea work!
 
my index.php file if anyone wants it and to change images just go down to

/*************Create the post*****************/

and below that replace the 3 images in tags

[url]http://www.fileserve.com/file/DRgGuVE[/url]
 
would it help if it created posts in side text files after it uploaded, to keep it clean and seprate? Plus you can use it as a reference.
 
yes that would be a great feature. I am not much of a coder but I am trying to remove the autodelete feature right now and make it to where it leaves the .avi or .mkv files in the files folder so i can run mtn on them and create screens
 
can't wait to start coding on this one too
it's a nice program :)
the only remark I have is that you should echo a "downloading from .." because it takes a while before you see the output and users might refresh or think it doesn't work
that's only a remark though,keep up the grea work!

That's actually done, already. The entire process in the script is echo'd as each step completes. The 'flush()' argument takes care of that.

I've tested it with Chrome and FF, both show progressing output. However, I also read that the functionality of 'flush()' also depends on the http webserver/php version and such. So even though a script supports it, it may not necessarily work on every server :)


@Xman
I've already fixed that bug. I'll release the complete update bug-free :)

EDIT: I'll add MTN support by tomorrow.
 
one more thing that would be really handy is to grab the poster and upload to lulzimg.com

here is code that grabs and saves the poster but i am not a coding genious and dont know where to go from here. (not my code btw)

Code:
 /**
* Save an image.
*
* @param string $sUrl
*/
private function saveImage($sUrl) {
$sUrl = trim($sUrl);

if (preg_match('/imdb-share-logo.gif/', $sUrl)) {
if (file_exists('posters/not-found.jpg')) {
return 'posters/not-found.jpg';
}
return 'n/A';
}

$bolDir = false;
if (!is_dir(getcwd() . '/posters')) {
if (mkdir(getcwd() . '/posters', 0777)) {
$bolDir = true;
}
}
$sFilename = getcwd() . '/posters/' . preg_replace("#[^0-9]#", "", basename($sUrl)) . '.jpg';
if (file_exists($sFilename)) {
return 'posters/' . basename($sFilename);
}
if (is_dir(getcwd() . '/posters') OR $bolDir) {
if (function_exists('curl_init')) {

$oCurl = curl_init($sUrl);
curl_setopt_array($oCurl, array (
CURLOPT_VERBOSE => 0,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_TIMEOUT => 5,
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_REFERER => $sUrl,
CURLOPT_BINARYTRANSFER => 1));
$sOutput = curl_exec($oCurl);
curl_close($oCurl);
$oFile = fopen($sFilename, 'x');
fwrite($oFile, $sOutput);
fclose($oFile);
return 'posters/' . basename($sFilename);
} else {
$oImg = imagecreatefromjpeg($sUrl);
imagejpeg($oImg, $sFilename);
return 'posters/' . basename($sFilename);
}
return false;
}
return false;
}
 
ok so i have another idea y not make it so that u can try

ok make it so that u can put 1 batch of links then another then another then another ..... about 100+ and then hit start it then generates the posts and puts it in text files and saves it on the server and then u can access it from text file of page

example(first batch):the expendables(u click the expendables the expendables text and it directs u there
for example http://serveriphere/Anumberornameofpost

if u want me to xplain more i can make a youtube video
 
now I know why it didn't show downloading

I added a link after a download was done and pressed go,now it still shows the old output ;)
 
Someone REALLY messed up the codes... All of it are just messed up... no order at all! I wont dare mod the script anymore....
 
Status
Not open for further replies.
Back
Top