Plugin GLPI — temas e branding da tela de login (Butterfly)
- $_GET['theme'] sanitizado no display_login com a mesma regex do picture.send.php; getThemeInfo() ganhou defesa em profundidade (rejeita qualquer valor que não seja nome simples de diretório). - mkdir 0755 (era 0777) no storage de imagens. - IMAGETYPE_BMP usava imagecreatefromwbmp (WBMP != BMP); agora imagecreatefrombmp. - public/themes/ removido: era cópia divergente e corrompida (CSS mutilado por find/replace) da fonte real themes/ — o código só lê themes/ da raiz e serve via picture.send.php. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| css | ||
| front | ||
| inc | ||
| locales | ||
| pics | ||
| themes | ||
| .gitignore | ||
| composer.json | ||
| hook.php | ||
| LICENSE.md | ||
| logo.png | ||
| plugin.png | ||
| README.md | ||
| RoboFile.php | ||
| setup.php | ||
Butterfly for GLPI >= 10.0 (Compatible with GLPI 11.x)
Allow customization of logos, background and custom CSSs
Installation
- Uncompress the archive to the
<GLPI_ROOT>/plugins/butterflydirectory - Navigate to the Configuration > Plugins page,
- Install and activate the plugin.