Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/03/2014, 11:54
zciezparx
 
Fecha de Ingreso: marzo-2014
Mensajes: 6
Antigüedad: 10 años, 8 meses
Puntos: 0
Respuesta: Traslado de una pagina web

este es el codigo > index.php

<?php
error_reporting(E_ALL); ini_set('display_errors', true);
$pages = array(
'0' => array('id' => '1', 'alias' => 'Inicio', 'file' => '1.php'),
'1' => array('id' => '2', 'alias' => 'Quiénes-somos', 'file' => '2.php'),
'2' => array('id' => '8', 'alias' => 'Donde-estamos', 'file' => '8.php'),
'3' => array('id' => '3', 'alias' => 'Galería', 'file' => '3.php'),
'4' => array('id' => '9', 'alias' => 'Ceniceros', 'file' => '9.php'),
'5' => array('id' => '7', 'alias' => 'Cuadros', 'file' => '7.php'),
'6' => array('id' => '10', 'alias' => 'Decoración', 'file' => '10.php'),
'7' => array('id' => '11', 'alias' => 'Espejos', 'file' => '11.php'),
'8' => array('id' => '12', 'alias' => 'Iluminación', 'file' => '12.php'),
'9' => array('id' => '14', 'alias' => 'Perchas', 'file' => '14.php'),
'10' => array('id' => '15', 'alias' => 'Puertas', 'file' => '15.php'),
'11' => array('id' => '13', 'alias' => 'Paragüeros', 'file' => '13.php'),
'12' => array('id' => '6', 'alias' => 'Contacta', 'file' => '6.php')
);
$forms = array(
'6' => array(
'3d336fc2' => Array( 'email' => '', 'subject' => 'Inquiry from the web page', 'sentMessage' => 'Form was sent.', 'fields' => array( array( 'fidx' => '0', 'name' => 'Nombre', 'type' => 'input', 'options' => '' ), array( 'fidx' => '1', 'name' => 'E-mail', 'type' => 'input', 'options' => '' ), array( 'fidx' => '2', 'name' => 'Teléfono', 'type' => 'input', 'options' => '' ), array( 'fidx' => '3', 'name' => 'Mensaje', 'type' => 'textarea', 'options' => '' ) ) )
)
);
$base_dir = dirname(__FILE__);
$base_url = '/';
$show_comments = false;
include dirname(__FILE__).'/functions.inc.php';
$home_page = '1';
$page_id = parse_uri();
$user_key = "j4igKDSjIKULHl+yUfaa1H8SOKbG0AXZmVmz5NNOhOPU" ;
$user_hash = "1fa7777872d39b29";
$comment_callback = "http://us.zyro.com/comment_callback/";
$preview = false;
$mod_rewrite = true;
$page = isset($pages[$page_id]) ? $pages[$page_id] : null;
if (!is_null($page)) {
handleComments($page['id']);
if (isset($_POST["wb_form_id"])) handleForms($page['id']);
}
ob_start();
if (isset($_REQUEST['view']) && $_REQUEST['view'] == 'news')
include dirname(__FILE__).'/news.php';
else if (isset($_REQUEST['view']) && $_REQUEST['view'] == 'blog')
include dirname(__FILE__).'/blog.php';
else if ($page) {
$fl = dirname(__FILE__).'/'.$page['file'];
if (is_file($fl)) include $fl;
} else {
header("Content-type: text/html; charset=utf-8", true, 404);
echo "<!DOCTYPE html>\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>404 Not found</title>\n";
echo "</head>\n";
echo "<body>\n";
echo "404 Not found\n";
echo "</body>\n";
echo "</html>";
}
ob_end_flush();

?>