also don't even follow links from deep search pages
This commit is contained in:
parent
71445fdf96
commit
9b0edcf449
@ -334,6 +334,10 @@ class Index extends Extension {
|
|||||||
$hash = strtolower($matches[2]);
|
$hash = strtolower($matches[2]);
|
||||||
$event->add_querylet(new Querylet('images.hash = :hash', array("hash" => $hash)));
|
$event->add_querylet(new Querylet('images.hash = :hash', array("hash" => $hash)));
|
||||||
}
|
}
|
||||||
|
else if(preg_match("/^(phash)[=|:]([0-9a-fA-F]*)$/i", $event->term, $matches)) {
|
||||||
|
$phash = strtolower($matches[2]);
|
||||||
|
$event->add_querylet(new Querylet('images.phash = :phash', array("phash" => $phash)));
|
||||||
|
}
|
||||||
else if(preg_match("/^(filetype|ext)[=|:]([a-zA-Z0-9]*)$/i", $event->term, $matches)) {
|
else if(preg_match("/^(filetype|ext)[=|:]([a-zA-Z0-9]*)$/i", $event->term, $matches)) {
|
||||||
$ext = strtolower($matches[2]);
|
$ext = strtolower($matches[2]);
|
||||||
$event->add_querylet(new Querylet('images.ext = :ext', array("ext" => $ext)));
|
$event->add_querylet(new Querylet('images.ext = :ext', array("ext" => $ext)));
|
||||||
|
@ -137,7 +137,7 @@ and of course start organising your images :-)
|
|||||||
if (count($this->search_terms) > 0) {
|
if (count($this->search_terms) > 0) {
|
||||||
if($this->page_number > 3) {
|
if($this->page_number > 3) {
|
||||||
// only index the first pages of each term
|
// only index the first pages of each term
|
||||||
$page->add_html_header('<meta name="robots" content="noindex">');
|
$page->add_html_header('<meta name="robots" content="noindex, nofollow">');
|
||||||
}
|
}
|
||||||
$query = url_escape(implode(' ', $this->search_terms));
|
$query = url_escape(implode(' ', $this->search_terms));
|
||||||
$page->add_block(new Block("Images", $this->build_table($images, "#search=$query"), "main", 10, "image-list"));
|
$page->add_block(new Block("Images", $this->build_table($images, "#search=$query"), "main", 10, "image-list"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user