Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Thanks, I will try your code.

I also found a workaround, that I placed in login.php.
I wonder which code is safer, probably my if statement,
which uses THREADS code and is PHP independent.
And your redirect code..


My workaround for the login.php page was:

after:
code:

// --------------------------------
// require the proper language file
require "languages/$w3t_language/login.php";


insert in login.php:
code:

// HACK URL correction
if (!stristr(find_environmental('HTTP_REFERER'),"www.")) {
echo <<<REDIR
<html>
<head>
<meta http-equiv="Refresh" content="1;url={$config['phpurl']}/login.php">
</head>
<body>
</body>
</html>
REDIR;
exit; }

// Hack end


Last edited by caymuc; 06/08/2002 8:54 AM.
Sponsored Links
Entire Thread
Subject Posted By Posted
URL checking needed caymuc 06/08/2002 2:51 PM
Re: URL checking needed Dave_L_dup1 06/08/2002 3:20 PM
Re: URL checking needed JustDave 06/08/2002 3:38 PM
Re: URL checking needed caymuc 06/08/2002 3:50 PM
Re: URL checking needed JustDave 06/08/2002 3:52 PM
Re: URL checking needed caymuc 06/19/2002 1:43 PM
Re: URL checking needed BryanDS 06/20/2002 5:45 AM
Re: URL checking needed caymuc 06/20/2002 9:47 AM
Re: URL checking needed BryanDS 06/21/2002 3:31 AM
Re: URL checking needed Maze 06/21/2002 9:54 AM
Re: URL checking needed caymuc 06/22/2002 2:04 AM
Re: URL checking needed JoshPet 06/22/2002 2:06 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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
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,835
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-2025 VNC Web Services

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