|
Quotes |
" ... I want to tell you that your thyme product is functional and valuable beyond
words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."
" ... Thanks for such a complete project, its making my job much easier. ..."
" ... I have now deployed 4 different calendars and our users love them ... "
" ... Easy to install and use and a great look/design. ..."
" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."
|
|
| View previous topic :: View next topic |
| Author |
Message |
factoring
Joined: 11 Aug 2008 Posts: 1
|
Posted: Mon Aug 11, 2008 10:06 pm Post subject: Integrating Thyme into password protected area |
|
|
Hi,
I have an administration section of my website, where very confidential information is kept. I currently have thyme in a folder called calendar within that section of my website.
I would like the calendar folder to be password protected by my admin folder as well.
Here is the site structure
mydomain.com/admin/calendar/index.php
I need to include the following php code:
<?PHP
include "defaults.php";
if(isset($_POST['user'])){
if($user->loginUser($_POST['user'],$_POST['pass'])){
$_SESSION['username'] = $_POST['user'];
$_SESSION['password'] = $_POST['pass'];
}
}
if(!$user->checkLogin()){
header('location:index.php');
} else {
$loggedIn = "valid";
}
I added the include folder that has my database inside.
Where do I need to add this code or do I need to add the Thyme database to my current databse?
Thanks for the time. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Tue Nov 04, 2008 10:01 pm Post subject: |
|
|
Hi,
Do you want Thyme to read and use your current userbase in your user database? If so, you may use the Generic MySQL Authentication module.
Let me know if you have any questions / trouble. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|