Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
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. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Integrating Thyme into password protected area

 
Post new topic   Reply to topic     Forum Index -> Hacking Thyme
View previous topic :: View next topic  
Author Message
factoring



Joined: 11 Aug 2008
Posts: 1

PostPosted: Mon Aug 11, 2008 10:06 pm    Post subject: Integrating Thyme into password protected area Reply with quote

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
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5279

PostPosted: Tue Nov 04, 2008 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Hacking Thyme All times are GMT
Page 1 of 1

 
Jump to:  
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
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.