if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Contacta extends CI_Controller { function __construct() { parent::__construct(); //Inicializamos los datos de email $config['auth']['mail']['mailtype'] = 'html'; $config['auth']['mail']['protocol'] = 'smtp'; $config['auth']['mail']['smtp_host'] = 'smtp.steinweb.net'; $config['auth']['mail']['smtp_user'] = 'marcos@steinweb.net'; $config['auth']['mail']['smtp_pass'] = 'marcos'; $config['auth']['mail']['smtp_port'] = '25'; $this->email->initialize($config); } //PAGINA PRINCIPAL function index() { //DEFINIMOS EL ARRAY DE CONFIGURACIÓN $data = array(); //DATOS GENERALES DE LA PÁGINA $data['TITULO'] = "Contacto"; $data['SUBTITULO'] = "STEIN Informática y Servicios"; $data['CONTENIDO'] = "
Calle Es Cubells, 8 Bajo los Multicines
07800, Ibiza
(BALEARES)
Telefono: 971 318 436
Fax: 971 318 518
Web: http://www.steinweb.net
E-Mail: info@steinweb.net
"; $data['IMAGEN'] = "http://www.steinweb.net/images/contacta_principal.png"; //MENU PRINCIPAL $data['MENUPRINCIPAL'] = array("Soluciones:#","Instalaciones:#","División Hotelera:#","Servicio Técnico:#","Venta y Suministro:#","Innovación:#","Noticias:#","Contacta:#"); $data['SUBMPRINCIPAL'] = array("Hostelería:#","Retail:#","División Hotelera:#","Terminal TPV:#"); //METADATA $data['META_KEYWORDS'] = ""; $data['META_DESCRIPTION'] = ""; //BLOQUE PRINCIPAL $data['BLOQUE_PRINCIPAL']['TIPO'] = "IMAGEN"; //POSIBLES VALORES: SLIDER / IMAGEN $data['BLOQUE_PRINCIPAL']['ANCHO'] = "959"; //Ancho Imagen $data['BLOQUE_PRINCIPAL']['ALTO'] = "239"; //Altura Imagen $data['BLOQUE_PRINCIPAL']['IMAGEN'] = "/images/divhotelera_banner.png"; //Imagen a cargar $data['BLOQUE_PRINCIPAL']['ENLACE'] = ""; //WIDGETS SIDEBAR { Posibles valores TIPO: htmlbox,rss,banner } //WIDGET#1 $data['WIDGETS'][1]['TIPO'] = "rss"; $data['WIDGETS'][1]['CONFIG']['TITULO'] = "ICG NOTICIAS"; $data['WIDGETS'][1]['CONFIG']['URL'] = "http://www.icg.es/?es/feed"; //WIDGET#2 $data['WIDGETS'][2]['TIPO'] = "rss"; $data['WIDGETS'][2]['CONFIG']['TITULO'] = "ICG CASOS DE ÉXITO"; $data['WIDGETS'][2]['CONFIG']['URL'] = "http://www.icg.es/?es/feedcasosexito"; //WIDGET#3 $data['WIDGETS'][3]['TIPO'] = "banner"; $data['WIDGETS'][3]['CONFIG']['TITULO'] = ""; $data['WIDGETS'][3]['CONFIG']['BANNERS'][0]['IMAGEN'] = "http://www.themeblvd.com/demo-html/alyeska/images/about.png"; $data['WIDGETS'][3]['CONFIG']['BANNERS'][0]['URL'] = "#"; $data['WIDGETS'][3]['CONFIG']['BANNERS'][1]['IMAGEN'] = "http://s3.buysellads.com/1252508/45366-1292352134.jpg"; $data['WIDGETS'][3]['CONFIG']['BANNERS'][1]['URL'] = "#"; //WIDGET#4 $data['WIDGETS'][4]['TIPO'] = "htmlbox"; $data['WIDGETS'][4]['CONFIG']['TITULO'] = "EJEMPLO BANNER"; $data['WIDGETS'][4]['CONFIG']['HTML'] = "Ejemeplo de banner HTML."; //CARGAMOS LAS VISTAS $this->load->view('includes/header',$data); //HEADER $this->load->view('plantillas/contacto',$data); //PLANTILLA CONTENIDO $this->load->view('includes/footer'); //FOOTER } function enviaFormulario() { //Enviamos el Email $this->load->library('email'); $this->email->from($_POST['EMAIL'],$_POST['NOMBRE'] . ' ' . $_POST['EMAIL']); $this->email->to('marcos@steinweb.net'); $this->email->cc('webbegg@gmail.com'); $this->email->bcc('marcos@gmail.com'); $this->email->subject($_POST['NOMBRE'] . ' ' . $_POST['EMPRESA']); $this->email->message($_POST['NOTES']); $this->email->send(); echo "Gracias por ponerse en contacto con nosotros."; //echo "
".$this->email->print_debugger()."
"; } function enviaNewsletters() { //Enviamos el Email $this->load->library('email'); $this->email->from($_POST['EMAIL']); $this->email->to('marcos@steinweb.net'); $this->email->cc('webbegg@gmail.com'); $this->email->bcc('marcos@gmail.com'); $this->email->subject("SUSCRIPCIÓN A NOTICIAS DE: " . $_POST['EMAIL']); $this->email->message("EL USUARIO " . $_POST['EMAIL'] . " SE HA SUSCRITO AL GRUPO DE NOTICIAS."); $this->email->send(); echo "Su email se añadió correctamente al Grupo de Noticias."; } } /* End of file es.php */ /* Location: ./application/controllers/es.php */

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/www/stein/usuarios/stein/public_html/application/controllers/contacta.php:13)

Filename: core/Common.php

Line Number: 405

404 Página no encontrada

STEIN Informática y Servicios

Error 404 - Página no encontrada.
Ir a la página Principal