mirror of
https://github.com/YGGverse/YGGstate.git
synced 2025-01-26 14:34:19 +00:00
fix time request
This commit is contained in:
parent
45f8df99ef
commit
7e4eb2599a
@ -31,7 +31,7 @@ try {
|
||||
|
||||
// Prepare request
|
||||
$requestTheme = isset($_GET['theme']) && in_array(['default'], $_GET['theme']) ? $_GET['theme'] : 'default';
|
||||
$requestTime = !empty($_GET['time']) ? (int) $requestTime : time();
|
||||
$requestTime = !empty($_GET['time']) ? (int) $_GET['time'] : time();
|
||||
$requestSort = !empty($_GET['sort']) && in_array($_GET['sort'], ['timeOnline', 'uptimeAvg', 'sentSum', 'receivedSum', 'address']) ? $_GET['sort'] : 'timeOnline';
|
||||
$requestOrder = !empty($_GET['order']) && in_array($_GET['order'], ['ASC', 'DESC']) ? $_GET['order'] : 'DESC';
|
||||
$requestPage = !empty($_GET['page']) && $_GET['page'] > 1 ? (int) $_GET['page'] : 1;
|
||||
|
@ -33,7 +33,7 @@ try {
|
||||
$requestPeerId = isset($_GET['peerId']) ? (int) $_GET['peerId'] : 0;
|
||||
|
||||
$requestTheme = !empty($_GET['theme']) && in_array(['default'], $_GET['theme']) ? $_GET['theme'] : 'default';
|
||||
$requestTime = !empty($_GET['time']) ? (int) $requestTime : time();
|
||||
$requestTime = !empty($_GET['time']) ? (int) $_GET['time'] : time();
|
||||
$requestSort = !empty($_GET['sort']) && in_array($_GET['sort'], ['peerConnection.timeAdded']) ? $_GET['sort'] : 'peerConnection.timeAdded';
|
||||
$requestOrder = !empty($_GET['order']) && in_array($_GET['order'], ['ASC', 'DESC']) ? $_GET['order'] : 'DESC';
|
||||
$requestPage = !empty($_GET['page']) && $_GET['page'] > 1 ? (int) $_GET['page'] : 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user