These same areas are also to be found in the source code, which is a help for orientation when designing the page. The relevant areas that can be adapted are marked with /*Comment*/ (in the CSS part) and <!-- Comment --> (in the HTML part).The page's layout and the color scheme are set near the top of the source code between the <style> tags. The page's text content is entered into the area between the <body> tags. The font and color of the text as well as the background color are easily adapted. Colors are set as hexadecimal RGB values. Various elements included in the code are for interpretation by the LANCOM router (<pbelem>, <pblink>, etc.). This ensures, for example, that the logo and login form are only displayed if the page is called via the internal web server. The function of this tag is documented in the source code. Inserting images: The LANCOM device can store an image/logo for the Public Spot page. The image in incorporated into the source code by the element <pbelem vouchering>. Once an image has been uploaded, it will be used in the default pages. The available resolutions are set by the CSS file of the device. The pre-installed default graphics allow for 800x150 px for the large screen and 258x52 px for the small screen. The file type must be either JPG, GIF, or PNG. If you don't want to use a header image, load the following file into the LANCOM router. Uploading your own Web pages: In WEBconfig, the Public Spot pages are uploaded under File management → Upload certificate or File. Linking your web site in the configuration: After upload, a link must be set which points to the page. Use LANconfig to open the configuration and insert the following URLs under Public spot → Public spot → Page table:
Once set up and linked, the web pages will be displayed. Using files saved on USB: Preparing the USB storage medium: The following describes how to set up a USB medium for operating with a LANCOM device:
If the template page should be accessed on a USB stick, it has to be referenced as follows: http://127.0.0.1/filesrv/usb/Name.html To load the template image into the HTML page from the USB stick, the HTML reference is as follows: http://192.168.134.1/filesrv/usb/bild.jpeg Security notice for the SSL-HTTPS certificate: Problem: The integrated HTTPS page features an SSL certificate. This certificate is issued with www.lancom-systems.de as the CN. When the LANCOM is accessed with HTTPS, the browser displays a security warning stating that the SSL certificate does not agree with the name or IP address being accessed. Solution 1: Here, too, you can use WEBconfig to use and upload your own SSL certificate. This SSL certificate should be issued by a public certification authority such as VeriSign. This is because the root certificates of public certification authorities are already available in many Web browsers. Select the file type SSL certificate and use Browse to find the certificate file: Solution 2: In the default setting, HTTPS is used to deliver and communicate with the Public Spot login page. This can be switched to HTTP in the configuration. No security warning is displayed as no SSL certificate is transferred and checked. Note: If the Public Spot login page communicates via HTTP, the login information (username and password) are transferred unencrypted. By uploading the script located below, you can switch to accessing the Public Spot login page via HTTP. set /Setup/Public-Spot-Module/Login-Page-Type HTTP This script can be uploaded with the help of LANconfig. Highlight the device and, from the context menu (right mouse button), select the menu item Configuration management → Restore script from file. |