Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 + 8 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: [Module] Module and Theme Uploader
by kaotik on 2007/9/27 10:16:31

I've released a new version of this module on my site: 1.03

This new version works with php 4 and doesn't have ownership problems with files or folders. It extracts the zip, checks to see if it's a module or theme, then checks to see if it already exists.
It still has several bugs that I'm working on. Let me know of any you encounter.
This is a test module, don't use it on a production site.
download
Re: [Module] Module and Theme Uploader
by kaotik on 2007/9/26 12:32:47

SUCCESS!!!!! WHHHHOOOOO!!!
I solved the ownership problem by doing it a little diferent; I extracted the zip to a temporary folder, then used COPY to place the files in the correct spot. This allows you to still manipulate the files using ftp, and doesn't give ownership problems!
Giba: I'm pretty sure I could still use my method for folders outside web access since I'm dealing with server root.
I'll have a new version ready later today.
I've also solved another problem:
-When you uninstall the module, XOOPS erases everything in the temporary folder, and then the folder itself.
Re: [Module] Module and Theme Uploader
by kaotik on 2007/9/26 11:21:33

Thanks frankblack!! I now have this working with PHP 4! I'm still figuring out owner issues. I tried the ftp route but that opens another can of worms.
Re: [Module] Module and Theme Uploader
by frankblack on 2007/9/24 17:52:40

For tinyeditor I used the script from http://www.phpconcept.net for unzipping packages + the choice of using ftp (which perhaps minimizes the owner problems).
Re: [Module] Module and Theme Uploader
by kaotik on 2007/9/24 15:35:06

Quote:

Also could it ask a confirmation if there is one module with same name before overwriting it?

-Good point, I'll add it for the next version.

I'm also tring to get this to work with php 4.
There is also a problem regarding CHMOD and file/folder ownership's, which I'm working on.

Who's Online

213 user(s) are online (163 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits