HorizonForumsone horizon
Log inSign up

[ms] · Est. May 2002

Music madethis place,we just kept itgoing...

One durable person. One social graph. Many communities—and every way people speak, share, listen, write, gather and remember.

Forums / Promos & Recommendations

[SOLVED] - MU Upload Problem ? Check here

33 durable postsStarted 2007-05-02Latest 2007-07-15
#41114Post 1 of 33

For some reason, that stupid scripts has just decided to stop working, I'm testing an alternative right now to see if I can quickly put up an option in place.

If someone knows where I can download / purchase a MEGAUPLOAD Clone type script, please let me know.

Thanks

[COLOR=DarkOrange][B]EDIT - THE PROBLEM HAS BEEN RESOLVED. SERVICE IS NOW AVAILABLE[/B][/COLOR]

#854654Post 2 of 33

Re: MU Problem

this is a free one m8 but i dont know if it will be of any use to u

[URL]http://www.xtrafile.com/general/xtraupload-1.5.0.html[/URL]

i,ll search around, i aint got nothing else to do today ;)

#854655Post 3 of 33

Re: MU Problem

[URL]http://forums.digitalpoint.com/showthread.php?t=267232[/URL]

#854656Post 4 of 33

Re: MU Problem

rapidshare clone???

[URL]http://www.webdevlabs.com/php-scripts/rapidshare-clone/?PHPSESSID=b8807be63182a348a6700315d192e58c[/URL]

#854659Post 5 of 33

Re: MU Problem

[U][COLOR=#9b9b9b][URL]http://www.alstrasoft.com/sendit.htm#4[/URL][/COLOR][/U][URL="http://www.alstrasoft.com/products.htm"][/URL]

#854660Post 6 of 33

Re: MU Problem

[URL]http://yabsoft.com/[/URL]

#854661Post 7 of 33

Re: MU Problem

[URL]http://www.celerondude.com/php-uploader-v6[/URL]

#854662Post 8 of 33

Re: MU Problem

......[URL="http://www.megaupload.com/?d=ALHD2ZWI"][/URL]

#854663Post 9 of 33

Re: MU Problem

:O

code:<?php //vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv // You may change maxsize, and allowable upload file types. //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //Mmaximum file size. You may increase or decrease. $MAX_SIZE = 2000000;

//Allowable file Mime Types. Add more mime types if you want $FILE_MIMES = array('image/jpeg','image/jpg','image/gif' ,'image/png','application/msword','video/mpg','video/avi','video/mov','text/plain');

//Allowable file ext. names. you may add more extension names. $FILE_EXTS = array('.zip','.jpg','.png','.gif','.rar','.mov','.avi','.mpg ','.exe','.doc'.'.psd','.dbs','.html','.php','.divx','.zip', '.txt','.ppt');

//Allow file delete? no, if only allow upload only $DELETABLE = true;

//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv // Do not touch the below if you are not confident. //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /************************************************************

  • Setup variables ************************************************************/ $site_name = $_SERVER['HTTP_HOST']; $url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']); $url_this = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];

$upload_dir = "files/"; $upload_url = $url_dir."/files/"; $message ="";

/************************************************************

  • Create Upload Directory ************************************************************/ if (!is_dir("files")) { if (!mkdir($upload_dir)) die ("upload_files directory doesn't exist and creation failed"); if (!chmod($upload_dir,0755)) die ("change permission to 755 failed."); }

/************************************************************

  • Process User's Request ************************************************************/ if ($_REQUEST[del] && $DELETABLE) { $resource = fopen("log.txt","a"); fwrite($resource,date("Ymd h:i:s")."DELETE - $_SERVER[REMOTE_ADDR]"."$_REQUEST[del]\n"); fclose($resource);

if (strpos($_REQUEST[del],"/.")>0); //possible hacking else if (strpos($_REQUEST[del],$upload_dir) === false); //possible hacking else if (substr($_REQUEST[del],0,6)==$upload_dir) { unlink($_REQUEST[del]); print ""; } } else if ($_FILES['userfile']) { $resource = fopen("log.txt","a"); fwrite($resource,date("Ymd h:i:s")."UPLOAD - $_SERVER[REMOTE_ADDR]" .$_FILES['userfile']['name']." " .$_FILES['userfile']['type']."\n"); fclose($resource);

$file_type = $_FILES['userfile']['type']; $file_name = $_FILES['userfile']['name']; $file_ext = strtolower(substr($file_name,strrpos($file_name,".")));

//File Size Check if ( $_FILES['userfile']['size'] > $MAX_SIZE) $message = "The file size is over 2MB."; //File Type/Extension Check else if (!in_array($file_type, $FILE_MIMES) && !in_array($file_ext, $FILE_EXTS) ) $message = "Sorry, $file_name($file_type) is not allowed to be uploaded."; else $message = do_upload($upload_dir, $upload_url);

print ""; } else if (!$_FILES['userfile']); else $message = "Invalid File Specified.";

/************************************************************

  • List Files ************************************************************/ $handle=opendir($upload_dir); $filelist = ""; while ($file = readdir($handle)) { if(!is_dir($file) && !is_link($file)) { $filelist .= "".$file.""; if ($DELETABLE) $filelist .= " x"; $filelist .= " ".date("d-m H:i", filemtime($upload_dir.$file)) .""; $filelist .="
    "; } }

function do_upload($upload_dir, $upload_url) {

$temp_name = $_FILES['userfile']['tmp_name']; $file_name = $_FILES['userfile']['name']; $file_name = str_replace("\","",$file_name); $file_name = str_replace("'","",$file_name); $file_path = $upload_dir.$file_name;

//File Name Check if ( $file_name =="") { $message = "Invalid File Name Specified, name it properly u silly noob"; return $message; }

$result = move_uploaded_file($temp_name, $file_path); if (!chmod($file_path,0777)) $message = "change permission to 777 failed."; else $message = ($result)?"$file_name uploaded successfully." : "Somthing is wrong with uploading a file, or your just stupid !"; return $message; }

?>UPDOWN SHEEP LOVERS !!!


Upload File


My Sheep



Developed By MADE BY SHEEP LOVERS
#854664Post 10 of 33

Re: MU Problem

thanks mate, I got that rapidshare clone but it seems something broke on the server as I cant even get the uploads to work on the new one. I do appreciate your help though.

#854666Post 11 of 33

Re: MU Problem

anytime m8, let us know if they are any use n if they aint then i,ll have a search for more

[U][COLOR=#9b9b9b][URL]http://www.alstrasoft.com/sendit.htm#4[/URL] [/COLOR][/U]

[COLOR=#9b9b9b]looked promising on paper[/COLOR]

#854679Post 12 of 33

Re: MU Problem

yea I've been through nearly all of the above except that celeron dude one, but it seems guests cant upload

#854696Post 13 of 33

Re: MU Problem

tbh i,m not sure of exactly what i,m looking for m8 so i,m not sure if i can be of any more help to u :what

maybe try another search engine rather than google? :|

#854702Post 14 of 33

Re: MU Problem

no worries, thanks for your help, this was more of a heads up thread anyway ;)

#854727Post 15 of 33

Re: MU Problem

what happend to the script? its still working for me

#855628Post 16 of 33

Re: MU Problem

ok I got to the bottom of it, the file depends on certain partitions of the server for space - one of those ran out. I cleared it out and it started working ;)

Now if the uploads fail, let me know and I know what to do :)

#855871Post 17 of 33

Re: [SOLVED] - MU Problem

thx mate for your hard work respect

#856156Post 18 of 33

Re: [SOLVED] - MU Problem

:RockOn:

#862403Post 19 of 33

Re: [SOLVED] - MU Problem

I am having problems uploading. I have tried three times on two separate days, it starts uploading then it stops and says "you didn't pick a file to upload". Please fix...

#862635Post 20 of 33

Re: [SOLVED] - MU Problem

ok fixed, give it a go now ;)

#862664Post 21 of 33

Re: [SOLVED] - MU Problem

Thanks Kamal I will give it a shot.

#863088Post 22 of 33

Re: [SOLVED] - MU Problem

That worked. Thanks...

#863164Post 23 of 33

Re: [SOLVED] - MU Problem

its a recurring problem with the script, its not cleaning out the temp folder after the upload is done and that is stalling the script. so if anyone sees an issue with uploading files, pls let me know and I will clear out the temp folder asap.

#863278Post 24 of 33

Re: [SOLVED] - MU Problem

after any single upload u mean?

#863282Post 25 of 33

Re: [SOLVED] - MU Problem

no it doesnt happen after every single upload. It happens almost every 7 - 10 days, hope the mod author releases an update / fix soon

#863292Post 26 of 33

Re: [SOLVED] - MU Problem

Can you create a batch file that will delete the contents of the temp folder and run it nightly? I'm not sure which platform the server is running on (Unix, Windows etc), but creating the batch might be something to look at.

#863403Post 27 of 33

Re: [SOLVED] - MU Problem

its running on linux but the problem is even the mysql.sock connect is sitting in the same folder, which I cant delete or MySQL will crash.

Moreover, the other temp files that fill up this folder have been diff the last 2 times I emptied it out. As a result, I cant run a cron to empty the folder and with the file names being diff, I cant even use a prefix to pick in order to delete the crap

#864980Post 28 of 33

Re: [SOLVED] - MU Problem

It's happening again.

#864994Post 29 of 33

Re: [SOLVED] - MU Problem

ok just cleaned it out

#865021Post 30 of 33

Re: [SOLVED] - MU Problem

thanks...

#889259Post 31 of 33

Re: [SOLVED] - MU Upload Problem ? Check here

Bandwidth Limit Exceeded:(

#889397Post 32 of 33

Re: [SOLVED] - MU Upload Problem ? Check here

sorry no I was fucking around the server and accidentally reset the bw limit on the server. Should be ok now.

#889499Post 33 of 33

Re: [SOLVED] - MU Upload Problem ? Check here

yay, its ok:RockOn:

Log in to reply