summaryrefslogtreecommitdiffstats
path: root/app/class/setting.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/setting.class.php')
-rw-r--r--app/class/setting.class.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/class/setting.class.php b/app/class/setting.class.php
index e3ef7f1..9cafdfd 100644
--- a/app/class/setting.class.php
+++ b/app/class/setting.class.php
@@ -42,6 +42,24 @@ class Setting extends Framework
}
/*
+ * Force or forbid SSL connections?
+ */
+ static function settSSL($value = null)
+ {
+ $opt = "settSSL";
+
+ if ($value != null)
+ self::setValue($opt, $value);
+
+ $value = self::getValue($opt);
+
+ if ($value === false)
+ return "neither";
+
+ return $value;
+ }
+
+ /*
* Should the app allow the public to signup their own accounts with Scrott?
*/
static function allowPublicSignup($value = null)