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