diff options
Diffstat (limited to 'app/class')
-rw-r--r-- | app/class/setting.class.php | 18 |
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) |