You are here: addons4webgui > Home > Macros
User: Visitor
Navigation
News
Login
Browser

Documentation

Browser Macro for WebGUI

What's this?:

This WebGUI macro detects the current browser and returns it.

System requirements:

  • Web server (tested on Apache 2).
  • WebGUI (tested on WebGUI V7.4.x).
  • Perl module HTTP::BrowserDetect.

Files:

  • WebGUI/docs/Macro_Browser.html: This document here.
  • WebGUI/lib/WebGUI/Help/Macro_Browser.pm: Help file.
  • WebGUI/lib/WebGUI/Macro/Browser.pm: WebGUI macro.
  • WebGUI/lib/WebGUI/i18n/English/Macro_Browser.pm: Texts in english language.
  • WebGUI/lib/WebGUI/i18n/German/Macro_Browser.pm: Texts in german language.

Installation:

  1. Download the package source from http://sourceforge.net/projects/addons4webgui.
  2. Extract it into your WebGUI install. Example: tar xvfz /path/to/Macro_Browser-x.x.x.tar.gz /path/to/WebGUI.
  3. Edit WebGUI conf file to add the Browser macro to the macro list.
  4. Restart web server.

Usage:

ˆBrowser(); returns the browser type.
ˆBrowser(version); returns the browser version.

Troubleshooting:

See web server log file and/or webgui log file.

Changelog:

V3.0.1:
  • Renamed and updated this document
V3.0.0:
  • Migrated to WebGUI V7.4.x
V2.1.0:
  • Migrated to WebGUI V6.8.x
  • Added text files
  • Added help file
V2.0.0:
  • Testet with WebGUI 6.7.x
  • Added this doc
V0.1.0:
  • First release
Copyright 2006-2008, studio4master
Licensed under the GNU General Public License (GPL) V3

http://addons4webgui.studio4master.ch

            Valid CSS!  
Running on WebGUI 7.6.25-s4m-20090617
Copyright (c) 2001-2009 by studio4master