session_start(); ?>

$titulo="";
$url="http://www.aeroexpoperu.com";
if ($_REQUEST['about']=='site') { echo ""; }
?>
$lenguaje=$_SESSION['lengua'];
if ($lenguaje=='') { $lenguaje="esp"; } else { $lenguaje=$_SESSION['lengua']; }
//Idioma / Español
if ($lenguaje=='esp')
{
$menu1="Nuestra Empresa";
$menu2="Envios";
$menu3="Sugerencias";
$menu4="Contactenos";
$home="Inicio";
$my_cart="Mi Carrito";
$checkout="Pedidos";
$contact="Contáctenos";
$register="Registrese";
$login="Acceso";
$logout="Salir";
$welcome="Bienvenido : ";
$user="Usuario Invitado";
$buscar="Busqueda";
$menu=" Productos Categoría : ";
$mas_visitados=" Más Visitados : ";
$recetas="Recetas : ";
$productos_destacados="Productos Destacados : ";
$pie_x="Los mejores productos del Ecuador hasta su puerta ";
$copy="Copyright © 2007 EcuadorMarket.com. Todos los derechos reservados.";
$ir_mi_carro="Ir a mi carro";
$precio="Precio ";
$btn_add="
";
$btn_retornar="Retornar";
$productos_relacionados="Productos Relacionados";
$descripcion_producto="Descripción del Producto";
$cantidad="Cantidad";
$ampliar="Ampliar";
$codigo="Codigo";
$producto="Producto";
$sub_total="Sub Total";
$vaciar_carrito="Vaciar el carrito";
$pedido="Pedidos";
$nombre="Nombre";
$categoria="Categoria";
$cat_todos="[ En todos ]";
$msg_registro="Para poder realizar su compra electronicamente, usted debe de estar registrado , por favor registrese desde aquÃ. ! , o de lo contrario ingrese al sistema desde aqui.! ";
$msg_my_cart="";
$msg_register="Escriba su nombre de usuario y contraseña que desea utilizar.
Se recomienda elegir una contraseña facil de recordar por usted, asà como una dirección de correo electrónico para recuperar la contraseña en caso de olvidarla.
No comparta su contraseña con nadie, el uso de la misma es personal y confidencial.";
$info_personal="Informacion Personal";
$gracias="Gracias";
$enviar="Enviar";
$mas_detalles="Mas detalles";
$todas_recetas="Todas las recetas";
$anterior="Anterior";
$siguiente="Siguiente";
$profile="Mi Perfil";
$del="Eliminar";
$msg_contactenos="SU MENSAJE HA SIDO ENVIADO CON EXITO, GRACIAS.";
$lema="
";
}
if ($lenguaje=='eng')
{
$menu1="About Us";
$menu2="Sales Terms";
$menu3="On-line Security";
$menu4="Contact Us";
$titulo=":: The Best Ecuadorian products to your door";
$del="Remove";
$home="Home";
$my_cart="My Cart";
$checkout="Checkout";
$contact="Contact us";
$register="Register";
$login="Login";
$logout="Logout";
$welcome="Welcome : ";
$user="Guest User";
$buscar="Search";
$menu=" Shopping Categories : ";
$mas_visitados=" More Visited : ";
$recetas="Recipes : ";
$productos_destacados="Featured Products : ";
$pie_x="The Best products to your door ";
$copy="Copyright © 2007 All Rights Reserved.";
$ir_mi_carro="Go to my cart";
$precio="Price ";
$btn_add="
";
$btn_retornar="Return";
$productos_relacionados="Related products";
$descripcion_producto="Product Description";
$cantidad="Quantity";
$ampliar="Enlarge";
$codigo="Code";
$producto="Product";
$sub_total="Sub Total";
$vaciar_carrito="Empty cart";
$pedido="Checkout";
$nombre="Name";
$categoria="Category";
$cat_todos="[ All ]";
$msg_registro="To make your purchase electronically, you must be registered, please register here.! , Or it will enter the system from here. !";
$msg_my_cart="Remember that in order to use the quote you must be a registered user,
Register from here.!";
$msg_register="Enter your user name and password you want to use.
It is recommended to choose a password easy to remember for you, as well as an email address to retrieve the password if forget.
Do not share your password with anyone, the use of it is personal and confidential.";
$info_personal="Personal Information";
$gracias="Thank's";
$enviar="Send";
$mas_detalles="More";
$todas_recetas="All recipes";
$anterior="Previus";
$siguiente="Next";
$profile="My Profile";
$msg_contactenos="YOUR MESSAGE HAS BEEN SENT. THANK YOU. ";
$lema="
";
}
/*
1.-Destacados
2.-Novedades
3.- Recomendados
4.-Ofertas
*/
?>
require_once('Connections/cn.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
function fecha_dinamica($f)
{
$mes = date('n',strtotime($f));
$mesArray = array(
1 => "Enero",
2 => "Febrero",
3 => "Marzo",
4 => "Abril",
5 => "Mayo",
6 => "Junio",
7 => "Julio",
8 => "Agosto",
9 => "Septiembre",
10 => "Octubre",
11 => "Noviembre",
12 => "Diciembre"
);
$semana = date('D',strtotime($f));
$semanaArray = array(
"Mon" => "Lunes",
"Tue" => "Martes",
"Wed" => "Miércoles",
"Thu" => "Jueves",
"Fri" => "Viernes",
"Sat" => "Sábado",
"Sun" => "Domingo",
);
$mesReturn = $mesArray[$mes];
$semanaReturn = $semanaArray[$semana];
$dia = date('d',strtotime($f));
$año = date('Y',strtotime($f));
return $semanaReturn.", ".$dia." de ".$mesReturn." ".$año;
}
function decode($sHTML)
{
$sHTML=ereg_replace("á","á",$sHTML);
$sHTML=ereg_replace("á","Á",$sHTML);
$sHTML=ereg_replace("é","é",$sHTML);
$sHTML=ereg_replace("É","É",$sHTML);
$sHTML=ereg_replace("í","í",$sHTML);
$sHTML=ereg_replace("Í","Í",$sHTML);
$sHTML=ereg_replace("ó","ó",$sHTML);
$sHTML=ereg_replace("ó","ó",$sHTML);
$sHTML=ereg_replace("ú","ú",$sHTML);
$sHTML=ereg_replace("Ú","Ú",$sHTML);
$sHTML=ereg_replace("ñ","ñ",$sHTML);
$sHTML=ereg_replace("–","–",$sHTML);
$sHTML=ereg_replace("¡","¡",$sHTML);
$sHTML=ereg_replace("!","!",$sHTML);
return utf8_encode($sHTML);
}
function cortar_texto($sHTML,$cant) {
$sHTML=ereg_replace("á","á",$sHTML);
$sHTML=ereg_replace("é","é",$sHTML);
$sHTML=ereg_replace("í","í",$sHTML);
$sHTML=ereg_replace("ó","ó",$sHTML);
$sHTML=ereg_replace("ó","ó",$sHTML);
$sHTML=ereg_replace("ú","ú",$sHTML);
$sHTML=ereg_replace("ñ","ñ",$sHTML);
$tamano = $cant; // tamaño máximo
$textoFinal = ''; // Resultado
if (strlen($sHTML) < $tamano) $tamano = strlen($sHTML);
for ($i=0; $i <= $tamano - 1; $i++) {
$textoFinal .= $sHTML[$i];
}
return strip_tags($textoFinal)."...";
}
if ($_SESSION['lengua']=='') { $_SESSION['lengua']='esp'; }
function fecha_esp($fecha)
{
$mes = date("n",strtotime($fecha));
$mesArray = array(
1 => "ENE",
2 => "FEB",
3 => "MAR",
4 => "ABR",
5 => "MAY",
6 => "JUN",
7 => "JUL",
8 => "AGO",
9 => "SEP",
10 => "OCT",
11 => "NOV",
12 => "DIC"
);
$semana = date("D",strtotime($fecha));
$semanaArray = array(
"Mon" => "Lunes",
"Tue" => "Martes",
"Wed" => "Miércoles",
"Thu" => "Jueves",
"Fri" => "Viernes",
"Sat" => "Sábado",
"Sun" => "Domingo",
);
$mesReturn = $mesArray[$mes];
$semanaReturn = $semanaArray[$semana];
$dia = date("d",strtotime($fecha));
$año = date("Y",strtotime($fecha));
//return $semanaReturn." ".$dia." de ".$mesReturn." de ".$año;
//Miercoles, 02 setiembre 09
return $semanaReturn.", ".$dia." de ".$mesReturn." ".$año;
//return $fecha;
//Friday , May 23 , 2008
}
function formato_precio($number)
{
echo "S/. ",number_format($number, 2, '.', '');
}
?>
include "functions_cart.php";
db_connect();
?>