2014-03-27 Alejandro Gallardo <alejandro.gallardo@artica.es>
* 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
|
@ -1,3 +1,33 @@
|
||||||
|
2014-03-27 Alejandro Gallardo <alejandro.gallardo@artica.es>
|
||||||
|
|
||||||
|
* 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 <vanessa.gil@artica.es>
|
2014-03-27 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
* images/help/custom_oid2.png: Changed image.
|
* images/help/custom_oid2.png: Changed image.
|
||||||
|
|
|
@ -54,7 +54,12 @@ if (!empty ($page) && !empty ($sec)) {
|
||||||
$url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value);
|
$url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<div id="login_body"></div>';
|
// 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 '<div id="login_body" ' . $login_body_style . '></div>';
|
||||||
echo '<div id="login_outer">';
|
echo '<div id="login_outer">';
|
||||||
echo '<div class="databox_login" id="login">';
|
echo '<div class="databox_login" id="login">';
|
||||||
echo '<div id="login_inner">';
|
echo '<div id="login_inner">';
|
||||||
|
|
|
@ -211,6 +211,17 @@ $table->data[$row][1] = html_print_select (list_files ('images/custom_logo', "pn
|
||||||
|
|
||||||
$row++;
|
$row++;
|
||||||
|
|
||||||
|
$table->data[$row][0] = __('Login background') . ui_print_help_tip(__('You can place your custom images into the folder images/backgrounds/'), true);
|
||||||
|
$backgrounds_list_jpg = list_files("images/backgrounds", "jpg", 1, 0);
|
||||||
|
$backgrounds_list_gif = list_files("images/backgrounds", "gif", 1, 0);
|
||||||
|
$backgrounds_list_png = list_files("images/backgrounds", "png", 1, 0);
|
||||||
|
$backgrounds_list = array_merge($backgrounds_list_jpg, $backgrounds_list_png);
|
||||||
|
$backgrounds_list = array_merge($backgrounds_list, $backgrounds_list_gif);
|
||||||
|
asort($backgrounds_list);
|
||||||
|
$table->data[$row][1] = html_print_select ($backgrounds_list, 'login_background', $config["login_background"], '', __('Default'), '', true);
|
||||||
|
|
||||||
|
$row++;
|
||||||
|
|
||||||
$values = array ();
|
$values = array ();
|
||||||
$values[5] = human_time_description_raw (5);
|
$values[5] = human_time_description_raw (5);
|
||||||
$values[30] = human_time_description_raw (30);
|
$values[30] = human_time_description_raw (30);
|
||||||
|
|
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 971 B |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 872 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 472 KiB |
After Width: | Height: | Size: 352 KiB |
After Width: | Height: | Size: 2.2 MiB |
|
@ -402,6 +402,8 @@ function config_update_config () {
|
||||||
$error_update[] = __('Interactive charts');
|
$error_update[] = __('Interactive charts');
|
||||||
if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo')))
|
if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo')))
|
||||||
$error_update[] = __('Custom logo');
|
$error_update[] = __('Custom logo');
|
||||||
|
if (!config_update_value ('login_background', (string) get_parameter ('login_background')))
|
||||||
|
$error_update[] = __('Login background');
|
||||||
if (!config_update_value ('vc_refr', get_parameter('vc_refr')))
|
if (!config_update_value ('vc_refr', get_parameter('vc_refr')))
|
||||||
$error_update[] = __('Default interval for refresh on Visual Console');
|
$error_update[] = __('Default interval for refresh on Visual Console');
|
||||||
if (!config_update_value ('agent_size_text_small', get_parameter('agent_size_text_small')))
|
if (!config_update_value ('agent_size_text_small', get_parameter('agent_size_text_small')))
|
||||||
|
|