News: This forum is now permanently frozen.
Pages: [1]
Topic: $PORTAL_ACTION$/ $PORTAL_REDIRURL$ 404 File not found  (Read 2594 times)
« on: September 05, 2012, 10:32:25 »
skilfing *
Posts: 1

Hi

We've set up a test m0n0wall to get a hang of all the inner workings before we use it in a productive environment, that worked very well.

Because of legal reasons we need to add terms of use before we let the users type in the voucher code to gain access.
I've tried to use two html files for that purpose (see code below). However, as soon as I enter the voucher code I get a "404 file not found" error after the redirect from the login page.

Using only the login page produces the same error, so I assume that this is not a problem related to the mechanics which we try to use.

Could someone point me in the right direction where to look for the problem/ what to do about it?

Thanks!

index.htm (terms of use, first page on the captive portal)
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0060)http://192.168.250.1/services_captiveportal.php?act=viewhtml -->
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>SS&amp;P Gäste WLAN
    </title>
    <!--?xml version="1.0" ?-->
    <meta name="description" content="Guest WLAN">
    <meta name="author" content="internal">
    <meta name="keywords" content="internal use only">
    <meta name="date" content="2008-01-22T08:49:37+01:00">
    <!--<link href="look.css" rel=stylesheet type="text/css" media=screen> -->
   
    <style type="text/css">   
    body {     
    margin-top: 0px;         
    margin-left: 0px;     
    margin-right: 0px;     
    margin-bottom: 0px;
    background-color:#DDDDDD;
    background-image:url(background.gif);
    background-repeat:repeat-y;
    background-position:center;

    }         
   
        #wrapper {
    position:absolute;
    width:600px;
    height:400px;   
    left:50%;
    top:50%;
    margin-left:-300px;
    margin-top:-200px;
    overflow:-moz-scrollbars-vertical;
    overflow-y:auto;
    font-family:arial;
    scrollbar-base-color:#DDDDDD;
    scrollbar-arrow-color:white;
    scrollbar-shadow-color:#CCCCCC;
    scrollbar-lightshadow-color:white;
    scrollbar-darkshadow-color:#666666;
   
     
    }
   
    #logo {
    position:fixed;   
    left:50%;
    top:10%;
    margin-left:-350px;

     
    }
   
    #leftbutton{
   
    }
   
    #rightbutton{
   
    }
   
        .maintable     {     
    height:100px;
    width:400px;
    position:fixed;
    margin-left:-200px;

    bottom:10%;
    left:50%; 
     }
 
    input.custombutton{
    font-size:30px;
    color:#666666;
    width:200px;
    height:50px;
    background-color:#DDDDDD;
    border-style:solid;
    border-color:#CCCCCC;
    top:70%;
    left:50%;
    }   
 
    </style>
  </head> 
 
 
                                                   
  <body>
      <div id="logo"><img src="Logo.png" align="top" height="100px" width="700px"></div>
 
  <div id=wrapper> 
  <p>Terms of Use
</p>
  </div>
<table class="maintable">
<tr>
<td>
<input name="accept" type="button" value="Accept" class="custombutton" onclick="parent.location='Login.htm'">
</td>
<td>
 <input name="accept" type="button" value="Decline" class="custombutton" onclick="parent.location='error.htm'">
 </td>
 </tr>
 </table>
  </body>
</html>


Login.html (after accepting the terms of use this is the page to which one gets redirected. Only the voucher code login should be available here)
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0060)http://192.168.250.1/services_captiveportal.php?act=viewhtml -->
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>SS&amp;P Gäste WLAN
    </title>
    <!--?xml version="1.0" ?-->
    <meta name="description" content="Guest WLAN">
    <meta name="author" content="internal">
    <meta name="keywords" content="internal use only">
    <meta name="date" content="2008-01-22T08:49:37+01:00">
    <!--<link href="look.css" rel=stylesheet type="text/css" media=screen> -->
   
    <style type="text/css">   
    body {     
        margin-top: 0px;         
    margin-left: 0px;     
    margin-right: 0px;     
    margin-bottom: 0px;
    background-color:#DDDDDD;
    background-image:url(background.gif);
    background-repeat:repeat-y;
    background-position:center; 
    }         
   
        #wrapper {
    position:absolute;   
    left:50%;
    top:50%;
    margin-left:-350px;

     
    }
   
    #logo {
    position:fixed;   
    left:50%;
    top:20%;
    margin-left:-350px;

     
    }
   
    TABLE {
    border-collapse: collapse;     
    }

         
    .maintable     {     
    height:100px;
    width:435px;
    position:fixed;
    margin-left:-217px;
    margin-top:-50px;
    top:50%;
    left:50%; 
     }
     
    .centertable {     
    background-color:#FFFFFF;

    }     
     
    .lefttable {     
    background-color:#DDDDDD;
    width:150px;

    }     
   
    .righttable {     
    background-color:#DDDDDD;
    width:150px;

    }
    input.custominput{
    border:none;
    border-radius:2px;
    background-color: #666cc;
    color: #666666;
    margin:0 auto;
    margin-left:10px;
    size:15;
    height:55px;
    font-size:30px;
    text-align:center;
    }   
 
    input.custombutton{
    font-size:30px;
    color:#666666;
    width:100px;
    height:60px;
    background-color:#DDDDDD;
    border-style:solid;
    border-color:#CCCCCC;
    }   
 
    </style>
  </head> 
 
 
                                                   
  <body>
   
    <table class="maintable">
    <div id="logo"><img src="Logo.png" align="top" height="100px" width="700px"></div>
     
      <tr>
     
     
       
        <td class="lefttable">
         <form method="post" action="$PORTAL_ACTION$">
          <input name="auth_voucher" type="text" onfocus="this.value=''"value="Vouchercode" class="custominput">
        </td>
       
       
        <td rowspan="2" class="lefttable">
          <input name="redirurl" type="hidden" value="$PORTAL_REDIRURL$">
          <input name="accept" type="submit" value="Login" class="custombutton">
      </form>
        </td>
       
      </tr>
     
      <tr>
     
        <!--Unten links -->
        <td class="lefttable">
       
        </td>
       
       
       
       
      </tr>

     
    </table>
  </body>
</html>
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines