$current_site = get_current_site(); $current_site = explode('.',$current_site->domain); $current_site = array($current_site[1], $current_site[2]); $current_site = implode('.',$current_site); $ciudad_id = get_current_site(); $ciudad = array(1 => "joly", 4 => "malaga", 5 => "sevilla", 6 => "cadiz", 7 => "jerez", 8 => "europasur", 9 => "cordoba", 10 => "huelva", 11 => "granada", 12 => "almeria", ); $blog = array(1 => "Grupo Joly", 4 => "Málaga Hoy", 5 => "Diario de Sevilla", 6 => "Diario de Cádiz", 7 => "Diario de Jerez", 8 => "Europa Sur", 9 => "El Día de Córdoba", 10 => "Huelva Información", 11 => "Granada Hoy", 12 => "Diario de Almería", ); $codeciudad = $ciudad[$ciudad_id->id]; $codeblog = $blog[$ciudad_id->id]; define("CURRENTSITE", $current_site); define("CODECIUDAD",$codeciudad); define("CODEBLOG",$codeblog); $currentblog = get_current_blog_id(); define( "CURRENT", $currentblog ); ?> Miki & Duarte, humor de actualidad » Afiliados