1 && (empty($_GET['pagina']) || !is_numeric($testHost[1]))){ header('HTTP/1.0 404 Not Found'); http_response_code(404); ob_end_clean(); if(stripos($_SERVER['REQUEST_URI'],'/index.php/mod.global/mem.error404') === 0){exit;} $url = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php/mod.global/mem.error404/'; $urlfb = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php/mod.global/mem.error404'; $ctxopts = array( 'http' => array( 'method' => 'GET', 'max_redirects' => '3', 'ignore_errors' => '1' ) ); $context = stream_context_create($ctxopts); $res = file_get_contents($url, null, $context); if( $res ) { print $res; exit; } else { $res = file_get_contents($urlfb, null, $context); if( $res ) { print $res; exit; } } header('Location: /index.php/mod.global/mem.error404'); exit(); } $term = $_GET['term']?:''; $tipo = $_GET['tipo']?:''; $hostname = 'http://solr:8983/solr/andorra/select/'; if($relidioma){ $checkq = 'tipo:tag AND titulo:'.$term.' AND categoriaNombre:'.$tipo.' AND relidioma:'.$relidioma.' AND flag_publicado:1'; }else{ $checkq = 'tipo:tag AND titulo:'.$term.' AND categoriaNombre:'.$tipo.' AND flag_publicado:1'; } $checkqueryString = array( "q" => $checkq, "wt" => 'json', "fl" => '*', "ident" => 'on', ); $checkresult = Utiles::solerQuery($hostname, $checkqueryString); $checkcontent = $checkresult['response']['docs']; if(empty($checkcontent)){ header('HTTP/1.0 404 Not Found'); http_response_code(404); ob_end_clean(); if(stripos($_SERVER['REQUEST_URI'],'/index.php/mod.global/mem.error404') === 0){exit;} $url = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php/mod.global/mem.error404/'; $urlfb = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php/mod.global/mem.error404'; $ctxopts = array( 'http' => array( 'method' => 'GET', 'max_redirects' => '3', 'ignore_errors' => '1' ) ); $context = stream_context_create($ctxopts); $res = file_get_contents($url, null, $context); if( $res ) { print $res; exit; } else { $res = file_get_contents($urlfb, null, $context); if( $res ) { print $res; exit; } } header('Location: /index.php/mod.global/mem.error404'); exit(); } ?> $q, "wt" => 'json', "fl" => '', "ident" => 'on', "rows" => $rows, "sort" => 'fechaTimestamp desc' ); $result = Utiles::solerQuery($hostname, $queryString); $content = $result['response']['docs']; $totalItems = $result['response']['numFound']; $npag = floor($totalItems / $rows); $resto = floor($totalItems % $rows); $pag_init = array(); for ($i=1;$i<=$npag;$i++){ $pag_init[$npag - $i] = (($i*(int)$rows) + $resto); } if ($page == 0){ $urlcanonical = "http://" . $host . $url; echo ""; if ($npag - 1 > 0){ $npagurl = $npag - 1; $urlnext = "http://" . $host . $url . "/". $npagurl; echo ""; } } else { if ($page + 1 < $npag){ $npagurl = $page + 1; if (preg_match('/\/([\d]+)/', "http://" . $host . $url)){ $urlprev = preg_replace('/\/([\d]+)/',"/" .$npagurl, "http://" . $host . $url ); } else { $urlprev = "http://" . $host . $url . "/" .$npagurl; } echo " "; } if ($page + 1 == $npag){ $npagurl = $page + 1; if (preg_match('/\/([\d]+)/', "http://" . $host . $url)){ $urlprev = preg_replace('/\/([\d]+)/',"", "http://" . $host . $url ); } else { $urlprev = "http://" . $host . $url; } echo " "; } if ($page - 1 > 0){ $npagurl = $page - 1; if (preg_match('/\/([\d]+)/', "http://" . $host . $url)){ $urlnext = preg_replace('/\/([\d]+)/',"/". $npagurl, "http://" . $host . $url ); } else { $urlnext = "http://" . $host . $url . "/". $npagurl; } echo " "; } } ?>

x

Ens agradaria enviar-te les notificacions per a les últimes notícies i novetats

PERMETRE
NO, GRÀCIES
Compartir
Accedir
Subscriu-te Iniciar sessió
Buscar
DIARI D'ANDORRA DIARI D'ANDORRA DIARI D'ANDORRA
DIARI TV MUSIK
$q, "wt" => 'json', "fl" => '*', "start" => $init, "ident" => 'on', "rows" => ($rows_page1) ? ($rows_page1) : $rows, "sort" => 'fechaTimestamp desc' ); $result = Utiles::solerQuery($hostname, $queryString); $content = $result['response']['docs']; ?>
   Tags

class="txt-3col con">

- $firma){ ?>
No s’han trobat resultats per a aquesta taxonomia
getStructure($result['response']['numFound'], $rows, $page); $paginador = $p->renderPaginador(); print $paginador; ?>
0){ foreach ($related as $v){ $relacionados[]=array('nombre' => $v['nombre'], 'url' => $v['url']); $related_ids[]=$v['idtag']; $i_related++; if ($i_related==10) break; } } if (!empty($relatedTax) && count($relatedTax) && $i_related<10){ shuffle($relatedTax); foreach ($relatedTax as $k => $v){ if ((!empty($related_ids) && in_array($v['idtag'], $related_ids)) || Utiles::latinize($v['nombre'])==$term) continue; $relacionados[]=array('nombre' => $v['nombre'], 'url' => '/29866_tags/'.Utiles::latinize($v['nombre']).'.html'); if (($i_related+$k+1)==10) break; } } ?>
Altres etiquetes
HELISA - Gestor de continguts
© Diari d’Andorra
(Premsa Andorrana) 2005-2024 - C/ Bonaventura Riberaygua, 39, 5è pis - Telèfon : +376 877 477

Col·laboradors:

HELISA - Gestor de continguts