Current time: 12-04-2024, 05:04 AM Hello There, Guest! (LoginRegister)


Post Reply 
Protected areas
Author Message
Esni Offline
Junior Member
*

Posts: 45
Joined: Mar 2007
Reputation: 0
Post: #1
Protected areas
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?
11-26-2007 09:37 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Protected areas
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
11-26-2007 09:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esni Offline
Junior Member
*

Posts: 45
Joined: Mar 2007
Reputation: 0
Post: #3
RE: Protected areas
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 {
11-27-2007 02:43 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Protected areas
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..." :-)
(This post was last modified: 11-27-2007 09:17 AM by joximu.)
11-27-2007 06:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #5
RE: Protected areas
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
11-27-2007 09:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Protected areas
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...
11-27-2007 09:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #7
RE: Protected areas
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.
11-27-2007 10:09 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)