';
+ $bc[$i] .= ''.$url['label'];
+ $bc[$i++] .= '
';
}
if ($add === true) {
@@ -162,12 +201,20 @@ class Wizard
/**
- * To be overwritten.
+ * Checks if environment is ready,
+ * returns array
+ * icon: icon to be displayed
+ * label: label to be displayed
*
- * @return void
- */
+ * @return array With data.
+ **/
public function load()
{
+ return [
+ 'icon' => $this->icon,
+ 'label' => $this->label,
+ 'url' => $this->url,
+ ];
}
diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php
index fa40994962..29ed623d6e 100644
--- a/pandora_console/include/class/ConsoleSupervisor.php
+++ b/pandora_console/include/class/ConsoleSupervisor.php
@@ -340,6 +340,14 @@ class ConsoleSupervisor
enterprise_hook('cron_supervisor_release_lock');
}
+ /*
+ * Check if CRON is running.
+ * NOTIF.CRON.CONFIGURED
+ */
+ if (enterprise_installed()) {
+ $this->checkCronRunning();
+ }
+
}
diff --git a/pandora_console/include/functions_messages.php b/pandora_console/include/functions_messages.php
index 3fb907ab06..5374fb7b1e 100644
--- a/pandora_console/include/functions_messages.php
+++ b/pandora_console/include/functions_messages.php
@@ -375,7 +375,7 @@ function messages_get_count(
tnotification_source ns
LEFT JOIN tnotification_source_user nsu
ON ns.id=nsu.id_source
- AND nsu.id_user="test")
+ AND nsu.id_user="%s")
ON tm.id_source=ns.id',
$user
);
diff --git a/pandora_console/include/styles/discovery.css b/pandora_console/include/styles/discovery.css
index 7c5933aba9..aebb0a3d0d 100644
--- a/pandora_console/include/styles/discovery.css
+++ b/pandora_console/include/styles/discovery.css
@@ -60,7 +60,7 @@ div.data_container:hover {
.arrow_box {
display: inline-block;
position: relative;
- background: #82b92e;
+ background: #ccc;
padding: 14px;
margin-left: 20px;
margin-bottom: 10px;
@@ -75,6 +75,9 @@ div.data_container:hover {
position: absolute;
pointer-events: none;
}
+.arrow_box.selected {
+ background: #82b92e;
+}
.arrow_box:after {
left: 0%;
@@ -84,7 +87,10 @@ div.data_container:hover {
}
.arrow_box:before {
left: 100%;
- border-left-color: #82b92e;
+ border-left-color: #ccc;
border-width: 20px;
margin-top: -20px;
}
+.arrow_box.selected:before {
+ border-left-color: #82b92e;
+}