$value) { if (is_array($config_default_general[$key])) { foreach ($config_default_general[$key] as $key2 => $value2) { if (is_array($config_default_general[$key][$key2])) { foreach ($config_default_general[$key][$key2] as $key3 => $value3) { if (isset($conf_media_icon_general[$key][$key2][$key3])) $config_general[$key][$key2][$key3] = $conf_media_icon_general[$key][$key2][$key3]; else $config_general[$key][$key2][$key3] = $config_default_general[$key][$key2][$key3]; } } else { if (isset($conf_media_icon_general[$key][$key2])) $config_general[$key][$key2] = $conf_media_icon_general[$key][$key2]; else $config_general[$key][$key2] = $config_default_general[$key][$key2]; } } } else { if (isset($conf_media_icon_general[$key][$key2])) $config_general[$key] = $conf_media_icon_general[$key]; else $config_general[$key] = $config_default_general[$key]; } } media_icon_delete_conf("media_icon_general"); media_icon_install_general($config_general); } else { media_icon_install_general($config_default_general); } if (isset($conf_media_icon_advanced)) { foreach ($config_default_advanced as $key => $value) { if (isset($conf_media_icon_advanced[$key][$key2])) $config_advanced[$key] = $conf_media_icon_advanced[$key]; else $config_advanced[$key] = $config_default_advanced[$key]; } media_icon_delete_conf("media_icon_advanced"); media_icon_install_advanced($config_advanced); } else { media_icon_install_advanced($config_default_advanced); } } function media_icon_delete_conf($where) { $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE (param="'.$where.'");'; pwg_query($query); } ?>