assign ('title_text', 'Welcome (beta)'); $contents = <<Status: beta

Sorry, you need to be a registered user (by invitation only) in order to access this part of Topolore.

MESSAGE; $smarty->assign ('contents_text', $contents); $smarty->display ('index.tpl'); // Extract the search terms used to get to this page, if any function referrerKeywords () { if (isset($_SERVER['HTTP_REFERER'])) { $ref = parse_url ($_SERVER['HTTP_REFERER']); $query = $ref['query']; // Google if (strpos($ref['host'], ".google.") !== false && isset($ref['query'])) { preg_match("/^.*q=([^&]*)(&.*)?$/i", $ref['query'], $match); if ($match[1]) { $match[1] = urldecode($match[1]); // keep text within quotes together preg_match_all("/\"(.*?)\"/", $match[1], $quotes); foreach ($quotes[1] as $quot) $terms[] = $quot; $match[1] = preg_replace("/\".*?\"/", '', $match[1]); $match[1] = preg_replace("/\"/", '', $match[1]); $match[1] = preg_replace("/ /", ' ', $match[1]); $terms = array_merge ($terms, explode (' ', $match[1])); foreach ($terms as $term) { if (trim ($term)) { print "\n"; } } } } } } ?>