You guys have supported sBorg for all these time for the fact that this script is "awesome"! Now we need your help in coding uploading plugin for your favorite script sBorg!

I have provided the code for megaupload upload plugin. Its the full source code required to upload a file to megaupload. This is based on rapidleech plugin for megaupload (provided in the same RAR file for comparison).

All you need to do is modify the 2 functions above, called "Login" and "Upload" to make this work with any filehost that rapidleech supports. Note that you may need to add 1 or 2 functions aswell for some plugins.

The basic steps in RapidLeech to sBorg plugin convertion is:
1. Remove ALL html.
2. Align the codes properly.
3. Break the codes into 2 functions, Login and Upload.
4. Replace the function "geturl()" with "RL_based_curl()" and make sure you get all the post values (and refferers).
5. Remove all "is_page()" function.
6. Replace "upfile()" with "RL_based_curl()" and make sure you get all the post values, including the file's post name (for megaupload, it is "Filedata").
7. Cleanup your codes.

Note that we provided 2 functions, 1 for Login and 1 for Upload. You can do them in 1 function aswell however it will make sBorg take longer. What we do is Login only once, and upload ALL files. So Login function is called once, while Upload function is called once for every file.

If you have any confusions, reply and i'll do my best to help.

Thanks!


Download:
Code: 
http://sborg.us/codes/sBorgDev.rar

.
somik Reviewed by somik on . [sBorg] Upload plugin codes You guys have supported sBorg for all these time for the fact that this script is "awesome"! Now we need your help in coding uploading plugin for your favorite script sBorg! I have provided the code for megaupload upload plugin. Its the full source code required to upload a file to megaupload. This is based on rapidleech plugin for megaupload (provided in the same RAR file for comparison). All you need to do is modify the 2 functions above, called "Login" and "Upload" to make this work Rating: 5