From b2b0004c497b70ced46333a8a094a1d4cf3f8c48 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Fri, 12 Sep 2014 00:02:20 -0400 Subject: [PATCH] #35 Added auto-refresh property to the users table --- admin/profile.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/admin/profile.php b/admin/profile.php index 1971b542..8a75d308 100644 --- a/admin/profile.php +++ b/admin/profile.php @@ -228,11 +228,11 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); +

-

@@ -257,6 +257,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
+
+ +
+ + + Enter value in milliseconds, or 0 to disable. No fractional values. +
+

@@ -394,6 +402,9 @@ function update_profile() { /* Auto-start ticket timer */ $_SESSION['new']['autostart'] = isset($_POST['autostart']) ? 1 : 0; + /* Update auto-refresh time */ + $_SESSION['new']['autorefresh'] = isset($_POST['autorefresh']) ? $_POST['autorefresh'] : 0; + /* Notifications */ $_SESSION['new']['notify_new_unassigned'] = empty($_POST['notify_new_unassigned']) || ! $can_view_unassigned ? 0 : 1; $_SESSION['new']['notify_new_my'] = empty($_POST['notify_new_my']) ? 0 : 1; @@ -415,6 +426,7 @@ function update_profile() { else { /* Update database */ + //TODO Add auto-refresh to the update SQL hesk_dbQuery( "UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."users` SET `name`='".hesk_dbEscape($_SESSION['new']['name'])."', @@ -424,6 +436,7 @@ function update_profile() { $sql_pass , `afterreply`='".intval($_SESSION['new']['afterreply'])."' , `autostart`='".intval($_SESSION['new']['autostart'])."' , + `autorefresh`='".intval($_SESSION['new']['autorefresh'])."' , `notify_new_unassigned`='".intval($_SESSION['new']['notify_new_unassigned'])."' , `notify_new_my`='".intval($_SESSION['new']['notify_new_my'])."' , `notify_reply_unassigned`='".intval($_SESSION['new']['notify_reply_unassigned'])."' ,