phpUploader v2.1 - Opensource php based auto uploader

Status
Not open for further replies.
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