Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
hmmmm... I am doing it a bit differently. I want to create a table on the front index.php that gives them the:

Hello Username [ Logout ]

If they are logged in. If they aren't logged in, I want to give them a login box. That part is easy, except that it's never recognizing me as being logged in. You can see the results on the front page here, lower right hand corner.

Here's my code:
Code
<?
// Name: Name on front page by raiyan
// Description: Grabs your ubb name and prints it
// change this!!!
$dir_to_noncgi = "/home/virtual/admin35/var/www/html/ubb";
// change this!!!
require "$dir_to_noncgi/vars_config.inc.php";
global $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $Cookie_Number, $CGIURL;
$my_cookie = $_COOKIE["ubber$Cookie_Number"];
$my_ubb = "$CGIURL/ultimatebb.cgi";
if ($my_cookie) {
$cookie = explode("&", $my_cookie);
echo "Hello $cookie[2]! [ <a href="$my_ubb?ubb=logout">Logout</a> ]";
} else {
echo "<form action="$CGIURL/ultimatebb.cgi" method="post">
<input type="hidden" name="ubb" value="do_login" />
Login Name: <input type="text" name="username" size="15" maxlength="40" />

Password: <input type="password" name="password" size="15" maxlength="30" />

<input type="submit" name="submit" value="Login" /></form>";
}
?>
Any ideas why it's not recognizing me as being logged in?


- Allen wavey
- What Drives You?
Sponsored Links
Entire Thread
Subject Posted By Posted
ubb - show name on front page Brett 11/30/2001 1:00 AM
Re: ubb - show name on front page Durango 11/30/2001 1:59 AM
Re: ubb - show name on front page Brett 11/30/2001 2:02 AM
Re: ubb - show name on front page Durango 11/30/2001 2:14 AM
Re: ubb - show name on front page LK 11/30/2001 11:07 PM
Re: ubb - show name on front page Durango 12/01/2001 12:25 AM
Re: ubb - show name on front page LK 12/01/2001 12:43 AM
Re: ubb - show name on front page Durango 12/01/2001 2:08 AM
Re: ubb - show name on front page LK 12/01/2001 9:37 AM
Re: ubb - show name on front page Durango 12/01/2001 10:00 AM
Re: ubb - show name on front page LK 12/01/2001 10:30 AM
Re: ubb - show name on front page Durango 12/01/2001 8:57 PM
Re: ubb - show name on front page ScottRoberts 12/20/2001 5:51 AM
Re: ubb - show name on front page LK 12/20/2001 2:18 PM
Re: ubb - show name on front page ScottRoberts 12/20/2001 4:45 PM
Re: ubb - show name on front page LK 12/20/2001 5:44 PM
Re: ubb - show name on front page ScottRoberts 12/20/2001 6:54 PM
Re: ubb - show name on front page ScottRoberts 12/21/2001 4:26 AM
Re: ubb - show name on front page LK 12/21/2001 12:01 PM
Re: ubb - show name on front page ScottRoberts 12/22/2001 8:51 PM
Re: ubb - show name on front page ScottRoberts 12/24/2001 8:46 PM
Re: ubb - show name on front page LK 12/24/2001 9:57 PM
Re: ubb - show name on front page AllenAyres 07/09/2002 8:17 PM
Re: ubb - show name on front page SYP}{ER 07/16/2002 4:38 PM
Re: ubb - show name on front page Brett 07/17/2002 2:13 AM
Re: ubb - show name on front page AllenAyres 07/25/2002 6:08 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)