ispCP - Board - Support
Protected areas - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Protected areas (/thread-1865.html)



Protected areas - Esni - 11-26-2007 09:37 PM

I'm trying to search more information about the deletion process of the htaccess file in the Protected Areas -feature.

As far as I can see in the actual script(protect_delete.php) is only marking the htaccess-file to the delete status to the mysql-db. What script actually removes this htaccess-file?

I guess it follows the same pricinples as the system rebuild with rqst-mngr(domains are set to "change" and the rqst-mngr rebuilds all those domains). But what does the actual deletion in this case?


RE: Protected areas - joximu - 11-26-2007 09:55 PM

Hi Esni

have a look in the engine library "ispcp-htuser-mngr" - there everything about .htaccess and .htpasswd is done (read in db what to do - change in the actual files).
But a deletion is not done AFAIK. Only the lines are removed if something is not needed..

/J


RE: Protected areas - Esni - 11-27-2007 02:43 AM

Thanks for the answer.

You don't happen to know which section of the file is taking part on deleting the content of the htaccess-file?

Could it be the section that starts with:
sub htuser_del_user_system_data {


RE: Protected areas - joximu - 11-27-2007 06:58 AM

not exactly - it has to be a sub with "del" in the name...

upd: the "not exactly" is the response to "if I know the section..." :-)


RE: Protected areas - raphael - 11-27-2007 09:07 AM

Esni Wrote:sub htuser_del_user_system_data {
also htuser_del_group_system_data

del_user_... takes care of deleting the users from the file
del_group_... does the same but for groups

When the file is empty it is automagically deleted


RE: Protected areas - joximu - 11-27-2007 09:18 AM

Quote:When the file is empty it is automagically deleted

I didn't see any unlink command in this file - but maybe I missed something...


RE: Protected areas - Cube - 11-27-2007 10:09 AM

I discovered some problems with the protected areas some time ago -> ticket #755
So when you analyze the file, you can perhaps also look for this errors.