mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 07:59:11 +08:00
update: add subscribe flag
This commit is contained in:
parent
4901cbfea5
commit
bf4e63ed9f
@ -21,10 +21,9 @@ class ClientController extends Controller
|
|||||||
public function subscribe(Request $request)
|
public function subscribe(Request $request)
|
||||||
{
|
{
|
||||||
$flag = $request->input('flag')
|
$flag = $request->input('flag')
|
||||||
? $request->input('flag')
|
?? (isset($_SERVER['HTTP_USER_AGENT'])
|
||||||
: isset($_SERVER['HTTP_USER_AGENT'])
|
|
||||||
? $_SERVER['HTTP_USER_AGENT']
|
? $_SERVER['HTTP_USER_AGENT']
|
||||||
: '';
|
: '');
|
||||||
$flag = strtolower($flag);
|
$flag = strtolower($flag);
|
||||||
$user = $request->user;
|
$user = $request->user;
|
||||||
// account not expired and is not banned.
|
// account not expired and is not banned.
|
||||||
|
Loading…
Reference in New Issue
Block a user