enhance spam deleter; tweak moderation message

This commit is contained in:
David Anderson 2017-03-26 18:49:29 -07:00
parent 967fa51ce3
commit 5565aa1881
3 changed files with 11 additions and 4 deletions

View File

@ -798,6 +798,7 @@ function post_rules() {
<li> No abusive comments involving race, religion,
nationality, gender, class or sexuality.
<li> The posting privileges of violators may be suspended or revoked.
<li> If your account is suspended, don't create a new one.
").$project_rules."
</ul>
";

View File

@ -83,7 +83,7 @@
// delete teams (and their owners) where the team
// - has 0 or 1 members
// - has no total credit
// - has description containing a link
// - has description containing a link, or a URL
// - is not a BOINC-Wide team
// and the owner
// - has no posts
@ -299,9 +299,12 @@ function delete_teams() {
foreach ($teams as $team) {
$n = team_count_members($team->id);
if ($n > 1) continue;
if (!has_link($team->description)) continue;
$user = BoincUser::lookup_id($team->userid);
if ($user) {
if (!has_link($team->description) && !$team->url) continue;
$users = BoincUser::enum("teamid = $team->id");
if (count($users)) {
$user = $users[0];
if ($user->seti_nresults) continue;
// for SETI@home
$n = BoincPost::count("user=$user->id");
if ($n) continue;
$n = BoincHost::count("userid=$user->id");

View File

@ -27,6 +27,9 @@ check_get_args(array("teamid"));
$teamid = get_int("teamid");
$team = BoincTeam::lookup_id($teamid);
if (!$team) {
error_page("no such team");
}
$get_from_db = false;