[ previous ] [ next ] [ threads ]
 
 From:  "Mitch \(WebCob\)" <mitch at webcob dot com>
 To:  "Peter Parniean" <peter at procad dot sk>, m0n0wall at lists dot m0n0 dot ch
 Subject:  RE: [m0n0wall] Captive portal - own PHP page
 Date:  Wed, 20 Oct 2004 10:25:15 -0700
If memory serves, the httpd on mono is customized to ALWAYS load the mono
page... so no, not really - you would have to overwrite the eixsting page
perhaps? guessing here... make backups!

m/

> -----Original Message-----

> Sent: Wednesday, October 20, 2004 2:19 AM
> To: m0n0wall at lists dot m0n0 dot ch
> Subject: [m0n0wall] Captive portal - own PHP page
>
>
> Hi, I "discovered" captive portal and its very nice thing. Im
> thinking do this:
> I'll create a PHP page whit easy login script. Is it possible to
> save these pages (2-4 pages)
> to the same PC where is mOnowall running?
>
> Configuration of m0n0 is also done by php, so it should
> working... Is there any possiblity?
> If Yes, how to copy these pages to that PC, i alredy tried put
> the HDD with mOnO to my WINDOWS PC but
> i can see nothing :-(
>
> Peter
>
> -----
> Examples:
> config.php
> <?
> $user1= "admin";  // your username for control panel (be original!)
> $pass1= "password";  // your password for control panel
> $user2= "admin";  // your username for control panel (be original!)
> $pass2= "password";  // your password for control panel
> ?>
>
> and login.php
> <?
> if($_GET['action'] == "submit"){
>  if(!isset($_POST['username']) || !isset($_POST['password'])){
>   print "<font color=maroon><b>No Username or Password</b></font><p><p>";
>   login();
>   footer();
>   exit; ......etc. ?>
>