Plugin Directory

Changeset 2490952


Ignore:
Timestamp:
03/09/2021 07:34:22 PM (5 years ago)
Author:
s3bubble
Message:

Bug fixes and improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drm-protected-video-streaming/trunk/includes/player.php

    r2490400 r2490952  
    564564
    565565/*
     566 * getallheaders function doesnt exist bug fix
     567 * @author s3bubble
     568 * @params none
     569 */
     570if (!function_exists('getallheaders')) {
     571
     572    function getallheaders() {
     573   
     574        $headers = [];
     575   
     576        foreach ($_SERVER as $name => $value) {
     577   
     578            if (substr($name, 0, 5) == 'HTTP_') {
     579   
     580                $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
     581   
     582            }
     583   
     584        }
     585   
     586        return $headers;
     587   
     588    }
     589
     590}
     591
     592/*
    566593 * Get the DRM token
    567594 * @author s3bubble
Note: See TracChangeset for help on using the changeset viewer.