Quote:
|
Originally Posted by mphayesuk
Hi I think this thread might be best placed in the scripts page but I will start it here anyway.
What I am looking to do is password protect one of the pages in every customers web site.
So I want to use the usernames and passwords that they use to collect email which is stored in the ISPConfig table, just like the ubiemail does.
But I only want the users that are connected to that site to be able to get in and not have access to anyother web site password protected page.
So in short I am goint to have the same (more or less) page for every customer but only have the users that have been created for that site to have access to it by using their web mail username and password.
I am not a good php programmer so try and give me as many pointers as possible.
|
If the page that shall be password protected is a php page, you can try to use one of the pop3 libraries available for PHP. Just use the login function for pop3 to test if the username / password combination is correct without retrieving email messages. If the password is correct, you can show the content of the page.
To exclude users from other domains you might have to do a lookup for the username / domain combination in the ISPConfig database too.
Recent comments
1 day 11 hours ago
1 day 20 hours ago
1 day 23 hours ago
2 days 14 min ago
2 days 1 hour ago
2 days 3 hours ago
2 days 4 hours ago
2 days 5 hours ago
2 days 21 hours ago
2 days 22 hours ago