1
kaotik
[Module] Module and Theme Uploader
  • 2007/9/24 12:11

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


This module allows you to upload a zip file with your module or theme. It will extract that zip and place it in the correct directory, either modules or themes. It then erases the zip file.
This is just a test module to see if it would work.
Features I want to further develop:
-permissions.xml; file with CHMOD information regarding each file/folder.
-A configuration test option, to see if the module will work on your site.

[edit] Module requires PHP 5 to work [/edit]

Download

2
kaotik
Re: [Module] Module and Theme Uploader
  • 2007/9/24 12:49

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I forgot to mention:
This module requires php 5

glad to see I'm contributing

3
suico
Re: [Module] Module and Theme Uploader
  • 2007/9/24 13:20

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Does it reaplace an existing module if one is already there?
Also could it ask a confirmation if there is one module with same name before overwriting it?

Thanks it is a very needed module for easying the processo of installing a new module.
Yogurt Social Network Service
Visit: http://www.marcellobrandao.eti.br/

4
davidl2
Re: [Module] Module and Theme Uploader
  • 2007/9/24 13:25

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Yes - very good work indeed.

I've always wondered why the upload for templates, but not for themes or modules.

However.. before this gets implemented as a core-like feature.... perhaps some sort of digital signiture to ensure its a genuine module etc?

5
kaotik
Re: [Module] Module and Theme Uploader
  • 2007/9/24 15:35

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.

6
frankblack
Re: [Module] Module and Theme Uploader
  • 2007/9/24 17:52

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


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).

7
kaotik
Re: [Module] Module and Theme Uploader
  • 2007/9/26 11:21

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.

8
kaotik
Re: [Module] Module and Theme Uploader
  • 2007/9/26 12:32

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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.

9
kaotik
Re: [Module] Module and Theme Uploader
  • 2007/9/27 10:16

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


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

Login

Who's Online

305 user(s) are online (246 user(s) are browsing Support Forums)


Members: 0


Guests: 305


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits