*** empty log message ***

svn path=/trunk/boinc/; revision=3696
This commit is contained in:
David Anderson 2004-06-24 16:51:22 +00:00
parent 32318835f6
commit 8d1c9b4979
7 changed files with 37 additions and 2 deletions

View File

@ -14098,3 +14098,17 @@ Karl 2004-06-24
tools/
update_versions
David 24 June 2004
- turn off sorting in team member display (slow query)
- show only up to 1000 users/teams/hosts
- use URL_BASE instead of MASTER_URL in page_tail()
- fix php typos
html/
inc/
team.inc
util.inc
user/
team_display.php
top_*.php

View File

@ -12,7 +12,7 @@ function display_team_page($team, $offset, $sort_by) {
// set the following to turn off sorted output.
// (or use caching)
//
$nosort = false;
$nosort = true;
if ($sort_by == "total_credit") {
$sort_clause = "total_credit desc";

View File

@ -116,7 +116,7 @@ function page_head($title) {
function page_tail($is_main=false) {
echo "<br><hr noshade size=1><center>";
if (!$is_main) {
echo "<a href=".MASTER_URL.">Return to ".PROJECT." main page</a><br>\n";
echo "<a href=".URL_BASE.">Return to ".PROJECT." main page</a><br>\n";
}
// put your copyright notice etc. here

View File

@ -7,6 +7,13 @@ $offset = $_GET["offset"];
if (!$offset) $offset=0;
$teamid = $_GET["teamid"];
if ($offset > 1000) {
page_head("Limit exceeded");
echo "Sorry, we're currently showing only the first 1000.";
page_tail();
exit();
}
$cache_args = "teamid=$teamid&sort_by=$sort_by&offset=$offset";
start_cache(3600, $cache_args);

View File

@ -11,6 +11,11 @@
if ($offset < 1000) {
$cache_args = "sort_by=$sort_by&offset=$offset";
start_cache(3600, $cache_args);
} else {
page_head("Limit exceeded");
echo "Sorry - first 1000 only.";
page_tail();
}
require_once("../inc/util.inc");

View File

@ -8,6 +8,11 @@
if ($offset < 1000) {
$cache_args = "sort_by=$sort_by&offset=$offset";
start_cache(3600, $cache_args);
} else {
page_head("Limit exceeded");
echo "Sorry - first 1000 only.";
page_tail();
}
require_once("../inc/db.inc");

View File

@ -9,6 +9,10 @@
if ($offset < 1000) {
$cache_args = "sort_by=$sort_by&offset=$offset";
start_cache(3600, $cache_args);
} else {
page_head("Limit exceeded");
echo "Sorry - first 1000 only.";
page_tail();
}
require_once("../inc/util.inc");