28, May 2012

Problem while accessing the user admin page - 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: Problem while accessing the user admin page
« previous next »
Pages: [1] Print

Author Topic: Problem while accessing the user admin page  (Read 1576 times)
Atari ST fan
*
Posts: 7
50 credits
Members referred : 0


« on: Aug 06, 2006, 04:08:33 am »


I can't seem to access the Admin Page. When I go to admin_user.php, I get The page cannot be found error. Any ideas why?

Thanks again.
« Last Edit: Aug 06, 2006, 10:26:11 am by olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


Re: More trouble with Login Page...
« Reply #1 on: Aug 06, 2006, 10:23:16 am »



Hwoever I do have another question. I can't seem to access the Admin Page. When I go to admin_user.php, I get The page cannot be found error. Any ideas why?

Thanks again.

I think the current user doesn't have the rights to access the admin page:

check this settings first:
define("ADMIN_PAGE", APPLICATION_PATH."admin_user.php");
define("DENY_ACCESS_PAGE", APPLICATION_PATH."deny_access.php");


en raise the access level from the user account to this value:
define("DEFAULT_ADMIN_LEVEL", 10);



Atari ST fan
*
Posts: 7
50 credits
Members referred : 0


« Reply #2 on: Aug 06, 2006, 05:38:12 pm »

Hey Olaf,

I tried that and it didn't work. One thing though. Before I read your post, my config file was like this.

define("DENY_ACCESS_PAGE", APPLICATION_PATH."deny_access.php");
define("ADMIN_PAGE", APPLICATION_PATH."admin_user.php");

The Deny Access was before the Admin Page for some reason. Now that I took your advice, and put the Admin before the Deny, when I go to the admin_user.php page, it gives me the Login Page. So I login, then it gives me the Page Cannot Be Displayed Error.

Same thing for the Default Admin Level. I went into the config file, and put that but still nothing. I'm not sure what to do.

Thanks again, Roy.
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 06, 2006, 10:24:23 pm »

There is no problem if you define the variables in a different order... but are you sure that the application path is right?

maybe you should post us a link to an example application...

Atari ST fan
*
Posts: 7
50 credits
Members referred : 0


« Reply #4 on: Aug 13, 2006, 08:55:51 pm »

Sorry for the late reply Olaf. You were right. It was my application path that was the problem. Thanks alot. Just a quick question. If I wanted to delete an account, would I search the user's name and where it says "Active?" I would put no? Thanks again man.
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 13, 2006, 10:12:38 pm »

Quote
If I wanted to delete an account, would I search the user's name and where it says "Active?" I would put no? Thanks again man.

yes, this way the account is non active and not deleted (the idea is that the "blocked" user can't register again with this user-name or email address)

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3558
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: Problem while accessing the user admin page
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:50:01 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.