mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
change torrent pos_state to varchar, support more sticky level
This commit is contained in:
+2
-5
@@ -147,12 +147,9 @@ if(get_user_class()>=$torrentonpromotion_class)
|
||||
}
|
||||
}
|
||||
}
|
||||
if(get_user_class()>=$torrentsticky_class)
|
||||
if(get_user_class()>=$torrentsticky_class && isset($_POST['sel_posstate']) && isset(\App\Models\Torrent::$posStates[$_POST['sel_posstate']]))
|
||||
{
|
||||
if(intval($_POST["sel_posstate"] ?? 0) == 0)
|
||||
$updateset[] = "pos_state = 'normal'";
|
||||
elseif(intval($_POST["sel_posstate"] ?? 0) == 1)
|
||||
$updateset[] = "pos_state = 'sticky'";
|
||||
$updateset[] = "pos_state = '" . $_POST['sel_posstate'] . "'";
|
||||
}
|
||||
|
||||
$pick_info = "";
|
||||
|
||||
Reference in New Issue
Block a user