Some code refactoring

- Replaced 'shell_exec("curl -s URL")' with PHP5 cURL function
- Replaced state-variables with constants
- Replaced version and program variables with constants
- Bumped version to 0.2
This commit is contained in:
2014-07-31 11:13:34 +02:00
parent 4ff4f37953
commit 38370d9f27
3 changed files with 34 additions and 19 deletions

View File

@@ -16,6 +16,9 @@ Don't forget to quote the district in the argument, such as the below example.
Create one instance of each district you want to monitor.
## Requirements ##
The script requires PHP5 and the PHP5 cURL module (php5-curl on Debian systems).
## Copyright ##
Original author is Jack-Benny Persson (jack-benny@cyberinfo.se).