|
|
Joined: Jun 2003
Posts: 88
Power User
|
Power User
Joined: Jun 2003
Posts: 88 |
this code displays the "welcome username" and "you are not loged in" stuff
<?php // Require the library require ("includes/main.inc.php"); include("languages/english/index.php"); // -------------
// ------------------------------ // Define any necessary variables $Cat = get_input("Cat","get"); // -----------------
// Get the user info $userob = new user; $user = $userob -> authenticate("U_Groups, U_TimeOffset, U_FrontPage"); $Username = $user['U_Username']; $html = new html; if (!$user['U_Username']) { //echo ("You are not Loged in. [<a href='http://spokejunkies.com/ubbthreads/login.php?Cat='>Login</a>]"); $html -> not_right ($ubbt_lang['notloggedin']. $ubbt_lang['WEL_PRIV_NO'],$Cat); } print ("Welcome "); print ($Username); print (". [<a href = 'http://spokejunkies.com/ubbthreads/logout.php?Cat='>Logout</a>]");
?>
i am currently inserting this code into an html page via include and it works great BUT when a user logs out it still shows them as loged in... any ideas?
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
sounds like a cookie issue
|
|
|
|
Joined: Jun 2003
Posts: 88
Power User
|
Power User
Joined: Jun 2003
Posts: 88 |
it works ok on the page driven by the ubbthreads index_outside.php page though that’s why i think it has to be a code issue, i didn’t change any of the cookie related stuff... its almost like it isn’t grabbing the updated information from the database... either way i will check out cookies again
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Is this script inside of your ubbthreads directory?
If not, then a couple of things: Make sure you set cookies site wide "/" in the config file.
These: require ("includes/main.inc.php"); include("languages/english/index.php");
May need complete server paths if they aren't inside of the ubbthreads directory. example: require("/home/youruser/public_html/forums/main.inc.php"); etc...
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 190
Joined: June 2000
|
|
Forums63
Topics37,571
Posts293,923
Members13,848
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|