From 7c6ca10b1b78c8e570dcd37586193ed537648caa Mon Sep 17 00:00:00 2001 From: alexhigh Date: Thu, 27 Mar 2014 11:49:00 +0000 Subject: [PATCH] 2014-03-27 Alejandro Gallardo * include/functions_config.php, godmode/setup/setup_visuals.php, general/login_page.php: Now is possible to select a custom login background in the setup visuals section. * images/backgrounds/default_4.0-stripes.gif, images/backgrounds/default_4.0.jpg, images/backgrounds/default_5.0.png, images/backgrounds/flowers.jpg, images/backgrounds/grass.jpg, images/backgrounds/tiles.jpg, images/backgrounds/wall.jpg, images/backgrounds/wood.jpg: Added new images to use it as custom login backgrounds. * images/backgrounds/background1.jpg, images/backgrounds/background2.jpg, images/backgrounds/background3.jpg, images/backgrounds/background4.jpg, images/backgrounds/background5.jpg, images/backgrounds/background6.jpg, images/backgrounds/background7.jpg, images/backgrounds/background8.jpg, images/backgrounds/background9.jpg, images/backgrounds/background10.jpg, images/backgrounds/background_red.jpg: Delete some VERY old images. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9655 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 30 ++++++++++++++++++ pandora_console/general/login_page.php | 7 +++- .../godmode/setup/setup_visuals.php | 11 +++++++ .../images/backgrounds/background1.jpg | Bin 11580 -> 0 bytes .../images/backgrounds/background10.jpg | Bin 22502 -> 0 bytes .../images/backgrounds/background2.jpg | Bin 12242 -> 0 bytes .../images/backgrounds/background3.jpg | Bin 10778 -> 0 bytes .../images/backgrounds/background4.jpg | Bin 4672 -> 0 bytes .../images/backgrounds/background5.jpg | Bin 6566 -> 0 bytes .../images/backgrounds/background6.jpg | Bin 16251 -> 0 bytes .../images/backgrounds/background7.jpg | Bin 10823 -> 0 bytes .../images/backgrounds/background8.jpg | Bin 25699 -> 0 bytes .../images/backgrounds/background9.jpg | Bin 25989 -> 0 bytes .../images/backgrounds/background_red.png | Bin 971 -> 0 bytes .../backgrounds/default_4.0-stripes.gif | Bin 0 -> 1865 bytes .../images/backgrounds/default_4.0.jpg | Bin 0 -> 101165 bytes .../images/backgrounds/default_5.0.png | Bin 0 -> 4670 bytes .../images/backgrounds/flowers.jpg | Bin 0 -> 892783 bytes pandora_console/images/backgrounds/grass.jpg | Bin 0 -> 1599883 bytes pandora_console/images/backgrounds/tiles.jpg | Bin 0 -> 483053 bytes pandora_console/images/backgrounds/wall.jpg | Bin 0 -> 360305 bytes pandora_console/images/backgrounds/wood.jpg | Bin 0 -> 2255233 bytes pandora_console/include/functions_config.php | 2 ++ 23 files changed, 49 insertions(+), 1 deletion(-) delete mode 100644 pandora_console/images/backgrounds/background1.jpg delete mode 100644 pandora_console/images/backgrounds/background10.jpg delete mode 100644 pandora_console/images/backgrounds/background2.jpg delete mode 100644 pandora_console/images/backgrounds/background3.jpg delete mode 100644 pandora_console/images/backgrounds/background4.jpg delete mode 100644 pandora_console/images/backgrounds/background5.jpg delete mode 100644 pandora_console/images/backgrounds/background6.jpg delete mode 100644 pandora_console/images/backgrounds/background7.jpg delete mode 100644 pandora_console/images/backgrounds/background8.jpg delete mode 100644 pandora_console/images/backgrounds/background9.jpg delete mode 100644 pandora_console/images/backgrounds/background_red.png create mode 100644 pandora_console/images/backgrounds/default_4.0-stripes.gif create mode 100644 pandora_console/images/backgrounds/default_4.0.jpg create mode 100644 pandora_console/images/backgrounds/default_5.0.png create mode 100644 pandora_console/images/backgrounds/flowers.jpg create mode 100644 pandora_console/images/backgrounds/grass.jpg create mode 100644 pandora_console/images/backgrounds/tiles.jpg create mode 100644 pandora_console/images/backgrounds/wall.jpg create mode 100644 pandora_console/images/backgrounds/wood.jpg diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3eda0451e2..700c4ead18 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,33 @@ +2014-03-27 Alejandro Gallardo + + * include/functions_config.php, + godmode/setup/setup_visuals.php, + general/login_page.php: Now is possible to select a + custom login background in the setup visuals section. + + * images/backgrounds/default_4.0-stripes.gif, + images/backgrounds/default_4.0.jpg, + images/backgrounds/default_5.0.png, + images/backgrounds/flowers.jpg, + images/backgrounds/grass.jpg, + images/backgrounds/tiles.jpg, + images/backgrounds/wall.jpg, + images/backgrounds/wood.jpg: Added new images to use + it as custom login backgrounds. + + * images/backgrounds/background1.jpg, + images/backgrounds/background2.jpg, + images/backgrounds/background3.jpg, + images/backgrounds/background4.jpg, + images/backgrounds/background5.jpg, + images/backgrounds/background6.jpg, + images/backgrounds/background7.jpg, + images/backgrounds/background8.jpg, + images/backgrounds/background9.jpg, + images/backgrounds/background10.jpg, + images/backgrounds/background_red.jpg: Delete some + VERY old images. + 2014-03-27 Vanessa Gil * images/help/custom_oid2.png: Changed image. diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 2bbd7c020b..b795810ee5 100644 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -54,7 +54,12 @@ if (!empty ($page) && !empty ($sec)) { $url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value); } } -echo '
'; +// Overrides the default background with the defined by the user +if (!empty($config['login_background'])) { + $background_url = ui_get_full_url("images/backgrounds/") . $config['login_background']; + $login_body_style = "style=\"background-image: url('$background_url');\""; +} +echo '
'; echo '
'; echo '