This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- | |
Shows total of funds raised, on and offline including gift aid (UK Tax refund) from justgiving.com on Panic Status Board: http://panic.com/statusboard/ | |
Instructions: | |
1. Register for an API key and access at: https://api.justgiving.com/docs | |
2. Replace: https://api.justgiving.com/your-api-key/v1/fundraising/pages/your-page-name with the appropriate api-key and your-page-name | |
3. Place the page on an accessible web server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//add your server aliases here | |
$servers = array( | |
"185.14.184.234" => "mcfly.bensmann.no", | |
"185.14.184.xxx" => "another.server.com", | |
); | |
//change this line to compensate for servers updating less frequenct (65 chosen for servers running curl every 1 min) | |
$timeinsecondstoalert = 65 |