2012-06-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: added lost lines for the text sizes into the function "config_process_config". * include/config_process.php: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6724 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b3a6e0b669
commit
3c238903e9
|
@ -1,3 +1,10 @@
|
||||||
|
2012-06-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_config.php: added lost lines for the text sizes
|
||||||
|
into the function "config_process_config".
|
||||||
|
|
||||||
|
* include/config_process.php: cleaned source code style.
|
||||||
|
|
||||||
2012-06-28 Miguel de Dios <miguel.dedios@artica.es>
|
2012-06-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions.php: fixed into the function "copy_dir" when
|
* include/functions.php: fixed into the function "copy_dir" when
|
||||||
|
|
|
@ -126,7 +126,7 @@ else {
|
||||||
$config["global_block_size"] = $config["block_size"];
|
$config["global_block_size"] = $config["block_size"];
|
||||||
$config["global_flash_charts"] = $config["flash_charts"];
|
$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']);
|
||||||
|
|
||||||
// Refresh the last_connect info in the user table
|
// Refresh the last_connect info in the user table
|
||||||
|
@ -144,7 +144,7 @@ if (isset ($config['id_user'])){
|
||||||
|
|
||||||
// Each user could have it's own timezone)
|
// Each user could have it's own timezone)
|
||||||
if (isset($userinfo["timezone"])) {
|
if (isset($userinfo["timezone"])) {
|
||||||
if ($userinfo["timezone"] != ""){
|
if ($userinfo["timezone"] != "") {
|
||||||
date_default_timezone_set($userinfo["timezone"]);
|
date_default_timezone_set($userinfo["timezone"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -673,11 +673,35 @@ function config_process_config () {
|
||||||
config_update_value ('refr', '');
|
config_update_value ('refr', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($config['agent_size_text_small'])) {
|
||||||
|
config_update_value ('agent_size_text_small', 18);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($config['agent_size_text_medium'])) {
|
||||||
|
config_update_value ('agent_size_text_medium', 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($config['module_size_text_small'])) {
|
||||||
|
config_update_value ('module_size_text_small', 25);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($config['module_size_text_medium'])) {
|
||||||
|
config_update_value ('module_size_text_medium', 50);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($config['description_size_text'])) {
|
||||||
|
config_update_value ('description_size_text', 60);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($config['item_title_size_text'])) {
|
||||||
|
config_update_value ('item_title_size_text', 45);
|
||||||
|
}
|
||||||
|
|
||||||
/* Finally, check if any value was overwritten in a form */
|
/* Finally, check if any value was overwritten in a form */
|
||||||
config_update_config();
|
config_update_config();
|
||||||
}
|
}
|
||||||
|
|
||||||
function config_check (){
|
function config_check () {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// At this first version I'm passing errors using session variables, because the error management
|
// At this first version I'm passing errors using session variables, because the error management
|
||||||
|
|
Loading…
Reference in New Issue