php forum
php mysql forum
php mysql smarty
 
Topic Options
#285414 - 05/24/05 08:47 PM php script bugs!
Moab Offline
Power User

Registered: 06/09/03
Posts: 87
this code displays the "welcome username" and "you are not loged in" stuff<br /><br /> <?php<br />// Require the library<br /> require ("includes/main.inc.php");<br /> include("languages/english/index.php");<br />// -------------<br /><br />// ------------------------------<br />// Define any necessary variables<br /> $Cat = get_input("Cat","get");<br />// -----------------<br /><br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_Groups, U_TimeOffset, U_FrontPage"); <br /> $Username = $user['U_Username'];<br /> <br /> $html = new html;<br /> if (!$user['U_Username']) {<br /> //echo ("You are not Loged in. [<a href='http://spokejunkies.com/ubbthreads/login.php?Cat='>Login</a>]");<br /> $html -> not_right ($ubbt_lang['notloggedin']. $ubbt_lang['WEL_PRIV_NO'],$Cat);<br /> }<br /> print ("Welcome ");<br /> print ($Username);<br /> print (". [<a href = 'http://spokejunkies.com/ubbthreads/logout.php?Cat='>Logout</a>]");<br /><br /> ?><br /><br />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?

Top
#285415 - 05/24/05 11:15 PM Re: php script bugs! [Re: BOO_YAAAAAAA]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
sounds like a cookie issue
_________________________
- Allen wavey
- What Drives You?

Top
#285416 - 05/25/05 12:42 AM Re: php script bugs! [Re: SurfMinister]
Moab Offline
Power User

Registered: 06/09/03
Posts: 87
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

Top
#285417 - 05/25/05 01:36 AM Re: php script bugs! [Re: BOO_YAAAAAAA]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Is this script inside of your ubbthreads directory?<br /><br />If not, then a couple of things:<br />Make sure you set cookies site wide "/" in the config file.<br /><br />These:<br /> require ("includes/main.inc.php");<br />include("languages/english/index.php");<br /><br />May need complete server paths if they aren't inside of the ubbthreads directory. example: <br />require("/home/youruser/public_html/forums/main.inc.php");<br />etc...
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks