2011-08-11 Sergio Martin <sergio.martin@artica.es>
* include/config_process.php godmode/setup/setup_visuals.php: Fixed flash charts setup editor and user editor and set priority between both git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4722 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d7fa157d07
commit
0112e05e3f
|
@ -1,3 +1,9 @@
|
||||||
|
2011-08-11 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/config_process.php
|
||||||
|
godmode/setup/setup_visuals.php: Fixed flash charts setup editor
|
||||||
|
and user editor and set priority between both
|
||||||
|
|
||||||
2011-08-11 Sergio Martin <sergio.martin@artica.es>
|
2011-08-11 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_graph.php
|
* include/functions_graph.php
|
||||||
|
|
|
@ -86,8 +86,8 @@ $table->data[11][0] = __('Font size');
|
||||||
$table->data[11][1] = html_print_select(range(1, 15), 'font_size', $config["font_size"], '', '', 0, true);
|
$table->data[11][1] = html_print_select(range(1, 15), 'font_size', $config["font_size"], '', '', 0, true);
|
||||||
|
|
||||||
$table->data[12][0] = __('Flash charts');
|
$table->data[12][0] = __('Flash charts');
|
||||||
$table->data[12][1] = __('Yes').' '.html_print_radio_button ('flash_charts', 1, '', $config["flash_charts"], true).' ';
|
$table->data[12][1] = __('Yes').' '.html_print_radio_button ('flash_charts', 1, '', $config["global_flash_charts"], true).' ';
|
||||||
$table->data[12][1] .= __('No').' '.html_print_radio_button ('flash_charts', 0, '', $config["flash_charts"], true);
|
$table->data[12][1] .= __('No').' '.html_print_radio_button ('flash_charts', 0, '', $config["global_flash_charts"], true);
|
||||||
|
|
||||||
if (!defined ('PANDORA_ENTERPRISE')){
|
if (!defined ('PANDORA_ENTERPRISE')){
|
||||||
$table->data[13][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true);
|
$table->data[13][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true);
|
||||||
|
|
|
@ -95,8 +95,9 @@ if ((!isset($config["timezone"])) OR ($config["timezone"] == "")){
|
||||||
|
|
||||||
date_default_timezone_set($config["timezone"]);
|
date_default_timezone_set($config["timezone"]);
|
||||||
|
|
||||||
// Save the global block size
|
// Save the global values
|
||||||
$config["global_block_size"] = $config["block_size"];
|
$config["global_block_size"] = $config["block_size"];
|
||||||
|
$config["global_flash_charts"] = $config["flash_charts"];
|
||||||
|
|
||||||
if (isset ($config['id_user'])){
|
if (isset ($config['id_user'])){
|
||||||
$userinfo = get_user_info ($config['id_user']);
|
$userinfo = get_user_info ($config['id_user']);
|
||||||
|
@ -104,8 +105,10 @@ if (isset ($config['id_user'])){
|
||||||
// If block_size or flash_chart are provided then override global settings
|
// If block_size or flash_chart are provided then override global settings
|
||||||
if (!empty($userinfo["block_size"]) && ($userinfo["block_size"] != 0))
|
if (!empty($userinfo["block_size"]) && ($userinfo["block_size"] != 0))
|
||||||
$config["block_size"] = $userinfo["block_size"];
|
$config["block_size"] = $userinfo["block_size"];
|
||||||
|
|
||||||
if ($userinfo["flash_chart"] != -1)
|
if ($userinfo["flash_chart"] != -1)
|
||||||
$config["flash_charts"] = $userinfo["flash_chart"];
|
$config["flash_charts"] = $userinfo["flash_chart"];
|
||||||
|
html_debug_print($config["flash_charts"]);
|
||||||
|
|
||||||
// Each user could have it's own timezone)
|
// Each user could have it's own timezone)
|
||||||
if (isset($userinfo["timezone"])) {
|
if (isset($userinfo["timezone"])) {
|
||||||
|
|
Loading…
Reference in New Issue