Menu
Is it possible to have a publically accessable website show intranet content to viewers who belong to the intranet network, but the intranet navigation/content be hidden from any public (non-networked) viewers?
The intranet content would be on a seperate drive that is non-accesible by the general public.
For example… have a main navigation… then, if the user is an intranet user, they also see an extra navigation for private links.
If you're thinking of having everybody see the same site, but with slightly varied content, you can base the page output on the client's IP address (environment variable: REMOTE_ADDR).
In PHP you need to check $_SERVER["REMOTE_ADDR"].
In Perl you need to check $ENV{'REMOTE_ADDR'}.
Then, you can do whatever operations you feel you need to test the IP.[/quote]
you might be able to use URL rewriting rules base on the referrer to control the menu inclusion on the pages[/quote]
[code=php]$digit_set = split(".", $ip_string);
$int_ip = (pow(256, 3) * $digit_set[0]) + (pow(256, 2) * $digit_set[1]) + (256 * $digit_set[2]) + $digit_set[3];[/code]
Also, from your word mapping, it sounds like your thinking that the internal server and external server are on the same machine[/QUOTE]Actually there are four or five hosts there depending how you want to look at the firewall. The dashes are network connections. (Graphics do make a difference.) ?
src="I:/folder/folder/name.jpg"[/QUOTE]Of course the source would be a real URL, not something with a drive mapping. If you run your site with PHP then I assume PHP has a "create session" event like ASP does where you could look at the referer's address and set a session variable accordingly that would be used to remap desired URLs on the fly including those for menu includes. Yes, URL rewriting can be very finicky.
0.1.9 — BETA 6.17