[ 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:  Captive portal - own PHP page
 Date:  Wed, 20 Oct 2004 11:19:15 +0200
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. ?>