mirror of https://github.com/BOINC/boinc.git
enhance spam deleter; tweak moderation message
This commit is contained in:
parent
967fa51ce3
commit
5565aa1881
|
@ -798,6 +798,7 @@ function post_rules() {
|
||||||
<li> No abusive comments involving race, religion,
|
<li> No abusive comments involving race, religion,
|
||||||
nationality, gender, class or sexuality.
|
nationality, gender, class or sexuality.
|
||||||
<li> The posting privileges of violators may be suspended or revoked.
|
<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."
|
").$project_rules."
|
||||||
</ul>
|
</ul>
|
||||||
";
|
";
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
// delete teams (and their owners) where the team
|
// delete teams (and their owners) where the team
|
||||||
// - has 0 or 1 members
|
// - has 0 or 1 members
|
||||||
// - has no total credit
|
// - has no total credit
|
||||||
// - has description containing a link
|
// - has description containing a link, or a URL
|
||||||
// - is not a BOINC-Wide team
|
// - is not a BOINC-Wide team
|
||||||
// and the owner
|
// and the owner
|
||||||
// - has no posts
|
// - has no posts
|
||||||
|
@ -299,9 +299,12 @@ function delete_teams() {
|
||||||
foreach ($teams as $team) {
|
foreach ($teams as $team) {
|
||||||
$n = team_count_members($team->id);
|
$n = team_count_members($team->id);
|
||||||
if ($n > 1) continue;
|
if ($n > 1) continue;
|
||||||
if (!has_link($team->description)) continue;
|
if (!has_link($team->description) && !$team->url) continue;
|
||||||
$user = BoincUser::lookup_id($team->userid);
|
$users = BoincUser::enum("teamid = $team->id");
|
||||||
if ($user) {
|
if (count($users)) {
|
||||||
|
$user = $users[0];
|
||||||
|
if ($user->seti_nresults) continue;
|
||||||
|
// for SETI@home
|
||||||
$n = BoincPost::count("user=$user->id");
|
$n = BoincPost::count("user=$user->id");
|
||||||
if ($n) continue;
|
if ($n) continue;
|
||||||
$n = BoincHost::count("userid=$user->id");
|
$n = BoincHost::count("userid=$user->id");
|
||||||
|
|
|
@ -27,6 +27,9 @@ check_get_args(array("teamid"));
|
||||||
|
|
||||||
$teamid = get_int("teamid");
|
$teamid = get_int("teamid");
|
||||||
$team = BoincTeam::lookup_id($teamid);
|
$team = BoincTeam::lookup_id($teamid);
|
||||||
|
if (!$team) {
|
||||||
|
error_page("no such team");
|
||||||
|
}
|
||||||
|
|
||||||
$get_from_db = false;
|
$get_from_db = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue