HTTPS - including patch
Brought to you by:
grzegorzzydek
Pgrfilemanager does't work if the filemanager is only accessed with https
This fix it
diff php/files.php php/files.php.old
29c29,32
< PGRFileManagerConfig::$pgrThumbPath = 'http://' . $_SERVER['SERVER_NAME'] . substr(dirname($_SERVER['PHP_SELF']), 0, strlen(dirname($_SERVER['PHP_SELF'])) - 3) . 'PGRThumb';
---
>
> $proto = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'))?'https':'http';
>
> PGRFileManagerConfig::$pgrThumbPath = $proto.'://' . $_SERVER['SERVER_NAME'] . substr(dirname($_SERVER['PHP_SELF']), 0, strlen(dirname($_SERVER['PHP_SELF'])) - 3) . 'PGRThumb';
Best regards