Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 50
Journeyman
Journeyman
Offline
Joined: Apr 2001
Posts: 50
Rick, I've got a strange problem on this.

I'm having these codes: (in a different directory to w3t)

[:blue]
<html>
<head>
[:orange]
<?
// Require the library
require ("../forum/main.inc.php");
require ("../forum/languages/$lang[THIS_FILE]/wwwthreads.php");

// -----------------
// Get the user info
$Username = $w3t_myname;
$Password = $w3t_mypass;

$userob = new user;
$user = $userob -> authenticate("$Username","$Password","U_Username, U_Password, U_Groups, U_TimeOffset");

}
?>


<title>mediafront</title>
blah..blah..blah...

[:orange]
<?

if ($user['U_Username'])
{
echo "$lang[INTRO_SUB], $user[U_Username]";
}
else
{
echo "
<form method=POST action="$config[phpurl]/start_page.php">
<input type=HIDDEN name=Cat value="">
<font size=1>Your ID:</font>
<input type=text name = Loginname class="formboxes" size="8"><br>
<font size=1>Password:</font>
<input type=password name=Loginpass class="formboxes" size="8">
<input type=submit name=option value="Login" class="buttons">
<font size=1 color=#FF0000><a href=$config[phpurl]/newuser.php>Register Now!</a></font>
</form>
";
}
?>


blah..blah..
</body>
</html>


But the variable $user['U_Username'] seems not worked.
When I try to strip the above paragraph of codes to only:
[:orange]
echo "$lang[INTRO_SUB], $user[U_Username]";

I can see only [:orange]Welcome, on the screen.
But the same codes could be worked simply fine when this scripts was located in w3t's directory. What's the problem?

BTW, I use session for user authentication.

Sponsored Links
Entire Thread
Subject Posted By Posted
How to use w3t's user authentication? dannylin 08/06/2001 4:39 PM
Re: How to use w3t's user authentication? Rick 08/07/2001 12:41 AM
Re: How to use w3t's user authentication? dannylin 08/07/2001 2:05 AM
Re: How to use w3t's user authentication? Rick 08/07/2001 3:49 PM
Re: How to use w3t's user authentication? dannylin 08/07/2001 5:10 PM
Re: How to use w3t's user authentication? Shalazar 08/08/2001 4:02 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,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
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,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)