20, March 2010

Accessing user data without protecting 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: Accessing user data without protecting page
« previous next »
Pages: [1] Print

Author Topic: Accessing user data without protecting page  (Read 1003 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: Jan 10, 2009, 02:38:52 am »

Fisrt, I have been using this class for a long time on many different sites and it is the easiest and best I have found anywhere. It can easily be modified to do almost anything (except my present question). Anyway, great script.

I have certain pages that require the visitor to be logged in while other pages do not. On those "not required" pages, I still want to maintain the $user so that the page can be someone customized. THis should be a simple feat, but I have yet to be able to get_user_info() without protecting the page.

Any help would be appreciated. Thanx Cheesy
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #1 on: Jan 10, 2009, 04:54:53 am »

Forget it - figured it out - thanx Cheesy
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5659
45587 credits
Members referred : 3



« Reply #2 on: Jan 11, 2009, 01:32:53 am »

That's the fastest support thread ever seen in webdigity Smiley

BTW welcome aboard WeBBy

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #3 on: Apr 21, 2009, 09:12:24 pm »

Not sure if this is the official forum for this issue, but to reiterate...

Hi there,
I just stumbled on this login script and I'm trying to install and test but I'm getting the following errors:

Warning: include_once(/home2/equalize/public_html/classes/PHPMailer/class.phpmailer.php) [function.include-once]: failed to open stream: No such file or directory in /home2/equalize/public_html/classes/access_user/db_config.php on line 57

Warning: include_once() [function.include]: Failed opening '/home2/equalize/public_html/classes/PHPMailer/class.phpmailer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/equalize/public_html/classes/access_user/db_config.php on line 57

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home2/equalize/public_html/classes/db.php: in /home2/equalize/public_html/classes/access_user/access_user_class.php on line 31

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home2/equalize/public_html/classes/db.php: in /home2/equalize/public_html/classes/access_user/access_user_class.php on line 31

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: YES) in /home2/equalize/public_html/classes/access_user/access_user_class.php on line 136

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'equalize'@'localhost' (using password: NO) in /home2/equalize/public_html/classes/access_user/access_user_class.php on line 137

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home2/equalize/public_html/classes/access_user/access_user_class.php on line 137

=========
Can anyone please tell me how to fix this?  I basically have the class folder in public_html/ but I haven't changed the paths anywhere as I assumed they were all in the right location since they call /classes/...  Any ideas on what path I should be changing them to?  Eventually, once working, I have two subdomains that both require separate login systems, though I'm not sure how to achieve this, any ideas? 
Thanks so much for any and all responses!
Robbie
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=8370
Tags : user identity 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: Accessing user data without protecting page
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Mar 20, 2010, 12:03:49 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: 44.204
Total Topics: 8.622
Total Members: 8.236
Tutorials : 58
Resources : 929
Designs : 360
Latest Member: C0ldf1re

31 Guests, 5 Users online :

15 users online today:



Readers

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