mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-10 07:11:43 +00:00
9e6f75ccbd
PHP 7 doesn't like the old short tags we were using (it's possible to re-enable them, but won't be for version 8, so we might as well switch now), and the old MySQL APIs are now gone entirely, replaced with something different. This should make everything work at least as well as it used to. Also, one file used to be checked in with CRLF line endings. ??
33 lines
1 KiB
PHP
33 lines
1 KiB
PHP
<?php
|
|
switch ($type_of_search) {
|
|
case "news":
|
|
$string = AddSlashes ($words);
|
|
include "old_news.php";
|
|
break;
|
|
case "-announce":
|
|
$string = urlencode ($words);
|
|
header ("Location: http://www.geocrawler.com/search/?config=3792&words=$string");
|
|
break;
|
|
case "-bugs":
|
|
$string = urlencode ($words);
|
|
header ("Location: http://www.geocrawler.com/search/?config=7109&words=$string");
|
|
break;
|
|
case "-cvs":
|
|
$string = urlencode ($words);
|
|
header ("Location: http://www.geocrawler.com/search/?config=899&words=$string");
|
|
break;
|
|
case "-devel":
|
|
$string = urlencode ($words);
|
|
header ("Location: http://www.geocrawler.com/search/?config=856&words=$string");
|
|
break;
|
|
case "-user":
|
|
$string = urlencode ($words);
|
|
header ("Location: http://www.geocrawler.com/search/?config=898&words=$string");
|
|
break;
|
|
default:
|
|
$site = URLEncode ("quakeforge.net");
|
|
$string = URLEncode ($words);
|
|
header ("Location: http://www.google.com/custom?domains=$site&sitesearch=$site&q=$words");
|
|
break;
|
|
}
|
|
?>
|