FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » 2 different home's page for 2 range of IP
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
2 different home's page for 2 range of IP [message #24473] Thu, 28 April 2005 16:46 Go to next message
Aurelius is currently offline  Aurelius   France
Messages: 15
Registered: March 2005
Location: France Lille
Karma: 0
Junior Member
My forum is installed on a machine accessible by internet, but I want to authorize users of range of IP intranet to visualize forums as anonymous, and I want to oblige users from internet to login before use the forum.
I think to create 2 VirtualHost on apache on 2 different ports but I don't know if I must create 2 directories "WWW Root" and 2 directories "Data Root", or duplicate "GLOBALS.php" or 2 differents "index.php"....
What's the solution?
Re: 2 different home's page for 2 range of IP [message #24474 is a reply to message #24473] Thu, 28 April 2005 17:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Changing the paths won't help you. Given that you wish to deny anonymous access based on IP ranges I'd say your only recourse would be to modify the forum code to do the IP checks.

FUDforum Core Developer
Re: 2 different home's page for 2 range of IP [message #24708 is a reply to message #24474] Tue, 10 May 2005 15:18 Go to previous messageGo to next message
Aurelius is currently offline  Aurelius   France
Messages: 15
Registered: March 2005
Location: France Lille
Karma: 0
Junior Member
Can you help me to change the forum code, I don't know which variables must be modified to deny anonymous access or no...
Is-it $id in "index.php" and then I just make a header("Location : index.php?t=login&rid=0")?
Re: 2 different home's page for 2 range of IP [message #24724 is a reply to message #24708] Thu, 12 May 2005 12:04 Go to previous messageGo to next message
Aurelius is currently offline  Aurelius   France
Messages: 15
Registered: March 2005
Location: France Lille
Karma: 0
Junior Member
In fact what-is the variable (and value) who shows user is logged ?

Thanks
Re: 2 different home's page for 2 range of IP [message #24725 is a reply to message #24724] Thu, 12 May 2005 12:08 Go to previous messageGo to next message
Aurelius is currently offline  Aurelius   France
Messages: 15
Registered: March 2005
Location: France Lille
Karma: 0
Junior Member
I found it, it's _uid...

sorry
Re: 2 different home's page for 2 range of IP [message #24731 is a reply to message #24725] Thu, 12 May 2005 15:43 Go to previous messageGo to next message
Aurelius is currently offline  Aurelius   France
Messages: 15
Registered: March 2005
Location: France Lille
Karma: 0
Junior Member
Help, I don't find where I should put my code ? Sad
Re: 2 different home's page for 2 range of IP [message #24746 is a reply to message #24731] Thu, 12 May 2005 21:49 Go to previous message
Ilia is currently offline  Ilia   Mexico
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Probably root_index.php.t or users.inc.t, be sure to rebuild the theme after modifying those files.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing language for different IPs
Next Topic: simple quick help please
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 06:04:02 GMT 2024

Total time taken to generate the page: 0.03592 seconds