diff --git a/.gitignore b/.gitignore index 49c4e5f7..9fb24a33 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ download_attachment.php file_limits.php footer.txt header.txt -hesk_javascript_v25.js hesk_settings.inc.php img/add_article.png img/add_category.png @@ -274,5 +273,4 @@ img/ico_tools.png inc/recaptcha/recaptchalib_v2.php ip_whois.php language/en/emails/reset_password.txt -language/en/help_files/ticket_list.html -hesk_javascript.js +language/en/help_files/ticket_list.html \ No newline at end of file diff --git a/admin/manage_users.php b/admin/manage_users.php index f7cbea07..2df6b106 100644 --- a/admin/manage_users.php +++ b/admin/manage_users.php @@ -1,7 +1,7 @@ '', 'email' => '', - 'user' => '', + 'cleanpass' => '', + 'user' => '', + 'autoassign' => 'Y', + + // Signature 'signature' => '', + + // Permissions 'isadmin' => 1, 'active' => 1, 'categories' => array('1'), 'features' => array('can_view_tickets','can_reply_tickets','can_change_cat','can_assign_self','can_view_unassigned','can_view_online'), - 'signature' => '', - 'cleanpass' => '', + + // Preferences + 'afterreply' => 0, + 'autorefresh' => 0, + + // Defaults + 'autostart' => 1, + 'notify_customer_new' => 1, + 'notify_customer_reply' => 1, + 'show_suggested' => 1, + + // Notifications + 'notify_new_unassigned' => 1, + 'notify_new_my' => 1, + 'notify_reply_unassigned' => 1, + 'notify_reply_my' => 1, + 'notify_assigned' => 1, + 'notify_note' => 1, + 'notify_pm' => 1, + 'notify_note_unassigned' => 1, ); /* A list of all categories */ @@ -101,7 +134,10 @@ while ($row=hesk_dbFetchAssoc($res)) if ( ! $_SESSION['isadmin']) { /* Can't create admin users */ - $_POST['isadmin'] = 0; + if ( isset($_POST['isadmin']) ) + { + unset($_POST['isadmin']); + } /* Can only add features he/she has access to */ $hesk_settings['features'] = array_intersect( explode(',', $_SESSION['heskprivileges']) , $hesk_settings['features']); @@ -166,149 +202,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>
-
-
-
-
-
*
-
- -
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
-
-
-
-
-
-
- -
- -
-
- -
-
-
-
- -
- $catname) - { - echo '
'; - } - ?> -
-
-
- -
-
'; - } - ?> -
- -
-
-
-
-
- -
- -
- -
- -
- -
- -
-
-
- - -
- - -
-
-
-
- - - - -
-
- - -
-
-
-
+
+ +