From 4151e3f7c42b6c679514d62768c282a907223e76 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 16 Sep 2018 17:02:29 -0400 Subject: Add settings modal and user settings tab Updated old settings modal design, to incorporate added Scrott features. Reimplemented this modal in Scrott from archived code and have included it in the navbar. --- app/view/settings.php | 147 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 app/view/settings.php (limited to 'app/view/settings.php') diff --git a/app/view/settings.php b/app/view/settings.php new file mode 100644 index 0000000..0d7d011 --- /dev/null +++ b/app/view/settings.php @@ -0,0 +1,147 @@ + + + + + + + + +
+ + + hasHeadImg() ? "disabled" : ""); ?> + + + getBgImg() ? "disabled" : ""); ?> + + +
+
+ + + +
+ + + +
+
+ +
+ +
+
+ + + + +
+ + guid )?> + +

 

+ +
+ + +
+ +

 

+ + admin == 1) { ?> +

+ getDisplayName()?> is a Scrott Administrator +

+ + + name, "", false, true )?> + guid )?> + +
+ + + +
+ + alias, "", false )?> + email, "", false, false, ($u->emailConf == 1 ? "has-success" : "") )?> + + email != "" && $u->emailConf == 0) { ?> + + + +
+ + + + Delete Account + +
+ +
Created created?>
+
Updated updated?>
+
+ + -- cgit v1.2.3 From 5a086d1592c43b8259f988e9e7f6f167318252ef Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 19 Sep 2018 16:12:15 -0400 Subject: settings: Implement user tab form submission --- app/view/settings.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/view/settings.php') diff --git a/app/view/settings.php b/app/view/settings.php index 0d7d011..9208f4c 100644 --- a/app/view/settings.php +++ b/app/view/settings.php @@ -14,6 +14,7 @@ namespace settings; +require_once "model/settings.php"; require_once "view/formctrl.php"; require_once "view/datalsts.php"; require_once "class/obj.class.php"; -- cgit v1.2.3 From 30db08f5a270e3a6a3790eee41e1fe736b3639e9 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 21 Sep 2018 23:24:44 -0400 Subject: settings: Add admin-only settings tab to settings modal This is an interface to alter the settings stored in the 'settings' database table. Typically restricted to administrators only. --- app/view/settings.php | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) (limited to 'app/view/settings.php') diff --git a/app/view/settings.php b/app/view/settings.php index 9208f4c..21b75ba 100644 --- a/app/view/settings.php +++ b/app/view/settings.php @@ -17,6 +17,7 @@ namespace settings; require_once "model/settings.php"; require_once "view/formctrl.php"; require_once "view/datalsts.php"; +require_once "class/settings.class.php"; require_once "class/obj.class.php"; require_once "class/user.class.php"; @@ -46,6 +47,14 @@ require_once "class/user.class.php"; getDisplayName()?> + + admin == 1) { ?> +
  • "> + + Admin + +
  • + @@ -54,6 +63,12 @@ require_once "class/user.class.php";
    " id="settingsUserTab">
    + + admin == 1) { ?> +
    " id="settingsAdminTab"> + +
    + @@ -146,3 +161,59 @@ require_once "class/user.class.php"; + + +
    + + +

     

    + +
    + See detailed statistics, manage users and other objects in the Administration Panel +
    + +

    General Settings

    + + + +

     

    + +

    SMTP Settings

    + + + + +

    Last mail attempt was successful

    + +

    Last mail attempt failed

    + +

    No mail has been attempted yet

    + + + + + + + +
    + + + + +
    + + + + + + +

     

    +
    + + -- cgit v1.2.3