-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
35,382 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
config.php | ||
sftp-config.json | ||
StatusPage.sublime-project | ||
*.sublime-workspace | ||
*.sublime-workspace | ||
bower_components | ||
node_modules | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
namespace NerdBaggy\StatusPage; | ||
|
||
require_once("phpfastcache/phpfastcache.php"); | ||
require_once('config.php'); | ||
require_once('statusPage.php'); | ||
\phpFastCache::setup("storage","files"); | ||
|
||
header('content-type: application/json; charset=utf-8'); | ||
header("access-control-allow-origin: *"); | ||
|
||
$statusPage = new statusPage(); | ||
|
||
$tableHeaders = $statusPage->getTableHeaders(); | ||
|
||
$checks = $statusPage->getChecks($_GET['action']); | ||
|
||
echo $statusPage->padIt(array('headers' => $tableHeaders, 'checks' => $checks)); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace NerdBaggy\StatusPage; | ||
|
||
//Uptime Robot API Key | ||
define('apiKey', 'Your-API-Key-Here'); | ||
|
||
//Uptime percentage for following days | ||
define('historyDay', '1-7-30-360'); | ||
|
||
//Display names for the uptime percentage of the previous days | ||
define('historyDaysNames', serialize(array('Past 24 Hours', 'Past Week', 'Past Month', 'Past Year'))); | ||
|
||
//How long to hold the cache of the data, best option is how often your checks get checked in seconds | ||
define('cacheTime', 300); | ||
|
||
//Only show these monitors | ||
//define('includedMonitors', ''); | ||
|
||
//Hide certain monitors | ||
//define('excludedMonitors', serialize(array('776601697'))); |
Oops, something went wrong.