XOOPS
Forum
Forum Index
General Forums
Community Support
Modules Support
Themes Support
Development
International Support
Module Hack Reviews
Theme Designer Talk
HOME
XOOPS
About XOOPS
Why XOOPS?
XOOPS Features
Terms Of Use
Privacy Statement
License
FORUM
Board Index
Recent Topics
NEWS
THEMES
MODULES
Module @ GitHub
Old Repository
XOOPS FAQ
ACCOUNT
Login
Register
DOWNLOAD XOOPS 2.7.x
Board index
/
XOOPS Community Support forums /
Q and A
/ Incorrect Redirection Problem
Register
View mode
Newest First
1
Incorrect Redirection Problem
2004/5/25 16:34
prophecy100
Just popping in
Posts:
31
Since: 2004/5/21
Hello all
I am having a small problem that I hope someone here can help me with.
I have XOOPS installed in a directory called portal, i.e.
http://mydomain.com/portal
, I also have a seperate login page outside this structure,
http://mydomain.com/login.htm
. I have inserted the following code at the top of index.php to redirect the user to this login page if they are not logged in:
if ( !$xoopsUser ) {
redirect_header("http://mydomain.com/login.htm");
exit();
}
This works fine if the user tries to go to the index page, however if the user tries to go to another url, for example
http://mydomain.com/portal/modules/articles/index.php
then XOOPS seems to go into a direct loop. The user is told they do not have access (which is correct) and then they are redirected to nowhere. XOOPS tries to redirect but all that happens is the URL gets longer and longer and it seems to continually loop. Below is an example of the url this creates.
Does anyone know where I can change or specify the redirect location. I tried altering a couple of lines in includes/checklogin.php which referred to INCORRECTLOGIN but this didn't seem to have any effect.
Any ideas?
Many thanks
Jonathan
URL Example-
http://mydomain.com/portal/user.php?xoops_redirect=%2Fportal%2Fuser.php%3Fxoops_redirect%3D%252Fportal%252Fuser.php%253Fxoops_redirect%253D%25252Fportal%25252Fuser.php%25253Fxoops_redirect%25253D%2525252Fportal%2525252Fuser.php%2525253Fxoops_redirect%2525253D%252525252Fportal%252525252Fuser.php%252525253Fxoops_redirect%252525253D%25252525252Fportal%25252525252Fuser.php%25252525253Fxoops_redirect%25252525253D%2525252525252Fportal%2525252525252Fuser.php%2525252525253Fxoops_redirect%2525252525253D%252525252525252Fportal%252525252525252Fuser.php%252525252525253Fxoops_redirect%252525252525253D%25252525252525252Fportal%25252525252525252Fuser.php%25252525252525253Fxoops_redirect%25252525252525253D%2525252525252525252Fportal%2525252525252525252Fmodules%2525252525252525252Farticles%2525252525252525252F
Login
Username
Password
Remember me
Reset
Search
Advanced Search
Recent Posts
Re: XOOPS Debugbar 1.4.1 Released
8/14 2:54
Mamba
Re: XOOPS Debugbar 1.4.1 Released
8/14 2:53
Mamba
XOOPS Plugin for PhpStorm Released
8/12 2:21
Mamba
XOOPS 2.7.3 RC-1 Released
8/11 7:40
Mamba
XOOPS Debugbar 1.4.1 Released
8/11 7:22
Mamba
xWhoops 2.0.0 Beta 2 Released
8/11 7:16
Mamba
xTracy 1.0.0-Beta1 Released
8/11 7:16
Mamba
XOOPS 2.8.0, the multilingual version of XOOPS
8/8 18:28
Mamba
XOOPS ModuleInstaller 1.7.0 Alpha 1 Released
8/6 4:12
Mamba
XOOPS Debugbar 1.4.0 released
8/5 6:36
Mamba
Donat-O-Meter
Stats
Goal:
$15.00
Due Date:
Aug 31
Gross Amount:
$0.00
Net Balance:
$0.00
Left to go:
$15.00