diff --git a/front/internal.css.php b/front/internal.css.php index 00f1121..e7c7224 100644 --- a/front/internal.css.php +++ b/front/internal.css.php @@ -1,10 +1,7 @@ var $icon = $('link[rel*=icon]'); $icon.attr('type', null); - $icon.attr('href', ); + $icon.attr('href', ); var $title = $('title'); - var newTitle = $title.text().replace('GLPI', ); + var newTitle = $title.text().replace('GLPI', ); $title.text(newTitle); - $('div[id^=about_modal_] .copyright').parent().parent().html(); + $('div[id^=about_modal_] .copyright').parent().parent().html(); ); + $loginInputs.attr('placeholder', ); } var $passwordInputs = $('input[type=password], input[name=password]'); if ($passwordInputs.length) { - $passwordInputs.attr('placeholder', ); + $passwordInputs.attr('placeholder', ); $passwordInputs.each(function() { var $input = $(this); var $description = $input.siblings('.form-label-description').first(); @@ -71,14 +71,14 @@ function plugin_butterfly_display_login() { ?> var $icon = $('link[rel*=icon]'); $icon.attr('type', null); - $icon.attr('href', ); + $icon.attr('href', ); var $title = $('title'); - var newTitle = $title.text().replace('GLPI', ); + var newTitle = $title.text().replace('GLPI', ); $title.text(newTitle); var $footerTarget = $('#footer-login, .login-footer').first(); if ($footerTarget.length) { - $footerTarget.html(); + $footerTarget.html(); } else { - $('a.copyright').parent().html(); + $('a.copyright').parent().html(); } - var pictureUrl = ; - var maxWidth = ; - var maxHeight = ; + var pictureUrl = ; + var maxWidth = ; + var maxHeight = ; $('.page-anonymous .glpi-logo').css({ 'background-image': 'url(' + pictureUrl + ')', diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..faeb566 Binary files /dev/null and b/logo.png differ diff --git a/setup.php b/setup.php index ae7b207..de931ea 100644 --- a/setup.php +++ b/setup.php @@ -29,11 +29,6 @@ function plugin_init_butterfly() '#^/front/picture\.send\.php$#', \Glpi\Http\Firewall::STRATEGY_NO_CHECK ); - \Glpi\Http\Firewall::addPluginStrategyForLegacyScripts( - 'butterfly', - '#^/front/login\.css\.php$#', - \Glpi\Http\Firewall::STRATEGY_NO_CHECK - ); \Glpi\Http\Firewall::addPluginStrategyForLegacyScripts( 'butterfly', '#^/front/internal\.css\.php$#',