Skip to content

Commit

Permalink
improved the code, fixed some errors in ajaxinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
lfiore committed Oct 4, 2014
1 parent 7af5603 commit 9c98b80
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 248 deletions.
22 changes: 0 additions & 22 deletions .gitattributes

This file was deleted.

215 changes: 0 additions & 215 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion ajaxinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// services
foreach ($services_list as $name => $port)
{
$services[] = (fsockopen('localhost', $port) ? true : false);
$services[] = (@fsockopen('localhost', $port) ? true : false);
}

// servers
Expand Down
4 changes: 2 additions & 2 deletions conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

// add any servers you want to monitor below in one of the following formats
// 'Server Name' => '0.0.0.0' (IP address)
// 'Server Name' => 'domain.com' (domain name)
// 'Server Name' => 'http://domain.com' (domain name)
// keep in mind, if you use Cloudflare or the domain doesn't point directly to the server, you will need to use the actual server IP, not the domain name

$servers_list = [
'Google' => 'http://www.google.co.uk/'
'Google' => 'http://google.co.uk'
];
11 changes: 4 additions & 7 deletions css/status.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
@font-face {
font-family: 'Open Sans';
src: url('OpenSans-Regular-webfont.woff');
}

* {
margin: 0;
padding: 0;
font-family: 'Open Sans';
font-family: 'Arial';
}

body {
Expand Down Expand Up @@ -37,6 +32,7 @@ progress, progress::-webkit-progress-bar {
margin-bottom: 10px;
padding: 10px;
background-color: #FFF;
box-shadow: 0px 5px 5px -5px #BBB;
}

.box:last-child {
Expand Down Expand Up @@ -102,7 +98,8 @@ progress, progress::-webkit-progress-bar {
}

#footer, #footer a {
color: #BBB;
color: #777;
font-size: 12px;
}

#footer {
Expand Down
2 changes: 1 addition & 1 deletion js/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ setInterval(function() {

});

}, 5000);
}, 2000);

setInterval(function() {

Expand Down

0 comments on commit 9c98b80

Please sign in to comment.