Require SSL for the RCC.
Resolves T116
This commit is contained in:
parent
655b982f9d
commit
42f1992c97
2 changed files with 23 additions and 6 deletions
|
@ -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';
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
@ -64,12 +75,7 @@
|
|||
|
||||
<div class="main">
|
||||
<?php
|
||||
require '../res/php/Config.php';
|
||||
use mmk2410\rbe\config\Config as Config;
|
||||
|
||||
$configParser = new Config('../config.yaml', '../vendor/autoload.php');
|
||||
|
||||
$config = $configParser->getConfig();
|
||||
$config = $settings;
|
||||
|
||||
if ($config["rcc"]["rcc"] == "on") {
|
||||
include 'password.php';
|
||||
|
|
Reference in a new issue