From d9f04fa3486fc681aef2fa9790e1bc0fd26d542b Mon Sep 17 00:00:00 2001 From: Pepijn Over Date: Sun, 6 Apr 2014 17:59:59 +0200 Subject: [PATCH] use minified css and some minor formatting issues --- README.md | 2 ++ .../AbstractServerController.class.php | 1 + src/templates/main.tpl.html | 4 +-- src/templates/server/history.tpl.html | 2 +- src/templates/server/log.tpl.html | 8 ++++- src/templates/server/status.tpl.html | 36 +++++++++---------- src/templates/server/view.tpl.html | 1 + 7 files changed, 32 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 317cc510..3921a34b 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # PHP Server Monitor +Version 3.0.0 + ## Summary PHP Server Monitor is a script that checks whether your websites and servers are up and running. diff --git a/src/psm/Module/Server/Controller/AbstractServerController.class.php b/src/psm/Module/Server/Controller/AbstractServerController.class.php index 260fc606..4a763b2f 100644 --- a/src/psm/Module/Server/Controller/AbstractServerController.class.php +++ b/src/psm/Module/Server/Controller/AbstractServerController.class.php @@ -110,6 +110,7 @@ abstract class AbstractServerController extends AbstractController { $server['status'] = 'warning'; } + $server['error'] = htmlentities($server['error']); $server['type'] = psm_get_lang('servers', 'type_' . $server['type']); return $server; diff --git a/src/templates/main.tpl.html b/src/templates/main.tpl.html index 1fc063a0..5615e375 100755 --- a/src/templates/main.tpl.html +++ b/src/templates/main.tpl.html @@ -9,8 +9,8 @@ {auto_refresh} - - + + + + + + + + - + diff --git a/src/templates/server/status.tpl.html b/src/templates/server/status.tpl.html index e5878447..b8065ec4 100755 --- a/src/templates/server/status.tpl.html +++ b/src/templates/server/status.tpl.html @@ -53,24 +53,24 @@ margin-right: 20px; } -
- -
-

{label}

-

{label_last_online}: {last_online_nice}

-

{label_last_check}: {last_checked_nice}

-
- - {servers_offline} +
+ +
+

{label}

+

{label_last_online}: {last_online_nice}

+

{label_last_check}: {last_checked_nice}

-
- -
-

{label}

-

{label_last_online}: {last_checked_nice}

-

{label_rtime}: {rtime}s

-
- - {servers_online} + + {servers_offline} +
+
+ +
+

{label}

+

{label_last_online}: {last_checked_nice}

+

{label_rtime}: {rtime}s

+ + {servers_online} +
\ No newline at end of file diff --git a/src/templates/server/view.tpl.html b/src/templates/server/view.tpl.html index f53bc634..efae2383 100644 --- a/src/templates/server/view.tpl.html +++ b/src/templates/server/view.tpl.html @@ -2,6 +2,7 @@
{label_server} {label_message}{label_date}{label_date} {label_users}
+