diff --git a/pandora_console/images/ehorus/ad/background-dark.svg b/pandora_console/images/ehorus/ad/background-dark.svg new file mode 100644 index 0000000000..3057ca4955 --- /dev/null +++ b/pandora_console/images/ehorus/ad/background-dark.svg @@ -0,0 +1,15 @@ + + + 422806FF-0687-4B43-A3C3-3B62DFA40B66 + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/background.svg b/pandora_console/images/ehorus/ad/background.svg new file mode 100644 index 0000000000..d04e0a3b43 --- /dev/null +++ b/pandora_console/images/ehorus/ad/background.svg @@ -0,0 +1,30 @@ + + + BB0CC5B6-76D4-4142-933D-B9E12CF76BA1 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/cli.svg b/pandora_console/images/ehorus/ad/cli.svg new file mode 100644 index 0000000000..1deb0e137f --- /dev/null +++ b/pandora_console/images/ehorus/ad/cli.svg @@ -0,0 +1,80 @@ + + + C8EE1DE3-04CA-4E20-BD50-5B141F36DDF6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/desktop.svg b/pandora_console/images/ehorus/ad/desktop.svg new file mode 100644 index 0000000000..7d525c1d2a --- /dev/null +++ b/pandora_console/images/ehorus/ad/desktop.svg @@ -0,0 +1,96 @@ + + + 52547496-009D-46AC-AB17-3C93094C7BBA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/files.svg b/pandora_console/images/ehorus/ad/files.svg new file mode 100644 index 0000000000..854ebdf78d --- /dev/null +++ b/pandora_console/images/ehorus/ad/files.svg @@ -0,0 +1,96 @@ + + + E100CE6F-680B-4C89-99F8-1A1E05713ACD + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/multiplatform.svg b/pandora_console/images/ehorus/ad/multiplatform.svg new file mode 100644 index 0000000000..4f5c0668c3 --- /dev/null +++ b/pandora_console/images/ehorus/ad/multiplatform.svg @@ -0,0 +1,78 @@ + + + 0092E94F-D2F7-4474-84D1-25A07223CAB4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/process-services.svg b/pandora_console/images/ehorus/ad/process-services.svg new file mode 100644 index 0000000000..3ce7d267e0 --- /dev/null +++ b/pandora_console/images/ehorus/ad/process-services.svg @@ -0,0 +1,96 @@ + + + 104E62BF-DC98-457F-91CB-8B761243C6B7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/images/ehorus/ad/sample.svg b/pandora_console/images/ehorus/ad/sample.svg new file mode 100644 index 0000000000..0cba0f5271 --- /dev/null +++ b/pandora_console/images/ehorus/ad/sample.svg @@ -0,0 +1,356 @@ + + + A0AB2D76-3858-4CD0-B643-408098221FFA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pandora_console/include/styles/pandora-rc.css b/pandora_console/include/styles/pandora-rc.css new file mode 100644 index 0000000000..d5098ca702 --- /dev/null +++ b/pandora_console/include/styles/pandora-rc.css @@ -0,0 +1,130 @@ +/** + * + * Name: Pandora RC styles + * + * @category Stylesheet + * @package Pandora FMS + * @subpackage Community + * @version 1.0.0 + * @license See below + * + * ______ ___ _______ _______ ________ + * | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __| + * | __/| _ | | _ || _ | _| _ | | ___| |__ | + * |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______| + * + * ============================================================================ + * Copyright (c) 2005-2023 Pandora FMS + * Please see https://pandorafms.com for full contribution list + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation for version 2. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * ============================================================================ + */ + +div#main { + margin-bottom: 25px; +} + +.rc-ad-view-main { + width: 100%; + /* height: calc(100vh - 158px); */ + box-sizing: border-box; + padding: 63px 125px; + border: 1px solid var(--border-color-4); + border-radius: 25px; + background-color: var(--secondary-color); + background-image: url(../../images/ehorus/ad/background.svg); + background-repeat: no-repeat; + background-size: contain; + background-position-x: center; +} + +.rc-ad-view-first-row { + width: 100%; + height: 255px; + display: flex; + flex-direction: row; + flex-wrap: nowrap; + justify-content: space-between; + align-items: center; + gap: 60px; +} + +.rc-ad-view-first-row > div { + width: 450px; + height: 100%; + color: var(--text-color-2); + font-family: "lato-bold"; + font-size: 40px; + line-height: 48px; + display: flex; + flex-direction: column; + flex-wrap: nowrap; + justify-content: space-between; +} + +.rc-ad-view-first-row > div * { + background-color: var(--pandora-rc-color); + width: 221px; + height: 42px; + border: 0; + border-radius: 8px; + font-family: "lato-bold"; + font-size: 15px; + line-height: 20px; + text-align: center; + cursor: pointer; +} + +.rc-ad-view-first-row > div button:hover { + opacity: 0.9; +} + +.rc-ad-view-first-row > img { + width: calc(100% - 480px); + max-height: 255px; +} + +.rc-ad-view-main > p { + margin-top: 60px; + color: var(--text-color-3); + font-size: 18px; + line-height: 22px; +} + +.rc-ad-view-second-row { + display: flex; + flex-direction: row; + flex-wrap: nowrap; + align-items: flex-start; + gap: 20px; +} + +.rc-ad-view-second-row > div { + display: flex; + flex-direction: column; + flex-wrap: nowrap; + align-items: center; + border: 1px solid var(--border-color-4); + border-radius: 10px; + padding: 20px; + width: calc((100% - 100px) / 5); +} + +.rc-ad-view-second-row > div > img { + max-width: 100%; +} + +.rc-ad-view-second-row > div > span { + margin-top: 20px; + color: var(--text-color-2); + font-family: "lato-bold"; + font-size: 20px; + line-height: 24px; + text-align: center; +} diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index a7d2c2be13..5e2dbb6755 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -31,6 +31,7 @@ --primary-color: #14524f; --primary-color-hover: #318280; --secondary-color: #ffffff; + --pandora-rc-color: #34cc9d; --text-color: #333; --text-color-2: #161628; diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index f02ae5283b..4e8b65a988 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -2154,3 +2154,14 @@ select option:checked { .content-widget .flot-base { background-color: unset; } + +div.rc-ad-view-main { + background-image: url(../../images/ehorus/ad/background-dark.svg); + background-size: cover; + border: 0; +} + +div.rc-ad-view-second-row > div { + border: 0; + background-color: #525282; +} diff --git a/pandora_console/operation/agentes/ehorus.php b/pandora_console/operation/agentes/ehorus.php index e19cac6e58..5973c8b5a3 100644 --- a/pandora_console/operation/agentes/ehorus.php +++ b/pandora_console/operation/agentes/ehorus.php @@ -16,7 +16,10 @@ // Load global vars global $config; +ui_require_css_file('pandora-rc', 'include/styles/'); + if (!$config['ehorus_enabled']) { + echo rc_ad_view(); return; } @@ -214,6 +217,58 @@ $query_data = [ $query = http_build_query($query_data); $client_url = $config['homeurl'].'operation/agentes/ehorus_client.php?'.$query; + +function rc_ad_view() +{ + $title = __('Forget about distances').':'; + $title2 = __('operate up to 5 devices for free, as if they were at your side!'); + $onclick = 'onclick="window.location.href=\'index.php?sec=gsetup&sec2=godmode/setup/setup§ion=pandorarc\'"'; + + $output = ' +
+
+
+ '.$title.'
'.$title2.' + +
+ '.html_print_image('images/ehorus/ad/sample.svg', true).' +
+ +

'.__('Pandora RC is not currently enabled, here’s what your missing out').':

+ +
+
+ '.html_print_image('images/ehorus/ad/desktop.svg', true).' + '.__('Remote access to the server’s Desktop').'. +
+ +
+ '.html_print_image('images/ehorus/ad/cli.svg', true).' + '.__('Run commands directly with native CLI').'. +
+ +
+ '.html_print_image('images/ehorus/ad/files.svg', true).' + '.__('Upload and manage your files').'. +
+ +
+ '.html_print_image('images/ehorus/ad/multiplatform.svg', true).' + '.__('Compatible with all major OS platforms').'. +
+ +
+ '.html_print_image('images/ehorus/ad/process-services.svg', true).' + '.__('Manage all your processes and services').'. +
+
+
+ '; + + return $output; +} + + ?>