mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
chore: update CodeIgniter to v4.5.6
+ update php dependencies to latest
This commit is contained in:
parent
fc2e7a0d83
commit
f295e9aa4c
31 changed files with 85 additions and 116 deletions
|
|
@ -10,8 +10,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Analytics;
|
||||
|
||||
use Config\Services;
|
||||
|
||||
trait AnalyticsTrait
|
||||
{
|
||||
protected function registerPodcastWebpageHit(int $podcastId): void
|
||||
|
|
@ -28,7 +26,7 @@ trait AnalyticsTrait
|
|||
set_user_session_referer();
|
||||
set_user_session_entry_page();
|
||||
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
if (! $session->get('denyListIp')) {
|
||||
$db = db_connect();
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ declare(strict_types=1);
|
|||
*/
|
||||
|
||||
use AdAures\Ipcat\IpDb;
|
||||
use Config\Services;
|
||||
use GeoIp2\Database\Reader;
|
||||
use Opawg\UserAgentsV2Php\UserAgents;
|
||||
use WhichBrowser\Parser;
|
||||
|
|
@ -55,7 +54,7 @@ if (! function_exists('set_user_session_deny_list_ip')) {
|
|||
*/
|
||||
function set_user_session_deny_list_ip(): void
|
||||
{
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
if (! $session->has('denyListIp')) {
|
||||
$session->set('denyListIp', IpDb::find(client_ip()) !== null);
|
||||
|
|
@ -69,7 +68,7 @@ if (! function_exists('set_user_session_location')) {
|
|||
*/
|
||||
function set_user_session_location(): void
|
||||
{
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
$location = [
|
||||
'countryCode' => 'N/A',
|
||||
|
|
@ -105,7 +104,7 @@ if (! function_exists('set_user_session_player')) {
|
|||
*/
|
||||
function set_user_session_player(): void
|
||||
{
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
if (! $session->has('player')) {
|
||||
$playerFound = null;
|
||||
|
|
@ -148,7 +147,7 @@ if (! function_exists('set_user_session_browser')) {
|
|||
*/
|
||||
function set_user_session_browser(): void
|
||||
{
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
if (! $session->has('browser')) {
|
||||
$browserName = '- Other -';
|
||||
|
|
@ -174,7 +173,7 @@ if (! function_exists('set_user_session_referer')) {
|
|||
*/
|
||||
function set_user_session_referer(): void
|
||||
{
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
$newreferer = service('superglobals')
|
||||
->server('HTTP_REFERER') ?? '- Direct -';
|
||||
|
|
@ -195,7 +194,7 @@ if (! function_exists('set_user_session_entry_page')) {
|
|||
*/
|
||||
function set_user_session_entry_page(): void
|
||||
{
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
$entryPage = service('superglobals')
|
||||
->server('REQUEST_URI');
|
||||
|
|
@ -238,7 +237,7 @@ if (! function_exists('podcast_hit')) {
|
|||
string $serviceName,
|
||||
?int $subscriptionId,
|
||||
): void {
|
||||
$session = Services::session();
|
||||
$session = service('session');
|
||||
|
||||
$clientIp = client_ip();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue