// Scan external query // $qhl - query search highlight list($id, $template, $qhl) = GET('id, template, qhl', 'GPG'); // Get alias of ID $id = cn_id_alias($id); if (!$template) $template = 'Default'; $nloc = db_get_nloc($id); $ent = db_news_load( $nloc ); { return FALSE; } else { $entry = $ent[ $id ]; $text = entry_make($entry, 'full', $template); $text = cn_snippet_search_hl($text, $qhl); // View statistics db_save_news($ent, db_get_nloc($id)); } return TRUE;
Czy istnieje szansa na przerobienie tego kodu, aby zamiast:
przekierowywało na 404?
return FALSE;
Próbowałem header, ale nie idzie...