28, May 2012

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

 
Webdigity webmaster forums
[ 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 2128 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Aug 06, 2006, 06: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Aug 06, 2006, 10: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...

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Aug 07, 2006, 01: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Aug 07, 2006, 01: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?

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #4 on: Aug 12, 2006, 03: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Aug 12, 2006, 11:10: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.

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

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3563
Tags : email Bookmark this thread : Digg Del.icio.us Dzone more....

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?
May 28, 2012, 02:50:25 pm





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!






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