mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-13 00:24:12 +00:00
Add lists page, link it to the menu, and add searches for all lists.
This commit is contained in:
parent
d1fe5e911b
commit
7b42152672
3 changed files with 131 additions and 62 deletions
59
lists.php
Normal file
59
lists.php
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
<? // Preamble
|
||||||
|
$pageName = "Mailing Lists";
|
||||||
|
$focused = "none"; // Dock icon name to gets a border
|
||||||
|
require "parts/preamble.php"; // Load most of document
|
||||||
|
?>
|
||||||
|
<!--SEARCHME-->
|
||||||
|
<?
|
||||||
|
function mailListLinks ($listName)
|
||||||
|
{
|
||||||
|
$infoUrl = 'http://lists.sourceforge.net/mailman/listinfo/';
|
||||||
|
$archiveUrl = 'http://lists.sourceforge.net/pipermail/';
|
||||||
|
|
||||||
|
echo '[ ';
|
||||||
|
echo '<A href="' . $infoUrl . $listName . '/">info</A>';
|
||||||
|
echo ' | ';
|
||||||
|
echo '<A href="' . $archiveUrl . $listName . '/">archives</A>';
|
||||||
|
echo ' ]';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
The QuakeForge Project has several email lists, which we use to keep in touch
|
||||||
|
with each other and the community. This page is a list of them.
|
||||||
|
|
||||||
|
<H4>QuakeForge Announcements <? mailListLinks ('quake-announce'); ?></H4>
|
||||||
|
|
||||||
|
<P>From time to time, the QuakeForge team make announcements. This, along with
|
||||||
|
the development list, is where they are sent. If you want to know about them,
|
||||||
|
subscribe here.
|
||||||
|
|
||||||
|
<H4>QuakeForge Bugs <? mailListLinks ('quake-bugs'); ?></H4>
|
||||||
|
|
||||||
|
<P>We hate to admit it, but even our code sometimes has bugs in it. This mailing
|
||||||
|
list is for discussing those bugs. Also, the QuakeForge bug-tracking system
|
||||||
|
sends mail to this list whenever the bug database is updated.
|
||||||
|
|
||||||
|
<H4>QuakeForge CVS Updates <? mailListLinks ('quake-cvs'); ?></H4>
|
||||||
|
|
||||||
|
<P>If you would like to get an email every time something happens in the
|
||||||
|
QuakeForge CVS, subscribe to this mailing list. Because a mail is sent out
|
||||||
|
every time any file is changed, this list tends to be pretty high-traffic. Each
|
||||||
|
email contains a list of files changed, and what was changed.
|
||||||
|
|
||||||
|
<H4>QuakeForge Development <? mailListLinks ('quake-devel'); ?></H4>
|
||||||
|
|
||||||
|
<P>This is where the main development work is discussed. Tempers run high
|
||||||
|
occasionally, and technical discussion is the order of the day. If you are
|
||||||
|
interested in helping, have a patch, or are concerned with the direction the
|
||||||
|
development is taking, this is the place you want to be.
|
||||||
|
|
||||||
|
<H4>QuakeForge User Discussion <? mailListLinks ('quake-user'); ?></H4>
|
||||||
|
|
||||||
|
<P>If you are more interested in playing the game than talking about development
|
||||||
|
stuff, you want to be here. Many of the QuakeForge developers are here, and
|
||||||
|
aside from our IRC channel, this is the closest thing to a tech support hotline
|
||||||
|
that we have. There may also be discussion between players here.
|
||||||
|
<!--NOSEARCH-->
|
||||||
|
<?
|
||||||
|
require "parts/postamble.php"; // Finish this sucker up
|
||||||
|
?>
|
|
@ -34,7 +34,7 @@
|
||||||
menuItemLink ("/screenshots.php", "Screenshots");
|
menuItemLink ("/screenshots.php", "Screenshots");
|
||||||
menuItemLink ("/files.php", "Downloads");
|
menuItemLink ("/files.php", "Downloads");
|
||||||
menuItemLink ("http://sourceforge.net/bugs/?group_id=882", "Bug Reports");
|
menuItemLink ("http://sourceforge.net/bugs/?group_id=882", "Bug Reports");
|
||||||
menuItemLink ("http://sourceforge.net/mail/?group_id=882", "Mailing Lists");
|
menuItemLink ("/lists.php", "Mailing Lists");
|
||||||
// menuItemLink ("/board/", "Web Forum");
|
// menuItemLink ("/board/", "Web Forum");
|
||||||
menuSectionFooter ();
|
menuSectionFooter ();
|
||||||
}
|
}
|
||||||
|
@ -76,9 +76,11 @@
|
||||||
' <OPTION value="news">News</OPTION>' .
|
' <OPTION value="news">News</OPTION>' .
|
||||||
// ' <OPTION value="site">Site</OPTION>' .
|
// ' <OPTION value="site">Site</OPTION>' .
|
||||||
// ' <OPTION value="bugs">Bug Tracking</OPTION>' .
|
// ' <OPTION value="bugs">Bug Tracking</OPTION>' .
|
||||||
|
' <OPTION value="-announce">Announcements</OPTION>' .
|
||||||
|
' <OPTION value="-bugs">Bug Discussions</OPTION>' .
|
||||||
' <OPTION value="-cvs">CVS Logs</OPTION>' .
|
' <OPTION value="-cvs">CVS Logs</OPTION>' .
|
||||||
' <OPTION value="-devel">Developer Mail List</OPTION>' .
|
' <OPTION value="-devel">Developer Talk</OPTION>' .
|
||||||
' <OPTION value="-users">Users Mail List</OPTION>' .
|
' <OPTION value="-user">User Discussions</OPTION>' .
|
||||||
// ' <OPTION value="patches">Patches</OPTION>' .
|
// ' <OPTION value="patches">Patches</OPTION>' .
|
||||||
' </SELECT>' .
|
' </SELECT>' .
|
||||||
' <BR>' .
|
' <BR>' .
|
||||||
|
|
126
search.php
126
search.php
|
@ -1,59 +1,67 @@
|
||||||
<?
|
<?
|
||||||
switch ($type_of_search) {
|
switch ($type_of_search) {
|
||||||
case "news":
|
case "news":
|
||||||
$string = AddSlashes ($words);
|
$string = AddSlashes ($words);
|
||||||
include "old_news.php";
|
include "old_news.php";
|
||||||
break;
|
break;
|
||||||
case "-cvs":
|
case "-announce":
|
||||||
$string = urlencode ($words);
|
$string = urlencode ($words);
|
||||||
header ("Location: http://www.geocrawler.com/search/?config=899&words=$string");
|
header ("Location: http://www.geocrawler.com/search/?config=3792&words=$string");
|
||||||
break;
|
break;
|
||||||
case "-devel":
|
case "-bugs":
|
||||||
$string = urlencode ($words);
|
$string = urlencode ($words);
|
||||||
header ("Location: http://www.geocrawler.com/search/?config=856&words=$string");
|
header ("Location: http://www.geocrawler.com/search/?config=7109&words=$string");
|
||||||
break;
|
break;
|
||||||
case "-user":
|
case "-cvs":
|
||||||
$string = urlencode ($words);
|
$string = urlencode ($words);
|
||||||
header ("Location: http://www.geocrawler.com/search/?config=898&words=$string");
|
header ("Location: http://www.geocrawler.com/search/?config=899&words=$string");
|
||||||
break;
|
break;
|
||||||
case "site":
|
case "-devel":
|
||||||
$pageName = "Search Results";
|
$string = urlencode ($words);
|
||||||
$focused = "none"; // Dock icon name to get a border
|
header ("Location: http://www.geocrawler.com/search/?config=856&words=$string");
|
||||||
include "parts/preamble.php"; // Load most of document
|
break;
|
||||||
|
case "-user":
|
||||||
// Start actual search
|
$string = urlencode ($words);
|
||||||
$lib = dblist ();
|
header ("Location: http://www.geocrawler.com/search/?config=898&words=$string");
|
||||||
$dbm = dbmopen ("siteindex.db","r");
|
break;
|
||||||
if (dbmexists ($dbm, $string)) {
|
case "site":
|
||||||
$parseMe = dbmfetch($dbm, $string);
|
$pageName = "Search Results";
|
||||||
}
|
$focused = "none"; // Dock icon name to get a border
|
||||||
dbmclose ($dbm);
|
include "parts/preamble.php"; // Load most of document
|
||||||
if ($parseMe) {
|
|
||||||
echo $parseMe;
|
// Start actual search
|
||||||
$filenames = preg_split("/&&/", $parseMe);
|
$lib = dblist ();
|
||||||
for ($i = 0;$i < sizeof($filenames);$i++) {
|
$dbm = dbmopen ("siteindex.db","r");
|
||||||
$temp = $filenames[$i];
|
if (dbmexists ($dbm, $string)) {
|
||||||
if ($files[$temp]) {
|
$parseMe = dbmfetch($dbm, $string);
|
||||||
$files[$temp]++;
|
}
|
||||||
} else {
|
dbmclose ($dbm);
|
||||||
$files[$temp] = 0;
|
if ($parseMe) {
|
||||||
}
|
echo $parseMe;
|
||||||
}
|
$filenames = preg_split("/&&/", $parseMe);
|
||||||
while (list($key,$val) = each ($files)) {
|
for ($i = 0;$i < sizeof($filenames);$i++) {
|
||||||
echo "<P><A HREF=\"$key\">$key</A> - $val hits";
|
$temp = $filenames[$i];
|
||||||
}
|
if ($files[$temp]) {
|
||||||
} else {
|
$files[$temp]++;
|
||||||
echo "<P>Sorry, no pages found containing '$words'";
|
} else {
|
||||||
}
|
$files[$temp] = 0;
|
||||||
include "parts/postamble.php"; // Finish this sucker up
|
}
|
||||||
break;
|
}
|
||||||
default:
|
while (list($key,$val) = each ($files)) {
|
||||||
$pageName = "Search Results";
|
echo "<P><A HREF=\"$key\">$key</A> - $val hits";
|
||||||
$focused = "none"; // Dock icon name to gets a border
|
}
|
||||||
include "parts/preamble.php"; // Load most of document
|
} else {
|
||||||
|
echo "<P>Sorry, no pages found containing '$words'";
|
||||||
?><P>That type of search isn't supported yet. Please check back later.<?
|
}
|
||||||
include "parts/postamble.php"; // Finish this sucker up
|
include "parts/postamble.php"; // Finish this sucker up
|
||||||
break;
|
break;
|
||||||
}
|
default:
|
||||||
?>
|
$pageName = "Search Results";
|
||||||
|
$focused = "none"; // Dock icon name to gets a border
|
||||||
|
include "parts/preamble.php"; // Load most of document
|
||||||
|
|
||||||
|
?><P>That type of search isn't supported yet. Please check back later.<?
|
||||||
|
include "parts/postamble.php"; // Finish this sucker up
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
Loading…
Reference in a new issue