Resize and jump to the right on load
authoroes <oes@users.sourceforge.net>
Tue, 9 Apr 2002 13:06:29 +0000 (13:06 +0000)
committeroes <oes@users.sourceforge.net>
Tue, 9 Apr 2002 13:06:29 +0000 (13:06 +0000)
doc/webserver/actions/index.php

index 1c01b47..ca5f979 100755 (executable)
@@ -8,9 +8,13 @@
               This file belongs in
               ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
 
-  $Id: index.php,v 1.17 2002/04/08 10:32:00 oes Exp $
+  $Id: index.php,v 1.18 2002/04/08 17:03:29 oes Exp $
 
   $Log: index.php,v $
+  Revision 1.18  2002/04/08 17:03:29  oes
+   - Fixed problem with spaces in URLs
+   - Adapt to unified stylesheet
+
   Revision 1.17  2002/04/08 10:32:00  oes
   cosmetics again
 
  <head>
   <meta http-equiv="Content-Style-Type" content="text/css">
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+  <meta http-equiv="Content-Script-Type" content="text/javascript">
   <link rel="stylesheet" type="text/css" href="../privoxy.css">
   <link rel="stylesheet" type="text/css" href="../p_feedback.css">
 
+  <script language="javascript" type="text/javascript">
+  <!--
+   //
+   // Try to expand to the whole screen height
+   //
+   function maximizeVertically()
+   {
+      window.moveTo(screen.width - 600, 0);
+      window.resizeTo(600, Math.floor(screen.height * 0.9));  
+   }
+  //-->
+  </script>
+
 <?php
 
 /*
@@ -126,7 +144,7 @@ function error_abort($title, $message)
 
    echo ("  <title>Privoxy: $title</title>
            </head>
-           <body>
+           <body onload=\"maximizeVertically();\">
             <div class=\"title\">
              <h1>
               <a href=\"http://www.privoxy.org/\">Privoxy</a>: $title
@@ -159,6 +177,9 @@ if (!isset($url))
 {
    $url = "http://www.example.com/";
 }
+/*
+ * Kludge: We should properly escape query strings
+ */
 else
 {
    $url = strtr($url, " ", "+");
@@ -175,6 +196,7 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
 
    error_abort("invalid", "<p>As much as we welcome your feedback, please note that
                we can only accept problem reports based on:
+               </p>
                <ul>
                 <li><a href=\"http://www.privoxy.org/\" target=\"_blank\">Privoxy</a> version $required_privoxy_version or later</li>
                 <li><a href=\"$actions_file_download\">Actionsfile</a> version  version $required_actions_file_version or later</li>
@@ -190,7 +212,7 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
   <title>Privoxy Action List Feedback - Step 1 of 2</title>
  </head>
 
- <body>
+ <body onload="maximizeVertically();">
   <div class="title">
     <h1>
       <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Step 1 of 2