Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

More about bypassing login
Old 03-11-2006, 05:15 PM   #1
DCox
Calendar User
 
DCox is offline
Join Date: Mar 2006
Posts: 1
Default More about bypassing login

Hi! I'm just about finished setting up the calendar on my site. Other than editing the theme (a copied version, of course) all I have left is to integrate the calendar with my members mysql database so they only have to login once. I found the following post from the past but need a little more information. I need to use variables to determine the name and password in the url.

Previous suggestion....
You can by-pass the EPCal authentication by passing a set user name and password to the script. Look at the Details page and the Setup Manager and Event Manager links to see an example.

The name and passwords would be passed like this:

/setup/index.php?name=demo&pwdX=demo

/events/index.php?name=demo&pwd=demo

*Replace demo with a user name and password that has been entered in the Setup Manager.

My preference would certainly be to have the calendar refer to my database for permissions rather than the flatfile. If that is not possible, how can I make my link pull the name and password from my current user's record? My table is "members". Password is "member_password". Name is "Login_Name". I know how to do a lookup for these fields but not how to incorporate them into the URL.

Thanks!!!
 

Old 03-13-2006, 06:24 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,969
Default

What I would suggest you do is create your own login page... When the users want to administer the calendar it looks at if they're already logged into your site, if everything is correct, then you redirect them to the calendar with the username/password passed in the URL (just like the previous suggestion). The calendar needs to use the flatfile for authentication, so that's why you just pass a generic account to it throught the URL.

Here's the gist of the page in pseudo code
Code:
if user not logged in
  send to login page

if he does not have access to calendar
  send him away
else
  send him to /events/index.php?name=demo&pwd=demo
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Question Computer Lady General Support 1 08-16-2005 02:03 PM
Additional User login problem lnieb General Support 2 07-08-2005 11:32 AM
Custom Login Page bambumedia General Support 1 05-03-2005 02:22 PM
Admin Login not working Gecko General Support 1 04-08-2004 10:47 AM



All times are GMT -4. The time now is 03:49 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |