Post Reply  Post Thread 
Protected areas
Author Message
Esni
Junior Member
*


Posts: 45
Group: Registered
Joined: Mar 2007
Status: Offline
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
Moderator
*****


Posts: 3,537
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
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


2008-03-16 ispCP RC4 released!!!
11-26-2007 09:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esni
Junior Member
*


Posts: 45
Group: Registered
Joined: Mar 2007
Status: Offline
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
Moderator
*****


Posts: 3,537
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
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..." :-)


2008-03-16 ispCP RC4 released!!!

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
Member
****
Dev Team

Posts: 474
Group: Dev Team
Joined: Apr 2007
Status: Offline
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


YaHost Me | Text Link Ads | my Debian repository | Donate! | No OOXML! | Project HoneyPot | ... and more

Quote:
This is Linux land. In silent nights you can hear the Windows machines rebooting.

If you want to be helped, don't PM me but post in the forums | If you want private support PM me and we'll discuss the price

11-27-2007 09:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu
Moderator
*****


Posts: 3,537
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
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...


2008-03-16 ispCP RC4 released!!!
11-27-2007 09:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube
Documentation Team
***
Docu Team

Posts: 660
Group: Docu Team
Joined: Apr 2007
Status: Offline
Reputation: 8
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  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |