Commit 3620e95f authored by Leigh Stoller's avatar Leigh Stoller

Fix up search to point to new Plone site.

parent 77ef2e8f
<?php
#
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -76,7 +76,12 @@ if (!isset($query) || $query == "") {
}
if ($TBMAINSITE || $REMOTEWIKIDOCS) {
$query = urlencode($query);
if ($query == "Search Documentation") {
$query = "";
}
else {
$query = urlencode($query);
}
header("Location: search_cse.php?query=$query");
return;
}
......
<?php
#
# Copyright (c) 2000-2008 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -29,11 +29,10 @@ require("defs.php3");
$optargs = OptionalPageArguments("submit", PAGEARG_STRING,
"query", PAGEARG_STRING);
if (!isset($query)) {
if (!isset($query) || $query == "Search Documentation") {
$query = "";
}
header("Location: http://www.google.com/cse?cx=007876920815929749329:hb-sxxwdr8y&ie=UTF-8&q=$query&sa=\"Search+Documentation\"");
header("Location: https://wiki.emulab.net/@@search?SearchableText=$query");
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment