mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-20 09:30:49 +08:00
add alert when full site in promotion
This commit is contained in:
@@ -2669,6 +2669,10 @@ else {
|
||||
}
|
||||
if ($msgalert)
|
||||
{
|
||||
$spStateGlobal = get_global_sp_state();
|
||||
if ($spStateGlobal != \App\Models\Torrent::PROMOTION_NORMAL) {
|
||||
msgalert("torrents.php", sprintf($lang_functions['full_site_promotion_in_effect'], \App\Models\Torrent::$promotionTypes[$spStateGlobal]['text']), "green");
|
||||
}
|
||||
if($CURUSER['leechwarn'] == 'yes')
|
||||
{
|
||||
$kicktimeout = gettime($CURUSER['leechwarnuntil'], false, false, true);
|
||||
|
||||
Reference in New Issue
Block a user