Removed proprietary dependences.

svn path=/trunk/boinc/; revision=2087
This commit is contained in:
David Anderson 2003-08-13 22:09:50 +00:00
parent 0c7b319ceb
commit 57a7e09403
2 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,8 @@
<?php <?php
require_once("../util.inc");
require_once("../include.php"); require_once('../include/template.inc');
require_once("forum.inc"); require_once('forum.inc');
require_once('../util.inc');
if (!empty($_GET['post'])) { if (!empty($_GET['post'])) {
$postId = $_GET['post']; $postId = $_GET['post'];
@ -9,9 +10,9 @@ if (!empty($_GET['post'])) {
$rating = $_POST['rating']; $rating = $_POST['rating'];
if ($choice == SOLUTION) { if ($choice == SOLUTION) {
$rating = 1; $rating = 1;
} else if ($choice == OFF_TOPIC) { } else if ($choice == OFF_TOPIC) {
$rating = -1; $rating = -1;
} }
// TODO: Define constants for these. // TODO: Define constants for these.

View File

@ -1,6 +1,9 @@
<?php <?php
require_once('../include.php');
require_once('../include/template.inc');
require_once('forum.inc'); require_once('forum.inc');
require_once('../util.inc');
doHeader('Forum'); doHeader('Forum');
/* sanitize variable */ /* sanitize variable */
@ -12,7 +15,7 @@ $categories = getCategories();
<p> <p>
<span class="title">Search</span> <span class="title">Search</span>
<br><a href="index.php"><?php echo $cfg['sitename'] ?> Forum</a> <br><a href="index.php"><?php echo PROJECT ?> Forum</a>
</p> </p>
<p style="text-align:center"> <p style="text-align:center">