From c6012689dbbae42bd91d59aa1e029a8558fa7aef Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 17 Mar 2010 12:53:33 +1300 Subject: [PATCH] Templates for captive portal proxy configration instructions Captive portals often have to bounce users to configuration instructions. Those instructions consist of of how to setup WPAD or manual settings. These templates allow for a standard and localized instruction set for better support of mixed language users across any portal. They are used by adding deny_info ERR_AGENT_... to the configuration. The ERR_AGENT_CONFIGURE template utilizes visible_hostname and port info from the responding proxy to display correct configuration details for the gateway without requiring administrative re-write of the page. Derived from work by the Mandrivia Project. TODO: * some form of CSS agent detection to specialize the instructions. * add texts for other common agents --- errors/templates/ERR_AGENT_CONFIGURE | 59 ++++++++++++++++++++++++++++ errors/templates/ERR_AGENT_WPAD | 59 ++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 errors/templates/ERR_AGENT_CONFIGURE create mode 100644 errors/templates/ERR_AGENT_WPAD diff --git a/errors/templates/ERR_AGENT_CONFIGURE b/errors/templates/ERR_AGENT_CONFIGURE new file mode 100644 index 0000000000..f25410b834 --- /dev/null +++ b/errors/templates/ERR_AGENT_CONFIGURE @@ -0,0 +1,59 @@ + + + +Web Browser Configuration + + +
+

ERROR

+

Web Browser Configuration

+
+
+ +
+
+

Your Web Browser configuration needs to be corrected to use this network.

+
+ +

How to find these settings in your browser:

+ +
+For Firefox browsers go to: +
    +
  • Tools -> Options -> Advanced -> Network -> Connection Settings
  • +
  • In the HTTP proxy box type the proxy name %h and port 3128.
  • +
+
+ +
+For Internet Explorer browsers go to: +
    +
  • Tools -> Internet Options -> Connection -> LAN Settings ->Proxy
  • +
  • In the HTTP proxy box type the proxy name %h and port 3128.
  • +
+
+ +
+For Opera browsers go to: +
    +
  • Tools -> Preferences -> Advanced -> Network -> Proxy Servers
  • +
  • In the HTTP proxy box type the proxy name %h and port 3128.
  • +
+
+ +

Your cache administrator is %w.

+
+
+ +
+ + diff --git a/errors/templates/ERR_AGENT_WPAD b/errors/templates/ERR_AGENT_WPAD new file mode 100644 index 0000000000..82235ba9f5 --- /dev/null +++ b/errors/templates/ERR_AGENT_WPAD @@ -0,0 +1,59 @@ + + + +Web Browser Configuration + + +
+

ERROR

+

Web Browser Configuration

+
+
+ +
+
+

Your Web Browser configuration needs to be corrected to use this network.

+
+ +

How to find these settings in your browser:

+ +
+For Firefox browsers go to: +
    +
  • Tools -> Options -> Advanced -> Network -> Connection Settings
  • +Select Auto-detect proxy settings for this network +
+
+ +
+For Internet Explorer browsers go to: +
    +
  • Tools -> Internet Options -> Connection -> LAN Settings ->Proxy
  • +
  • Select Automatically detect settings
  • +
+
+ +
+For Opera browsers go to: +
    +
  • Tools -> Preferences -> Advanced -> Network -> Proxy Servers
  • +
  • Select Use Automatic proxy configuration
  • +
+
+ +

Your cache administrator is %w.

+
+
+ +
+ + -- 2.47.3