Implemented 'Force SSL'
Implemented 'Force SSL'

file:a/index.php -> file:b/index.php
--- a/index.php
+++ b/index.php
@@ -28,6 +28,12 @@
 // Load the framework
 require_once 'lib/Framework/main.php';
 
+// Force SSL if configured to do so
+if (BTMain::getConf()->forceSSL && !BTMain::getConnTypeSSL()){
+header("Location: " . BTMain::getConf()->SSLURL);
+die;
+}
+
 // pass off to the handler
 include_once 'lib/Handler.php';
 

--- a/lib/Framework/main.php
+++ b/lib/Framework/main.php
@@ -16,7 +16,11 @@
 
 class BTMain{
 
-
+function getConnTypeSSL(){
+return $_SERVER['HTTPS'];
+
+
+}
 
 
 /** Load in the system config and return as an object

--- a/lib/includes/gatherEntropy.php
+++ b/lib/includes/gatherEntropy.php
@@ -22,7 +22,7 @@
 
 $entropyseed = mt_rand(1000,999000);
 
-$x = 500;
+$x = 900;
 $arrlength = count($arr) - 1;