21, November 2008

Login Problems (a.k.a. - probelms with paths and congig) - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Login Problems (a.k.a. - probelms with paths and congig)
« previous next »
Pages: [1] Print

Author Topic: Login Problems (a.k.a. - probelms with paths and congig)  (Read 1140 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Aug 06, 2006, 07:27:32 PM »


Hello –

So far I like this script. I am having trouble getting the page protection to work for me. I know it’s somewhere in my settings or paths. I just cannot locate it.

I have index.php which contains my login form. All other files are in the /classes/access_user/ directory.

When I try logging in, it kicks me back to the index.php no matter what…whether I’m a registered user or not.



This is from my config:
// variables (locations) standard pages (combine the pathes from the top or use your own)
define("LOGIN_PAGE", CLASS_PATH."../../index.php");
define("START_PAGE", APPLICATION_PATH."welcome.php");
define("ACTIVE_PASS_PAGE", APPLICATION_PATH."activate_password.php");
define("DENY_ACCESS_PAGE", APPLICATION_PATH."deny_access.php");
define("ADMIN_PAGE", APPLICATION_PATH."admin_user.php");



This is what I’m putting at the top of my protected pages:
<?php

include($_SERVER['DOCUMENT_ROOT']."/classes/access_user/access_user_class.php");

$page_protect = new Access_user;


$page_protect->login_page = "../../index.php"; // change this only if your login is on another page

$page_protect->access_page(); // only set this this method to protect your page

$page_protect->get_user_info();

$hello_name = ($page_protect->user_full_name != "") ? $page_protect->user_full_name : $page_protect->user;

?>


Any help or guidance would be GREATLY appreciated.

Thanks.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6436
39440 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Aug 06, 2006, 11:27:12 PM »

Hello,

use absolute pathes like inside the examples, this is bad if your work with includes:

define("LOGIN_PAGE", CLASS_PATH."../../index.php");

the pathes application path / class path are used inside the mail templates and the application...

Check the example files again...


Last blog : Just a better Internet portal provided by Google
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Aug 07, 2006, 02:26:57 PM »

Is everything okay with what I'm putting at the top of my protected pages? I'm still getting kicked back to login. I'll keep playing with it.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6436
39440 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Aug 07, 2006, 02:29:03 PM »

Is everything okay with what I'm putting at the top of my protected pages? I'm still getting kicked back to login. I'll keep playing with it.

what code are you using? do you checked the documentation file?


Last blog : Just a better Internet portal provided by Google
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #4 on: Aug 12, 2006, 04:45:09 AM »

Yeah. Still no luck. With a fresh install from the package, I still get kicked back to the login page no matter what. I see the URL switch to my start page, but then it reverts me back to login. I'm still working on it.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6436
39440 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Aug 12, 2006, 12:10:09 PM »

Yeah. Still no luck. With a fresh install from the package, I still get kicked back to the login page no matter what. I see the URL switch to my start page, but then it reverts me back to login. I'm still working on it.

it doesn't work if you follow the documentation? do you have an URL to your test install?


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3563
Tags : email Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: Login Problems (a.k.a. - probelms with paths and congig)
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 21, 2008, 08:26:57 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.716
Total Topics: 7.647
Total Members: 4.390
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: panetolikos

26 Guests, 6 Users online :

21 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.