/*
 * Default parameters
 */

$wv_conf['key']['def']['lang'] = 'es'; //Optional default language iso code [es]
$wv_conf['key']['def']['default_time_zone'] = 'Europe/Madrid'; //Optional default Timezone [Europe/Madrid]
$wv_conf['key']['def']['accman_host'] = ''; //Host to link Access manager to recover lost password
$wv_conf['key']['def']['email_return'] = ''; // Email used as return receipt and email validation
$wv_conf['key']['def']['email_notify'] = ''; //Email used to send notifications
$wv_conf['key']['def']['utf8_disable'] = 0; //Set to true to disable UTF8 Content-Type header and MySQL UTF-8 tables.
$wv_conf['key']['def']['force_ISO-8859-1'] = 0; //Set to true to force the ISO-8859-1 charset header. utf8_disable must be true.
$wv_conf['key']['def']['panel_disable'] = 0; //Set to true to disable MAWI control panel
$wv_conf['key']['def']['panel_menu_disable'] = 0; //Set to true to disable MAWI control panel default menu
$wv_conf['key']['def']['global_get'] = 1; //Capture and filter all GET vars
$wv_conf['key']['def']['global_post'] = 1; //Capture and filter all POST vars
$wv_conf['key']['def']['browser_allow_frame'] = 0; //ANY = Allow frames. SAMEORIGIN = Allow frames for the same domain. Any other value = DENY frames.
$wv_conf['key']['def']['browser_cache_offset'] = 0; //Browser cache-control header in minutes (0 = no-cache)
$wv_conf['key']['def']['browser_default_time'] = 1; //Browser default GMT time zone offset for headers
$wv_conf['key']['def']['use_def_lang'] = 0; //true to get text from default language if text for current language is empty
$wv_conf['key']['def']['release'] = $__r; //Default version release

/*
 * Cache files
 * NOTE: Never use file cache on restricted access pages or forms!
 * Cache file caches everything, take care to configure non cacheable
 * pages, WebSites and pages groups
 */

$wv_conf['cache']['enable'] = 0; //Enable file cache (true|false)
$wv_conf['cache']['dir'] = '_cache'; //Default is '_cache' and must by 777 permissions
$wv_conf['cache']['expire'] = 86400; //Cache files expire time in seconds

//Cookies used to modify how the pages are showed to users
//This cookies force a new file cache for every page
$wv_conf['cache']['cacheable_cookies'] = array();

//IDs of non cacheable pages. Ids from 1 to 5 are not cacheables
$wv_conf['cache']['non_cacheable_ids'] = array();

//URI queries that disable page cache. 
//This values are used to change page aspect in some way 
$wv_conf['cache']['non_cacheable_queries'] = array();

//Cache will be disabled to pages belonging to the WebSite ID on this array
$wv_conf['cache']['non_cacheable_ws'] = array(); 

//Cache will be disabled to pages belonging to the group ID on this array
$wv_conf['cache']['non_cacheable_groups'] = array();

/*
 * Databases names used by framework
 */

//Page and file management
$wv_conf['dbn']['db_files'] = 'wv_files'; //Main web pages and associated files
$wv_conf['dbn']['db_files_fqdn'] = 'wv_files_fqdn'; //Domain names managed by MAWI
$wv_conf['dbn']['db_files_groups_names'] = 'wv_files_groups_names'; //Categories of files
$wv_conf['dbn']['db_files_groups_to_files'] = ' wv_files_groups_to_files'; //Files to groups relationship
$wv_conf['dbn']['db_files_path'] = 'wv_files_path'; //Path directories of code pages
$wv_conf['dbn']['db_files_template'] = 'wv_files_template'; //Templates to create new empty file
$wv_conf['dbn']['db_files_texts'] = 'wv_files_texts'; //Tittles and META text of every page
$wv_conf['dbn']['db_files_virtual'] = 'wv_files_virtual'; //Virtual URLs
$wv_conf['dbn']['db_files_ws'] = 'wv_files_ws'; //Squeleton and home page of every website 

//Text
$wv_conf['dbn']['db_text_blocks'] = 'wv_text_blocks'; //DB con los bloques de texto para contenidos
$wv_conf['dbn']['db_text_files'] = 'wv_text_files'; //DB con todos los id de páginas de cada texto
$wv_conf['dbn']['db_text_groups'] = 'wv_text_groups';
$wv_conf['dbn']['db_text_groups_to_key'] = 'wv_text_groups_to_key';
$wv_conf['dbn']['db_text_keywords'] = 'wv_text_keywords'; //DB con todos las claves de los textos
$wv_conf['dbn']['db_text_texts'] = 'wv_text_texts'; //DB con los textos de cada idioma para cada clave

//user management
$wv_conf['dbn']['db_users'] = 'wv_users'; //DB de usuarios
$wv_conf['dbn']['db_users_attr'] = 'wv_users_attrib'; //DB de atributos de usuarios
$wv_conf['dbn']['db_users_bruteforce'] = 'wv_users_bruteforce'; //DB para evitar ataques de fuerza bruta
$wv_conf['dbn']['db_users_ent'] = 'wv_users_entity'; //DB de entidades de usuarios
$wv_conf['dbn']['db_users_grp'] = 'wv_users_group'; //DB de grupos de usuario

//general configuration
$wv_conf['dbn']['db_conf'] = 'wv_conf'; //DB de configuración

//Regional configuration
$wv_conf['dbn']['db_ip2c'] = 'wv_ip2c'; //DB con rangos de IPs por países
$wv_conf['dbn']['db_country_codes'] = 'wv_country_codes'; //List of country ISO3166 and ISO4217 codes
$wv_conf['dbn']['db_country_names'] = 'wv_country_names'; //List of country names
$wv_conf['dbn']['db_currency'] = 'wv_currency'; //ISO 4217 number, code and name
$wv_conf['dbn']['db_lang'] = 'wv_lang'; //Lang iso to name in various languages
$wv_conf['dbn']['db_lang_family'] = 'wv_lang_family'; //ISO 639 to language family name and wikipedia links
$wv_conf['dbn']['db_lang_names'] = 'wv_lang_names'; //ISO 639 to language names and wikipedia links
$wv_conf['dbn']['db_rir_zones'] = 'wv_rir_zones'; //DB con listado de zonas RIR de cada país

//Sessions manager
$wv_conf['dbn']['db_sessions'] = 'wv_sessions'; //DB de sesiones
$wv_conf['dbn']['db_sessions_bots'] = 'wv_sessions_bots'; //Rangos de IPs de bots conocidos
$wv_conf['dbn']['db_sessions_cookies'] = 'wv_sessions_cookies'; //DB para registro de sesiones
$wv_conf['dbn']['db_sessions_knowips'] = 'wv_sessions_knowips'; //DB de IPs estáticas conocidas
$wv_conf['dbn']['db_sessions_tmp'] = 'wv_sessions_tmp'; //DB temporal para generar listados de sesiones
$wv_conf['dbn']['db_sessions_whois'] = 'wv_sessions_whois'; //DB de propietarios en el whois por rango de IPs
$wv_conf['dbn']['db_sessions_whois_tmp'] = 'wv_sessions_whois_tmp'; //DB temporal para calcular el whois en el cron

//Form management
$wv_conf['dbn']['db_form'] = 'wv_form'; //DB para formularios
$wv_conf['dbn']['db_form_hash'] = 'wv_form_hash'; //DB para el hash de formularios

//Logging
$wv_conf['dbn']['db_log_error'] = 'wv_log_error'; //DB Logging error 404 pages

//Banners
$wv_conf['dbn']['db_banner_banners'] = 'wv_banner_banners'; //
$wv_conf['dbn']['db_banner_zones'] = 'wv_banner_zones'; //
$wv_conf['dbn']['db_banner_advertisers'] = 'wv_banner_advertisers'; //
$wv_conf['dbn']['db_banner_advertiser2user'] = 'wv_banner_advertiser2user'; //
$wv_conf['dbn']['db_banner_campaings'] = 'wv_banner_campaings'; //
$wv_conf['dbn']['db_banner_banners_to_links'] = 'wv_banner_banners_to_links'; //

//Banners tracking
$wv_conf['dbn']['db_tracking_link'] = 'wv_tracking_link'; //
$wv_conf['dbn']['db_tracking_img'] = 'wv_tracking_img'; //
$wv_conf['dbn']['db_tracking_log_link'] = 'wv_tracking_log_link'; //
$wv_conf['dbn']['db_tracking_log_img'] = 'wv_tracking_log_img'; //
$wv_conf['dbn']['db_tracking_stat_link'] = 'wv_tracking_stat_link'; //
$wv_conf['dbn']['db_tracking_stat_img'] = 'wv_tracking_stat_img'; //

//Img tracking
$wv_conf['dbn']['db_tracking'] = 'wv_tracking'; //
$wv_conf['dbn']['db_tracking_log'] = 'wv_tracking_log'; //

//Contact manager
$wv_conf['dbn']['db_contact_attr'] = 'wv_contact_attr'; //
$wv_conf['dbn']['db_contact_attr_data'] = 'wv_contact_attr_data'; //
$wv_conf['dbn']['db_contact_auth'] = 'wv_contact_auth'; //
$wv_conf['dbn']['db_contact_country'] = 'wv_contact_country'; //
$wv_conf['dbn']['db_contact_data'] = 'wv_contact_data'; //
$wv_conf['dbn']['db_contact_field'] = 'wv_contact_field'; //
$wv_conf['dbn']['db_contact_form'] = 'wv_contact_form'; //
$wv_conf['dbn']['db_contact_form_field'] = 'wv_contact_form_field'; //
$wv_conf['dbn']['db_contact_form_grp'] = 'wv_contact_form_grp'; //
$wv_conf['dbn']['db_contact_owner_name'] = 'wv_contact_owner_name'; //
$wv_conf['dbn']['db_contact_region'] = 'wv_contact_region'; //
$wv_conf['dbn']['db_contact_rel'] = 'wv_contact_rel'; //
$wv_conf['dbn']['db_contact_rel_type'] = 'wv_contact_rel_type'; //
$wv_conf['dbn']['db_contact_table_names'] = 'wv_contact_table_names'; //
$wv_conf['dbn']['db_contact_text'] = 'wv_contact_text'; //
$wv_conf['dbn']['db_contact_usr2owner'] = 'wv_contact_usr2owner'; //

//EAV
$wv_conf['dbn']['db_eav_attr'] = 'wv_eav_attr'; //
$wv_conf['dbn']['db_eav_data'] = 'wv_eav_data'; //
$wv_conf['dbn']['db_eav_elements'] = 'wv_eav_elements'; //
$wv_conf['dbn']['db_eav_elements_groups'] = 'wv_eav_elements_groups'; //
$wv_conf['dbn']['db_eav_idx'] = 'wv_eav_idx'; //
$wv_conf['dbn']['db_eav_selectors'] = 'wv_eav_selectors'; //
$wv_conf['dbn']['db_eav_validator'] = 'wv_eav_validator'; //
$wv_conf['dbn']['db_eav_validator_attr'] = 'wv_eav_validator_attr'; //

//eCommerce
$wv_conf['dbn']['db_shop_cart'] = 'wv_shop_cart'; //

$wv_conf['dbn']['db_shop_invoice'] = 'wv_shop_invoice'; //
$wv_conf['dbn']['db_shop_invoice_lines'] = 'wv_shop_invoice_lines'; //

$wv_conf['dbn']['db_shop_order'] = 'wv_shop_order'; //
$wv_conf['dbn']['db_shop_order_lines'] = 'wv_shop_lines'; //

$wv_conf['dbn']['db_shop_product_attr'] = 'wv_shop_product_attr'; //
$wv_conf['dbn']['db_shop_product_data'] = 'wv_shop_product_data'; //
$wv_conf['dbn']['db_shop_product_form'] = 'wv_shop_product_form'; //
$wv_conf['dbn']['db_shop_product_idx'] = 'wv_shop_product_idx'; //
$wv_conf['dbn']['db_shop_product_selectors'] = 'wv_shop_product_selectors'; //
$wv_conf['dbn']['db_shop_product_validator'] = 'wv_shop_product_validator'; //
$wv_conf['dbn']['db_shop_product_validator_attr'] = 'wv_shop_product_validator_attr'; //

//Redsys payment
$wv_conf['dbn']['db_payment_lang'] = 'wv_payment_lang'; //ISO to Redsys lang codes
$wv_conf['dbn']['db_payment_merchants'] = 'wv_payment_merchants'; //
$wv_conf['dbn']['db_payment_notifications'] = 'wv_payment_notifications'; //
$wv_conf['dbn']['db_payment_notifications_dump'] = 'wv_payment_notifications_dump'; //
$wv_conf['dbn']['db_payment_order'] = 'wv_payment_order'; //