The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
https on cirtain pages - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: https on cirtain pages (/showthread.php?tid=911) |
https on cirtain pages - Busy Tech - 01-13-2018 hello i have created and android app which is a webview of my UserSpice website. a glitch in android has occurred so that https sites dont show. i have force https enabled and i don't want to turn it off. is there a way to disable force https on cirtain pages? https on cirtain pages - mudmin - 01-13-2018 Hmm. I don't usually tell people to edit the header directly, but I think that's the cleanest way to do it. Note that when you're doing updates, you should make sure that we didn't edit users/includes/header.php So what you'll do is create an array of pages you don't want ssl for in this snippet below and use it to replace the if force_ssl == 1 thing in header.php Code: if ($settings->force_ssl==1){ Code: $nossl = ['index.php','account.php']; Code: if(!in_array($currentPage,$nossl)){ Code: if (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']) { Code: $url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; Code: Redirect::to($url); Code: exit; Code: } Code: } Code: } https on cirtain pages - Busy Tech - 01-13-2018 thanks this helped alot https on cirtain pages - mudmin - 01-15-2018 Glad to help! |