Hi
I was wondering where can I get this value from the database? (/admin/settings.php?section=httpsecurity), I couldn't find it in mdl_config?
Hi
I was wondering where can I get this value from the database? (/admin/settings.php?section=httpsecurity), I couldn't find it in mdl_config?
Have you tried get_config('core', 'loginhttps')? If it's not in there there's probably something wrong with your installation.
What's your Moodle version?
Here in 2.7 and 3.1
select * from mdl_config where name like 'loginhttps'
return:
206;"loginhttps";"0"
This normally works:
SELECT * FROM mdl_config WHERE name = 'loginhttps';
Michael is right though, in PHP code you should use get_config().