drupal/sites/default/boinc/modules/boincteam/boincteam.module 1 location
|
@@ 707-712 (lines=6) @@
|
| 704 |
|
$boincteam_id = boincteam_lookup_id($team_id); |
| 705 |
|
$boincteam = boincteam_load($boincteam_id); |
| 706 |
|
$now = time(); |
| 707 |
|
if ($boincteam->ping_user <= 0) { |
| 708 |
|
if ($boincteam->ping_time < $now - 60 * (24*60*60)) { |
| 709 |
|
return TRUE; |
| 710 |
|
} |
| 711 |
|
return FALSE; |
| 712 |
|
} |
| 713 |
|
if ($boincteam->ping_time < $now - 90 * (24*60*60)) { |
| 714 |
|
return TRUE; |
| 715 |
|
} |
html/inc/team.inc 1 location
|
@@ 568-573 (lines=6) @@
|
| 565 |
|
// 30 days to assume foundership before someone elase can request it |
| 566 |
|
// |
| 567 |
|
function new_transfer_request_ok($team, $now) { |
| 568 |
|
if ($team->ping_user <= 0) { |
| 569 |
|
if ($team->ping_time < $now - 60 * 86400) { |
| 570 |
|
return true; |
| 571 |
|
} |
| 572 |
|
return false; |
| 573 |
|
} |
| 574 |
|
if ($team->ping_time < $now - 90 * 86400) { |
| 575 |
|
return true; |
| 576 |
|
} |