Version 5.0.0 beta 9

This commit is contained in:
Neo committed 2025-12-19 17:47:00 -08:00
1 parent 214f649f1d
commit 56979f8ee8
202 files changed
+4403 -1123

No files matched your search

+8 -3
View File
@@ -141,7 +141,7 @@ class IPS
}
else
{
$uniqueKey = mb_substr( md5( '12345678' . '$Rev: 3023$'), 10, 10 );
$uniqueKey = mb_substr( md5( '7807' . '$Rev: 3023$'), 10, 10 );
}
$staticKey = null;
@@ -484,7 +484,7 @@ class IPS
// CACHEBUST_KEY to be a "for reals, will change every release" one. DO NOT set a value
// for it in constants.php
'SUITE_UNIQUE_KEY' => $uniqueKey,
'CACHEBUST_KEY' => mb_substr( md5( '12345678' . '$Rev: 3023$'), 10, 10 ),
'CACHEBUST_KEY' => mb_substr( md5( '7807' . '$Rev: 3023$'), 10, 10 ),
// Thumbnail size
// This needs to be hardcoded rather than configurable because it's the smallest size that
@@ -1028,7 +1028,7 @@ class IPS
try
{
/* Prevent a race condition and set the next check cycle to be 10 mins from the 21 day cut off in case this request fails */
Store::i()->license_data = array( 'fetched' => time() - 1813800, 'data' => $cached['data'] ?? NULL );
Store::i()->license_data = [ 'fetched' => mt_rand( time() - 1813830, time() - 1813770 ), 'data' => $cached['data'] ?? NULL ];
/* Actually call the server */
$response = Url::ips( 'license/' . trim( Settings::i()->ipb_reg_number ) )->request()->get();
@@ -1037,6 +1037,11 @@ class IPS
Store::i()->license_data = array( 'fetched' => time() - 1728000, 'data' => $cached['data'] ?? NULL );
return $cached;
}
elseif( $response->httpResponseCode == 403 )
{
// Use the data stored above, try again in ~10 mins
return $cached;
}
$response = $response->decodeJson();
/* Update the license info in the store */