summaryrefslogtreecommitdiffstats
path: root/app/model
diff options
context:
space:
mode:
Diffstat (limited to 'app/model')
-rw-r--r--app/model/common.mod.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index cbcbd4b..a0bf6ae 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -2,6 +2,7 @@
require_once "model/master.mod.php";
require_once "class/form.class.php";
+require_once "class/setting.class.php";
class CommonModel extends MasterModel
{
@@ -20,6 +21,26 @@ class CommonModel extends MasterModel
}
/*
+ * Default action
+ */
+ function common_deflt()
+ {
+ global $_SCROTT;
+
+ /* Admin settings tab */
+ if ($_SCROTT['settSSL'] != "neither")
+ {
+ $this->common_settingAdminSettSSLChecked[$_SCROTT['settSSL']] = "checked";
+ $this->common_settingAdminSettSSLDisabled = "disabled";
+ }
+ else
+ $this->common_settingAdminSettSSLChecked[Setting::settSSL()] = "checked";
+
+ if (Setting::allowPublicSignup())
+ $this->common_settingAdminAllowPublicSignupChecked = "checked";
+ }
+
+ /*
* Handle form submissions from common views
*/
function common_handleFormSubmissions($input)