add alert when full site in promotion

This commit is contained in:
xiaomlove
2022-06-12 22:14:16 +08:00
parent 024ef8b665
commit 921f74c93e
5 changed files with 14 additions and 4 deletions
+4
View File
@@ -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);