';
echo '
';
if (defined ('METACONSOLE')) {
- html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
- }
+ if (!isset ($config["custom_logo"])){
+ html_print_image ("images/custom_logo_login/login_logo.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ }
+ else{
+ html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ }
+ }
else if (defined ('PANDORA_ENTERPRISE')) {
+ if (!isset ($config["custom_logo"])){
+ html_print_image ("images/custom_logo_login/login_logo.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ }
+ else{
html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ }
}
else {
+ if (!isset ($config["custom_logo"])){
+ html_print_image ("images/custom_logo_login/login_logo.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ }
+ else{
html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ }
echo "
Community edition";
}
echo '';
diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php
index 3d2c848f8f..58348fc641 100755
--- a/pandora_console/godmode/setup/setup_visuals.php
+++ b/pandora_console/godmode/setup/setup_visuals.php
@@ -183,17 +183,11 @@ $row++;
$table_styles->data[$row][0] = __('Custom logo in login') . ui_print_help_icon("custom_logo_login", true);
-if(enterprise_installed()){
-$table_styles->data[$row][1] = html_print_select(
- list_files('enterprise/images/custom_logo_login', "png", 1, 0), 'custom_logo_login',
- $config["custom_logo_login"], '', '', '',true,false,true,'',$open,'width:240px');
-}
-else{
+
$table_styles->data[$row][1] = html_print_select(
list_files('images/custom_logo_login', "png", 1, 0), 'custom_logo_login',
$config["custom_logo_login"], '', '', '',true,false,true,'',$open,'width:240px');
-
-}
+
$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_login_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal');
$row++;
@@ -880,6 +874,46 @@ $("#button-custom_logo_preview").click (function (e) {
}
});
+$("#button-custom_logo_login_preview").click (function (e) {
+ var icon_name = $("select#custom_logo_login option:selected").val();
+ var icon_path = "/images/custom_logo_login/" + icon_name;
+
+ if (icon_name == "")
+ return;
+
+ $dialog = $("
");
+ $image = $("
");
+ $image
+ .css('max-width', '500px')
+ .css('max-height', '500px');
+
+ try {
+ $dialog
+ .hide()
+ .html($image)
+ .dialog({
+ title: "",
+ resizable: true,
+ draggable: true,
+ modal: true,
+ overlay: {
+ opacity: 0.5,
+ background: "black"
+ },
+ minHeight: 1,
+ width: $image.width,
+ close: function () {
+ $dialog
+ .empty()
+ .remove();
+ }
+ }).show();
+ }
+ catch (err) {
+ // console.log(err);
+ }
+});
+
$("#button-login_background_preview").click (function (e) {
var icon_name = $("select#login_background option:selected").val();
var icon_path = "/images/backgrounds/" + icon_name;
diff --git a/pandora_console/images/custom_logo_login/pandora_logo_head.png b/pandora_console/images/custom_logo_login/pandora_logo_head.png
index 2f5b60fb370cfe8434580d87f01afa37e3046544..5bce825279eb091125976f6f559222afb50e4407 100644
GIT binary patch
delta 3607
zcmV+y4(Rc>9lRWnNPi99Nkl
^g-qJL-jcTaRZW>0WdZbl3fBIqIs7-T!4|05v1t>klp|lasXllAYTwxF0DlC~@I#Eqaa8Me5taxT
zk>V%;s^kMS5%dGu1yHdCKn#kb1;9k~5lDj)!+xk7i2VVWKmySt7n}&X_F99JDY_go
z8wk!r=?0h_TC)BR#RgbY9de4plDZrSr7l=1MN%t(E5$X?DvkgGX!s^Nv=F=xDru0#
zfQg53D0qkkTYuW)VBuvbbvgnrUIjR%7;bAzAN$Xmj~!1~>IG259sCJ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$M_nT|%zIxS{@L;F5@|UyiG6!_>JBzX_Zgj8zdTR9|P;jAh$JFqcez#W8Le8>H
zoe04qy8an7eqN8>cBC%)R^D6w>bUHNv})^vsGp|>H&NvpKS|CttfC6)E2JS)PFPg^
zq^t~|;}N9zc4DG?r5DGQ9=Hen`C(LApa#>
zj$C4$@T>Tuxm2m~{8P_eieCn~f;O_rrsJ9=ei=G`uy|HOt)=8)ycQ^N(LD2KDSj|f
zOMYPjQInE^;)UGVKX?vYWr%M))~q-;aw1k2JNNM3?$RBWnalPCC4*omGsQEx1?lE!
zpAC^67h?fN`HSv*@@~QYQ0^Q3T2vR!u`XS
zjb{UO;4DU}#o8QBcy
zdMu!P#?thFW`h+O=lZ%X%3=yR2Huoh<Q_!D;x
zh`tr=HDFK2k||LcQxCr@js3>HJ>64-S2||>q7C4E$L;MHsPdNXn;!yD%3
z3`dSm-iSZhHCh%aKf(=mki01R;k@qgQ0d#(ZZ}K5I(iyA3dxVDbK9AgkD0vkg}!WX
zV_!g$f?-|qp*zfXHgUrOHQ9#ld!TKVSxM)f28TMH
zJENjQUXJ45<8KQrLtY${TtR$c?v@A7CS}OY8m_6$^>m~q+c~`hyUtit
zUq~Q!Gmp&<(Da_zlfN}yu8MVk(06{DVM2$^hiXy?v}W8(uTt2Qpc(Exf*A
z3)1`=TD7U~4tBmH1#VHgnbmb!n%2ilF19k!oKAobZg-#bcbd7fwi=<;6Sl5RaHIae
k4~Sw<82r7OEcg2Qc3$Z@bA?O@bn92r!^H=8-6<^n-{OaHU;qFB
diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php
index 73be42986e..a52e81d127 100644
--- a/pandora_console/include/functions_config.php
+++ b/pandora_console/include/functions_config.php
@@ -1027,8 +1027,13 @@ function config_process_config () {
if (!isset ($config["custom_logo"])) {
+ if(enterprise_installed()){
+ config_update_value ('custom_logo', 'pandora_logo_head.png');
+ }
+ else{
config_update_value ('custom_logo', 'pandora_logo_head_3.png');
}
+ }
if (!isset ($config["custom_logo_login"])) {
config_update_value ('custom_logo_login', 'login_logo.png');
}
diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php
index bd57cc32c1..c8f5a41eb0 100644
--- a/pandora_console/include/functions_graph.php
+++ b/pandora_console/include/functions_graph.php
@@ -863,10 +863,11 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
if ($only_image) {
$flash_chart = false;
}
-
- $water_mark = array('file' =>
- $config['homedir'] . "/images/logo_vertical_water.png",
- 'url' => ui_get_full_url("images/logo_vertical_water.png", false, false, false));
+ if($config["fixed_graph"] == false){
+ $water_mark = array('file' =>
+ $config['homedir'] . "/images/.png",
+ 'url' => ui_get_full_url("images/logo_vertical_water.png", false, false, false));
+ }
if ($config['type_module_charts'] === 'area') {
if ($compare === 'separated') {
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index edda27d5b0..6df6262f49 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -240,10 +240,11 @@ div#page {
}
div#main {
width: auto;
- margin: 0px 2% 0px 0%;
- float: right;
+ margin: 0px 0% 0px 0%;
+ float: left;
position: relative;
min-height: 850px;
+ margin-left:60px;
}
div#main_help {
width: 100%;