[ previous ] [ next ] [ threads ]
 From:  =?iso-8859-2?Q?Peter_Parni=E8an?= <peter at procad dot sk>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  php page for captive portal
 Date:  Fri, 20 May 2005 15:50:35 +0200
Hi guys, im playing with this idea:

I would like to redirect each user to their own "account portal". Than ill 
be able to show any message to users per IP... so they can see differnt 
And here is way which should work but it doesnt... (propably php page isnt 
supported in CP)

I need pass a local IP address to my web page somewhere on the internet. Its 
qiute easy if php works with captive portal (CP)...


<form method="post" action="$PORTAL_ACTION$">           // redirect to my 
web page example: www.monowall.procad.sk (support for monowall in slovak 

<input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
<input name="accept" type="submit" value="Continue">

<input type="text" name="ip" value="<? echo 
(gethostbyname($REMOTE_ADDR));?>"> //information with local IP address



Any idea how to identify at my web page (located outside my LAN) users from 
my LAN per IP and than show them diferent messages ?
Or how to use CP with php source?

TIA, Peter