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://192.168.202.66:8983/solr/segre/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
Català Castellà
Registra’t | Iniciar sessió Registra’t Iniciar sessió
Menú Buscar
Cercador de l’Hemeroteca
Segre Segre Premium

$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']; ?>
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' => '/tags/autors/'.Utiles::latinize($v['nombre']).'.html'); if (($i_related+$k+1)==10) break; } } ?>
Altres etiquetes
Segre
© SEGRE Carrer del Riu, nº 6, 25007, Lleida Telèfon: 973.24.80.00 Fax: 973.24.60.31 email: redaccio@segre.com
Segre Segre