Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
a2e689d5
Commit
a2e689d5
authored
Nov 24, 2008
by
vogelor
Browse files
fixed some small typos / "copy and paste" bugs
parent
8793b32c
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/monitor/show_sys_state.php
View file @
a2e689d5
...
...
@@ -98,7 +98,7 @@ function _getServerState($serverId, $serverName, $showAll)
global
$app
;
/* The State of the server */
$serverState
=
'
unknown
'
;
$serverState
=
'
ok
'
;
/** The Number of several infos, warnings, errors, ... */
$count
=
array
(
'unknown'
=>
0
,
'info'
=>
0
,
'warning'
=>
0
,
'critical'
=>
0
,
'error'
=>
0
);
...
...
@@ -264,7 +264,7 @@ function _processDbState($type, $serverId, &$serverState, &$messages)
if
(
$type
==
'services'
){
switch
(
$record
[
'state'
])
{
case
'ok'
:
$messages
[
'
error
'
][]
=
'All needed Services are online '
.
$messages
[
'
ok
'
][]
=
'All needed Services are online '
.
"<a href='#' onclick='loadContent(
\"
monitor/show_data.php?type=services
\"
);'>[more...]</a>"
;
break
;
...
...
@@ -317,9 +317,9 @@ function _setState($oldState, $newState)
switch
(
$oldState
)
{
case
'no_state'
:
$oldInt
=
0
;
break
;
case
'
unknown
'
:
$oldInt
=
1
;
case
'
ok
'
:
$oldInt
=
1
;
break
;
case
'
ok
'
:
$oldInt
=
2
;
case
'
unknown
'
:
$oldInt
=
2
;
break
;
case
'info'
:
$oldInt
=
3
;
break
;
...
...
server/mods-available/monitor_core_module.inc.php
View file @
a2e689d5
...
...
@@ -846,9 +846,9 @@ class monitor_core_module {
switch
(
$newState
)
{
case
'no_state'
:
$newInt
=
0
;
break
;
case
'
unknown
'
:
$newInt
=
1
;
case
'
ok
'
:
$newInt
=
1
;
break
;
case
'
ok
'
:
$newInt
=
2
;
case
'
unknown
'
:
$newInt
=
2
;
break
;
case
'info'
:
$newInt
=
3
;
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment