xoops forums

talunceford

Just can't stay away
Posted on: 2003/12/23 22:07
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#11

Suggestion for deleting a directory that is not empty via php.

I am still working on this module. One of the features is that I would like to be able to delete a module via the admin interface. I have been looking around on the net and haven't really found anything that suits what I want it to do. Does anyone have any suggestions on what to do with this?

Basically, I am submitting the op= variable, the module=variable, and the xdir= variable. The xdir will have XOOPS_ROOT_PATH."/modules/.$module." value.

Here is a current pic of the module....
Resized Image


Thanks for the help

Herko

XOOPS is my life!
Posted on: 2003/12/23 22:19
Herko
Herko (Show more)
XOOPS is my life!
Posts: 4238
Since: 2002/2/4 1
#12

Re: Need some help with an untar class.....

Excuse my ignorance, but doesn't XOOPS already have an untarring class? it can be found at /class/class.tar.php, and there's a tar downloader and a zip downloader class as well...

Herko

talunceford

Just can't stay away
Posted on: 2003/12/23 22:26
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#13

Re: Need some help with an untar class.....

Yes it does. I haven't looked a whole lot at that class yet, and need to explore the functions of that class some. I want to be able to incorp alot of the core functions into this module. This module is still in the experimentation stage. Im still getting the overall structure the way that I want it. Basically, the untarring function I think I can use, but the un-zipping function is one that I had to find.

talunceford

Just can't stay away
Posted on: 2003/12/24 1:20
talunceford
talunceford (Show more)
Just can't stay away
Posts: 532
Since: 2002/8/14
#14

Re: Need some help with an untar class.....

NM, I got the delete figured out......