Skip to content

Commit

Permalink
Initial build
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdbaggy committed Feb 26, 2015
1 parent f723d76 commit 633d9e8
Show file tree
Hide file tree
Showing 47 changed files with 35,382 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .gitignore
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
18 changes: 18 additions & 0 deletions backend/statuspage/checks.php
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));
20 changes: 20 additions & 0 deletions backend/statuspage/config.php
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')));
Loading

0 comments on commit 633d9e8

Please sign in to comment.