This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
rangitaki/rcc/ssl.php

12 lines
308 B
PHP
Raw Permalink Normal View History

2016-05-17 22:34:33 +02:00
<?php
// Marcel Kapfer (mmk2410) / Wilson O'Sullivan
// License: MIT License
// SSL Verification
2016-06-03 15:25:59 +02:00
if (isset($settings["rcc"]["debug"]) && $settings["rcc"]["debug"] != "on") {
2016-05-17 22:34:33 +02:00
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on") {
header('HTTP/1.1 400 Bad Request');
exit();
}
}