The GoLogin PHP script is an alternative to the standard 'hotspotlogin.cgi' script which comes standard with ChilliSpot. It is more smooth on the eye, and includes style sheets etc.
Many thanks to everyone involved in its development. I've made a few tweaks in order for it to work with Hotcakes. This appendix will show how to get it implemented instead of the standard 'hotspotlogin.cgi' script.
Specify the location of the GoLogin script in '/etc/chilli.conf'.
uamserver https://192.168.182.1/cake/hotcakes/welcome/go/
Please verify the following configuration items inside the '/var/www/cake/hotcakes/webroot/welcome/lib/config.php' file.
// Set this to the base url of your login website. // for example: "https://wireless_login.mysite.com/" define('BASE_URL', 'https://192.168.182.1/cake/hotcakes/welcome/go/'); // Shared secret used to encrypt challenge with. Prevents dictionary // attacks. You should change this to your own shared secret. // NOTE: This should match chilli.conf's 'uamsecret'. define('UAMSECRET', 'ht2eb8ej6s4et3rg1ulp');If you used values other than default, you may have to tweak it in this file.
Please change the secret value to something difficult. This has to be the same as the value specified in 'etc/chilli.conf'.
You may want to change the logo displayed on the login page. This is the 'wireless_logo.png' file under '/var/www/cake/hotcakes/webroot/welcome/go/'.
This login page is now available in four languages. You can alter the language with the following setting.
// With which language shall I talk to you? // available: 'en', 'de', 'pt_BR', 'af' $lg = 'en';
You are encouraged to ask you customers to click on the 'Bookmark' link on the login page. This will make it easy for them to get back to the login page if they closed the pop-up window by accident.
The tweaks which I've added use Ajax to periodically fetch the latest stats about the user's connection and display them in the pop-up page.