//$DOMAIN=$_SERVER['SERVER_NAME']; $DOMAIN= $_SERVER["HTTP_HOST"]; define("BASE_URL", "https://".$DOMAIN."/"); define("COMPANYTITLE", "La Estación"); function mysqliCon() { $mysqli = new mysqli("localhost", "root", "javiotras", "a"); if ($mysqli->connect_errno) { echo "Fallo al contenctar a MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } return $mysqli; } function mysqlPDO() { try { $cn = new PDO("mysql:dbname=wi191183_db;host=10.0.0.31","wi191183_db","sevi24biDO"); $cn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $cn->exec("set names utf8"); return $cn; }catch( PDOException $e) { echo "Error Connection: " . $e->getMessage(); } } function makeDBConnection() { $connection= mysql_connect('localhost','root','javiotras'); if(!$connection) exit("No se pudo conectar"); if(!mysql_select_db('kappa',$connection)) exit ("No se encuentra la base de datos"); } ?> function safeOutput( $value ) { htmlentities( $value, ENT_QUOTES, 'utf-8' ); // other processing return $value; } /// /// returns "safe" URL, stripping anything outside normal charsets for URL /// /* function SanitizeUrl(#url) { return Regex.Replace(url, @"[^-A-Za-z0-9+&@#/%?=~_|!:,.;\(\)]", ""); } */ function validateEmail($email, $mx = false){ if(eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) if($mx){ list($username, $domain) = split("@", $email); return getmxrr($domain, $mxrecords); }else return true; else return false; } function safeInput( $string ) { return "'" . mysql_real_escape_string( $string ) . "'"; } function loadview($view, $dv) { $file = SERVER_ROOT . '/view/' . strtolower($view) . '.php'; //fetch file if (file_exists($file)) { //get file extract($dv); include_once($file); } else { //file does not exist! die("No existe la vista."); } return; } //FUNCION QUE CREA UN SELECTLIST EN UN FORM function CreateSelectList ($Svalue,$Stext,$Sselected,$Stable,$Cvalue,$Cfield) { mysql_pconnect("localhost", "root", "javiotras") or die("Could not connect"); mysql_select_db("keywording") or die("Could not select database"); $StrSql="select * from ".$Stable." as ST "; if($Cvalue){ $StrSql=$StrSql . "where ".$Cfield."=".$Cvalue; } $result = mysql_query($StrSql); echo ""; while ($rs=mysql_fetch_array($result)) { if($Sselected==$rs[$Svalue]){ echo "".$rs[$Stext].""; }else { echo "".$rs[$Stext].""; } } echo ""; } ?> function fechaesp($date) { if(!$date): return ""; endif; $dia = explode("-", $date, 3); $year = $dia[0]; $month = (string)(int)$dia[1]; $day = (string)(int)$dia[2]; $dias = array("domingo","lunes","martes","miércoles" ,"jueves","viernes","sábado"); $tomadia = $dias[intval((date("w",mktime(0,0,0,$month,$day,$year))))]; $meses = array("", "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"); return $tomadia.", ".$day." de ".$meses[$month]." de ".$year; } function getShipping($p,$v) { if($v<20000) $vv=3; if($v<10001) $vv=2; if($v<5001) $vv=1; $arrShipping['Buenos Aires']['1']=75; $arrShipping['Buenos Aires']['2']=100; $arrShipping['Buenos Aires']['3']=140; $arrShipping['Capital Federal']['1']=75; $arrShipping['Capital Federal']['2']=100; $arrShipping['Capital Federal']['3']=140; $arrShipping['Catamarca']['1']=110; $arrShipping['Catamarca']['2']=150; $arrShipping['Catamarca']['3']=210; $arrShipping['Chaco']['1']=110; $arrShipping['Chaco']['2']=150; $arrShipping['Chaco']['3']=210; $arrShipping['Chubut']['1']=110; $arrShipping['Chubut']['2']=150; $arrShipping['Chubut']['3']=210; $arrShipping['Cordoba']['1']=110; $arrShipping['Cordoba']['2']=150; $arrShipping['Cordoba']['3']=210; $arrShipping['Corrientes']['1']=110; $arrShipping['Corrientes']['2']=150; $arrShipping['Corrientes']['3']=210; $arrShipping['Entre Rios']['1']=110; $arrShipping['Entre Rios']['2']=150; $arrShipping['Entre Rios']['3']=210; $arrShipping['Formosa']['1']=110; $arrShipping['Formosa']['2']=150; $arrShipping['Formosa']['3']=210; $arrShipping['Jujuy']['1']=110; $arrShipping['Jujuy']['2']=150; $arrShipping['Jujuy']['3']=210; $arrShipping['La Pampa']['1']=110; $arrShipping['La Pampa']['2']=150; $arrShipping['La Pampa']['3']=210; $arrShipping['La Rioja']['1']=110; $arrShipping['La Rioja']['2']=150; $arrShipping['La Rioja']['3']=210; $arrShipping['Mendoza']['1']=110; $arrShipping['Mendoza']['2']=150; $arrShipping['Mendoza']['3']=210; $arrShipping['Misiones']['1']=110; $arrShipping['Misiones']['2']=150; $arrShipping['Misiones']['3']=210; $arrShipping['Neuquen']['1']=110; $arrShipping['Neuquen']['2']=150; $arrShipping['Neuquen']['3']=210; $arrShipping['Rio Negro']['1']=110; $arrShipping['Rio Negro']['2']=150; $arrShipping['Rio Negro']['3']=210; $arrShipping['Salta']['1']=110; $arrShipping['Salta']['2']=150; $arrShipping['Salta']['3']=210; $arrShipping['San Juan ']['1']=110; $arrShipping['San Juan ']['2']=150; $arrShipping['San Juan ']['3']=210; $arrShipping['San Luis']['1']=110; $arrShipping['San Luis']['2']=150; $arrShipping['San Luis']['3']=210; $arrShipping['Santa Cruz']['1']=110; $arrShipping['Santa Cruz ']['2']=150; $arrShipping['Santa Cruz ']['3']=210; $arrShipping['Santa Fe']['1']=110; $arrShipping['Santa Fe']['2']=150; $arrShipping['Santa Fe']['3']=210; $arrShipping['Santiago del Estero']['1']=110; $arrShipping['Santiago del Estero']['2']=150; $arrShipping['Santiago del Estero']['3']=210; $arrShipping['Tierra del Fuego']['1']=110; $arrShipping['Tierra del Fuego']['2']=150; $arrShipping['Tierra del Fuego']['3']=210; $arrShipping['Tucuman']['1']=110; $arrShipping['Tucuman']['2']=150; $arrShipping['Tucuman']['3']=210; return $arrShipping[$p][$vv]; } function getEstadoPedido($v) { $arr[1]="Cancelado"; $arr[2]="Pendiente de Pago"; $arr[3]="Volver a Pagar"; $arr[7]="Pago Aprobado"; $arr[8]="Envio en Preparacion"; $arr[9]="Productos en transito"; $arr[10]="Productos entregados"; return $arr[$v]; } function getClasificadorText($v) { $arr[2]="NOVEDAD"; $arr[3]="PROXIMAMENTE"; $arr[4]="OFERTA"; return $arr[$v]; } function getTipoTapa($v) { $arr[1]="Tapa Dura"; $arr[2]="Tapa Blanda"; $arr[3]="Cartoné"; $arr[4]="Tapa Semi Rígida"; $arr[5]="Otra"; return $arr[$v]; } function getNavActive($p) { global $page; if($page==$p) return "active"; else return ""; } function checkSEO($page, $event) { $cn=mysqlPDO(); $query = $cn->prepare("SELECT * from categories order by rang asc"); $query->execute(); global $arrCategorie; $arrCategorie=$query->fetchAll(); $i=0; $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $categorie=basename($actual_link); $tokens = explode('/', $actual_link ); // echo $tokens[sizeof($tokens)-2]; $categorieAnt=strtok($tokens[sizeof($tokens)-2], '?'); $categorieAntAnt=strtok($tokens[sizeof($tokens)-3], '?'); $categorie=strtok($categorie, '?'); $categorieAntID=0; $categorieAntAntID=0; foreach($arrCategorie as $rs): if($categorieAntAnt!=$categorieAnt): if(strtolower(friendlyURL($rs["name"]))==strtolower($categorieAntAnt)): $categorieAntAntID=$rs["id"]; endif; endif; if(strtolower(friendlyURL($rs["name"]))==strtolower($categorieAnt)): // echo friendlyURL($rs["name"]). " - " . strtolower($categorieAntAnt) . ""; if($rs["parent_id"]==$categorieAntAntID): $categorieAntID=$rs["id"]; endif; endif; if(strtolower(friendlyURL($rs["name"]))==strtolower($categorie)): // echo friendlyURL($rs["name"]). " - " . strtolower($categorie) . " - " . $rs["id"] . ""; // echo $rs["parent_id"]; // echo $categorieAntID; if($rs["parent_id"]==$categorieAntID): $SeoCatID=$rs["id"]; endif; endif; endforeach; if($SeoCatID): $GLOBALS[vari]=$SeoCatID; $GLOBALS[page]="search"; $GLOBALS[event]="cat"; endif; } function friendlyURL2($inputString){ $url = strtolower($inputString); $patterns = $replacements = array(); $patterns[0] = '/(&|&)/i'; $replacements[0] = '-and-'; $patterns[1] = '/[^a-zA-Z01-9]/i'; $replacements[1] = '-'; $patterns[2] = '/(-+)/i'; $replacements[2] = '-'; $patterns[3] = '/(-$|^-)/i'; $replacements[3] = ''; $url = preg_replace($patterns, $replacements, $url); return $url; } function friendlyURL3($string) { $url = str_replace("'", '', $string); $url = str_replace('%20', ' ', $url); $url = preg_replace('~[^\\pL0-9_]+~u', '-', $url); $url = trim($url, "-"); $url = iconv("utf-8", "us-ascii//TRANSLIT", $url); $url = strtolower($url); $url = preg_replace('~[^-a-z0-9_]+~', '', $url); return $url; } function friendlyURL($text) { // replace non letter or digits by - $text = preg_replace('#[^\\pL\d]+#u', '-', $text); // trim $text = trim($text, '-'); // transliterate $unwanted_array = array( 'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y' ); $text= strtr( $text, $unwanted_array ); // lowercase $text = strtolower($text); // remove unwanted characters $text = preg_replace('#[^-\w]+#', '', $text); if (empty($text)) { return 'n-a'; } return $text; } function limpia_espacios($cadena){ $cadena = str_replace(' ', '', $cadena); return $cadena; } function grabarBitacora($bitacora, $msg) { $fp = fopen("model/log/".$bitacora.".txt","a+"); fwrite($fp, @date("Y-m-d H:i:s")."\t".$msg . PHP_EOL); fclose($fp); } function SendOrder($subject, $msg, $to){ $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: ' . "\r\n"; $headers .= 'Cc: info@az.com.ar' . "\r\n"; $myemail = $to; $body=$msg; if(mail($myemail, $subject, $body, $headers)) { $result = 'Mensaje Enviado Correctamente'; } else { $result = 'No se pudo enviar el Mensaje'; } return $result; } function sendLocalEmail($subject, $msg, $to) { $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: ' . "\r\n"; $headers .= 'Cc: publicidad@laestacionfm.com.ar' . "\r\n"; $myemail = $to; $body=''.$msg.''; if(mail($myemail, $subject, $body, $headers)) { $result = 'Mensaje Enviado Correctamente'; } else { $result = 'No se pudo enviar el Mensaje'; } return $result; } function sendSystemEmail($subject, $msg) { try{ require_once "model/lib/PHPMailer_v5.1/class.phpmailer.php"; $mail = new PHPMailer(); $body = 'Error de SistemaEstimado Usuario'.$msg.' Atentamente, Soporte Técnico Aral Sports.contacto@airdelsurboutique.com'; $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Username = "javier@jops.com.ar"; $mail->Password = "inerciajops"; $mail->Host = "mail.jops.com.ar"; $mail->From = "javier@jops.com.ar"; $mail->FromName = "AIREDELSUR"; $mail->Subject = $subject; $mail->AddAddress($email,$usuario); $mail->AddBCC("javier@jops.com.ar"); ; $mail->IsHTML(true); $mail->WordWrap = 50; $mail->Body = $body; $mail->Send(); } catch(Exception $e){ grabarBitacora("ERRORES",$e->getMessage()); } } function sendUserEmail($subject, $usuario, $email, $msg) { try{ require_once "model/lib/PHPMailer_v5.1/class.phpmailer.php"; $mail = new PHPMailer(); $body = ''.$subject.'Estimado '.$usuario.''.$msg.' Atentamente, Centro de Atención al Cliente de AireDelSur.contacto@airdelsurboutique.comSeguinos tambien en: '; $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Username = "javier@jops.com.ar"; $mail->Password = "inerciajops"; $mail->Host = "mail.jops.com.ar"; $mail->From = "javier@jops.com.ar"; $mail->FromName = "AIREDELSUR"; $mail->Subject = $subject; $mail->AddAddress($email,$usuario); $mail->AddBCC("javier@jops.com.ar"); $mail->IsHTML(true); $mail->WordWrap = 50; $mail->Body = $body; $mail->Send(); } catch(Exception $e){ //grabarBitacora("ERRORES",$e->getMessage()); } } function randomPassword() { $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 8; $i++) { $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } return implode($pass); //turn the array into a string } function data_to_excel( $array , $name ) { require_once("model/lib/Spreadsheet/Excel/Writer.php"); header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$name.xls"); $x = new Spreadsheet_Excel_Writer(); $x->setVersion(8); $s = $x->addWorksheet( $name ); $sx = 0; $sy = 0; foreach($array as $hk => $hr) { foreach($hr as $hk2 => $hr2) { $s->writeString($sx, $sy, $hk2); $sy++; } break; $sx++; $sy = 0; } foreach( $array as $k => $r ) { foreach( $r as $kk => $c ) { if ( is_int( $c ) or is_float( $c ) ) $s->write($sx, $sy, $c); else $s->writeString($sx, $sy, $c); $sy++; } $sx++; $sy = 0; } $x->close(); } function finpost(){ header("Location: " . $_SERVER['REQUEST_URI'],true,303); exit(); } function safe($data) { $data = @trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } function safePost($post) { foreach($post as $key => $value): $npost[$key]["VAL"]=safe($value); endforeach; return $npost; } class Validate { var $check=true; private function setcheck($v) { $this->check=$this->check && $v; } public function NUMCHAR($val,$min,$msg) { if(strlen($val)<$min): $this->setcheck(false); return $msg; else: $this->setcheck(true); return false; endif; } public function EMAIL($val,$min,$msg) { if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/',$val)): $this->setcheck(false); return $msg; else: $this->setcheck(true); return false; endif; } public function ONLYNUMBER($val,$min,$msg) { if(!preg_match('/^[0-9\-]{1,}$/',$val)): $this->setcheck(false); return $msg; else: $this->setcheck(true); return false; endif; } public function EQUAL($val,$val2,$msg) { if($val!=$val2): $this->setcheck(false); return $msg; else: $this->setcheck(true); return false; endif; } } function checklist($a,$b){ if($a==$b) return "selected"; } function GetPrecio($r) { if(LANG==en) return $r["PrecioDolar"]; if(LANG==es) return $r["Precio"]; } function getTXT($txt) { $txtN=explode("||", $txt); if(LANG==en) return trim($txtN[1]); if(LANG==es) return trim($txtN[0]); } function averiguaUrl() { $protocolo = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; // Se extrae el protocolo (http o https) return $protocolo.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // Se devuelve la URL completa } function filtroUrl() { $protocolo = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; // Se extrae el protocolo (http o https) $url= $protocolo.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // Se devuelve la URL completa $url = strtok($url, '?'); $link = preg_replace('~\?filtro=[^&]*~','$1',$url); $link = preg_replace('~&filtro=[^&]*~','$1',$link); if (strpos($link,"?") !== false): $link=$link . "&"; else: $link=$link . "?"; endif; return $link; } function sortUrl() { $protocolo = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; // Se extrae el protocolo (http o https) $url= $protocolo.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // Se devuelve la URL completa $link = preg_replace('~\?sort=[^&]*~','$1',$url); $link = preg_replace('~&sort=[^&]*~','$1',$link); if (strpos($link,"?") !== false): $link=$link . "&"; else: $link=$link . "?"; endif; return $link; } function firstCatUrl() { $protocolo = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; // Se extrae el protocolo (http o https) $url= $protocolo.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // Se devuelve la URL completa $urlParts = explode('/', str_ireplace(array('http://', 'https://'), '', $url)); return $urlParts[1]; } function mes($v) { $aa[1]="ENE"; $aa[2]="FEB"; $aa[3]="MAR"; $aa[4]="ABR"; $aa[5]="MAY"; $aa[6]="JUN"; $aa[7]="JUL"; $aa[8]="AGO"; $aa[9]="SEP"; $aa[10]="OCT"; $aa[11]="NOV"; $aa[12]="DIC"; return $aa[$v]; } function breadcrumbs($separator = ' » ', $home = 'Inicio') { global $arrCategorie; if(!is_array($arrCategorie)): return ""; endif; foreach($arrCategorie as $c): $arrCategorie2[friendlyURL($c["name"])]=$c["name"]; endforeach; // This gets the REQUEST_URI (/path/to/file.php), splits the string (using '/') into an array, and then filters out any empty values $path = array_filter(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))); // This will build our "base URL" ... Also accounts for HTTPS :) $base = ($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/'; $array_keys =array_keys($path); // Initialize a temporary array with our breadcrumbs. (starting with our home page, which I'm assuming will be the base URL) // $breadcrumbs = Array("$home"); // Find out the index for the last value in our path array $last = end($array_keys); // Build the rest of the breadcrumbs foreach ($path AS $x => $crumb) { // Our "title" is the text that will be displayed (strip out .php and turn '_' into a space) $title = ucwords(str_replace(Array('.php', '_'), Array('', ' '), $crumb)); // If we are not on the last index, then display an tag if ($x != $last) // $breadcrumbs[] = "$title"; // Otherwise, just display the title (minus) $breadcrumbs[] = $arrCategorie2[strtolower($title)]; else $breadcrumbs[] = $arrCategorie2[strtolower($title)]; } // Build our temporary array (pieces of bread) into one big string :) return implode($separator, $breadcrumbs); } function html_cut($text, $max_length) { $tags = array(); $result = ""; $is_open = false; $grab_open = false; $is_close = false; $in_double_quotes = false; $in_single_quotes = false; $tag = ""; $i = 0; $stripped = 0; $stripped_text = strip_tags($text); while ($i < strlen($text) && $stripped < strlen($stripped_text) && $stripped < $max_length) { $symbol = $text{$i}; $result .= $symbol; switch ($symbol) { case '<': $is_open = true; $grab_open = true; break; case '"': if ($in_double_quotes) $in_double_quotes = false; else $in_double_quotes = true; break; case "'": if ($in_single_quotes) $in_single_quotes = false; else $in_single_quotes = true; break; case '/': if ($is_open && !$in_double_quotes && !$in_single_quotes) { $is_close = true; $is_open = false; $grab_open = false; } break; case ' ': if ($is_open) $grab_open = false; else $stripped++; break; case '>': if ($is_open) { $is_open = false; $grab_open = false; array_push($tags, $tag); $tag = ""; } else if ($is_close) { $is_close = false; array_pop($tags); $tag = ""; } break; default: if ($grab_open || $is_close) $tag .= $symbol; if (!$is_open && !$is_close) $stripped++; } $i++; } while ($tags) $result .= "".array_pop($tags).">"; return $result; } ?> Warning: Undefined array key "lang" in \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\config\router.php on line 7 Warning: Undefined array key 1 in \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\config\router.php on line 52 Warning: Undefined variable $subfolder in \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\config\router.php on line 59 Warning: Undefined array key "" in \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\config\router.php on line 59 function index($vars){ include_once("model/admin/model.php"); include_once("model/models.php"); include_once("model/categorieTree.php"); $cn=mysqlPDO(); if($vars): list($productosQ, $nRows)=jopsGetWhere("blog as p, blog_imagenes as pi"," where p.Id=pi.ProductoID and p.Id=$vars and pi.Portada=1 group by p.Id order by p.Fecha desc"); $rs=$productosQ->fetch(); list($productosimQ, $nRows)=jopsGetWhere("blog_imagenes as pi"," where pi.ProductoID=$vars"); $imagenes=$productosimQ->fetchAll(); $querybanner = $cn->prepare("Select * from banner where visible=1"); $querybanner->execute(); $banner=$querybanner->fetchall(); foreach($banner as $ban): $aBanner[$ban["Id"]]=$ban; endforeach; if($rs["parent"]==2): include_once("view/busqueda_detalle2.php"); else: include_once("view/busqueda_detalle.php"); endif; exit(); endif; $criterio=$_GET["q"]; if(!$criterio): exit(); endif; $searchTerms = explode(' ', $criterio); $searchTermBits = array(); foreach ($searchTerms as $term) { $term = trim($term); if (!empty($term)) { $searchTermBits[] = "( descripcion_es LIKE '%$term%' or titulo_es LIKE '%$term%' )"; } } list($productosQ, $nRows)=jopsGetWhere("blog as p, blog_imagenes as pi"," where p.Id=pi.ProductoID and p.visible>0 and pi.Portada=1 and ".implode(' AND ', $searchTermBits)." group by p.Id order by p.fechacrea desc"); $productos=$productosQ->fetchAll(); $querybanner = $cn->prepare("Select * from banner"); $querybanner->execute(); $banner=$querybanner->fetchall(); foreach($banner as $ban): $aBanner[$ban["Id"]]=$ban; endforeach; $queryslider = $cn->prepare("Select * from slider where Id=1"); $queryslider->execute(); $slider=$queryslider->fetchall(); include_once("view/busqueda.php"); } function C_listar($vars){ echo friendlyURL("0-2 años"); } ?> Fatal error: Uncaught Error: Call to undefined function index() in \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\config\router.php:91 Stack trace: #0 \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\index.php(19): require_once() #1 {main} thrown in \\HMFS2\WEB\DTC034\laestacionfm.com.ar\public_html\config\router.php on line 91
'.$msg.'
Soporte Técnico Aral Sports.contacto@airdelsurboutique.com
Atentamente,
Centro de Atención al Cliente de AireDelSur.contacto@airdelsurboutique.com