From 42f1992c97ad2dd83dfbda46d08bbbd8bb83d6f5 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Tue, 17 May 2016 22:34:33 +0200 Subject: [PATCH] Require SSL for the RCC. Resolves T116 --- rcc/index.php | 18 ++++++++++++------ rcc/ssl.php | 11 +++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 rcc/ssl.php diff --git a/rcc/index.php b/rcc/index.php index e7cdf75..4dfe5d8 100644 --- a/rcc/index.php +++ b/rcc/index.php @@ -32,6 +32,17 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ + +require '../vendor/autoload.php'; +require '../res/php/Config.php'; + +use \mmk2410\rbe\config\Config as Config; + +$config = new Config("../config.yaml", '../vendor/autoload.php'); +$settings = $config->getConfig(); + +include './ssl.php'; + ?> @@ -64,12 +75,7 @@
getConfig(); +$config = $settings; if ($config["rcc"]["rcc"] == "on") { include 'password.php'; diff --git a/rcc/ssl.php b/rcc/ssl.php new file mode 100644 index 0000000..0923208 --- /dev/null +++ b/rcc/ssl.php @@ -0,0 +1,11 @@ +