Commit Graph
8 Commits
Author SHA1 Message Date
Divarion-D a3e0ebdc6f refactor(streaming): remove globals from function parameters
Move $rSettings, $rServers, $redis from explicit parameters to global
access inside functions. This eliminates inconsistent mixed patterns
where some globals were passed as args and others accessed via global.

Changed signatures:
- StreamAuth::checkAccess() - removed $rServers, $rSettings params
- OffAirHandler::getOffAirVideo() - removed $rSettings param
- OffAirHandler::showVideoServer() - removed $rSettings, $rServers params
- ConnectionLimiter::closeConnections() - removed $redis, $rSettings, $rServers
- ConnectionLimiter::closeConnection() - removed $redis, $rSettings, $rServers
- ProxySelector::availableProxy() - removed $rServers, $rSettings params

All callers updated accordingly.
2026-04-12 12:24:41 +03:00
Divarion-D f8f465209c fix(streaming): add null coalescing guards for undefined array keys 2026-04-11 22:06:04 +03:00
Divarion-D 738973c5db docs(php): add standardized file headers across codebase
- Add @author, @copyright, @link, @version, @license to 399 PHP files
- MERGE mode: inject metadata into 243 existing docblocks (preserving docs)
- INSERT mode: create new docblocks for 156 files without headers
- Skip 3 files that already had correct headers
- Exclude third-party libs (TMDb, mobiledetect, Dropbox, etc.)
- Exclude bin/, ministra/, content/, tmp/, resources/, module views
- Update tools/add_headers.php to v2 with MERGE strategy
2026-04-05 22:38:36 +03:00
Divarion-D 2f593e2c83 fix: guard igbinary_unserialize against Redis false returns
Redis::get() returns false when a key does not exist.
igbinary_unserialize(false) produces a PHP warning and returns false,
which can cause unexpected behavior or fatal errors on the streaming
hot path.

All 5 call sites now check for false before deserializing:
- ConnectionTracker::getConnection()
- ConnectionTracker::closeConnection() (internal lookup)
- ConnectionLimiter::closeConnection()
- reseller_api_actions.php (line_activity kill)
- UsersCronJob (mGet bulk deserialize via array_map)
2026-03-15 12:27:28 +03:00
Divarion-D 3d8abedafd Stage 8 has been completed 2026-03-07 21:53:45 +03:00
Divarion-D 80a25d3140 Complete stage 8.1 and 8.2 2026-03-03 20:00:34 +03:00
Divarion-D e2c9cb97ce Stage 7 has been completed 2026-02-27 22:32:39 +03:00
Divarion-D 981de7f750 Steps 4 and 5 are complete. 2026-02-22 15:02:41 +03:00