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