diff --git a/include/class.config.php b/include/class.config.php index 4114cfca..54d0e0fe 100644 --- a/include/class.config.php +++ b/include/class.config.php @@ -719,6 +719,62 @@ function getUploadDir() { return $this->get('upload_dir'); } + /** + * Returns true if HTTP pass-though authentication is enabled, otherwise false. + * + * Configuration: allow_http_auth + * + * @return bool + */ + function allowHttpAuth() { + return (int)$this->get('allow_http_auth') === 1; + } + + /** + * Returns true if users that pass through HTTP authentication should be automatically created, otherwise false. + * + * Configuration: auto_create_users + * + * @return bool + */ + function autoCreateUsers() { + return (int)$this->get('auto_create_users') === 1; + } + + /** + * Default domain for users when auto-created. + * + * Configuration: default_email_domain + * + * @return string + */ + function defaultEmailDomain() { + return $this->get('default_email_domain'); + } + + /** + * Default timezone id. + * + * Configuration: default_timezone_id + * + * @return int + */ + function defaultTimezoneId() { + return $this->get('default_timezone_id'); + } + + + /** + * Returns the id of the default group automatically created users should use. + * + * Configuration: default_group_id + * + * @return int + */ + function defaultGroupId() { + return $this->get('default_group_id'); + } + function updateSettings($vars, &$errors) { if(!$vars || $errors) @@ -800,6 +856,10 @@ function updateSystemSettings($vars, &$errors) { 'daydatetime_format'=>$vars['daydatetime_format'], 'default_timezone_id'=>$vars['default_timezone_id'], 'enable_daylight_saving'=>isset($vars['enable_daylight_saving'])?1:0, + 'allow_http_auth'=>isset($vars['allow_http_auth'])?1:0, + 'auto_create_users'=>isset($vars['auto_create_users'])?1:0, + 'default_group_id'=>$vars['default_group_id'], + 'default_email_domain'=>$vars['default_email_domain'] )); } diff --git a/include/staff/firstlogin.php b/include/staff/firstlogin.php new file mode 100644 index 00000000..a657403b --- /dev/null +++ b/include/staff/firstlogin.php @@ -0,0 +1,122 @@ +getInfo(); +$info['id']=$thisstaff->getId(); +$info=Format::htmlchars(($errors && $_POST)?$_POST:$info); +?> +
+ +

Staff Account

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

Update Information

+ User Information +
+ First Name: + + +   +
+ Last Name: + + +   +
+ Email Address: + + +   +
+ Phone Number: + + +    + Ext +    +
+ Mobile Number: + + +    +
+ Staff's Signature: Optional signature used on outgoing emails.    +
+ +
Signature is made available as a choice, on ticket reply. +
+ Account Status & Settings: Dept. and assigned group controls access permissions. +
+ Staff's Time Zone: + + +   +
+ Daylight Saving: + + > + Observe daylight saving + (Current Time: getDateTimeFormat(),Misc::gmtime(),$info['tz_offset'],$info['daylight_saving']); ?>) +
+

+ + + +

+
diff --git a/include/staff/header.inc.php b/include/staff/header.inc.php index 2e0fe9e5..d7f8b714 100644 --- a/include/staff/header.inc.php +++ b/include/staff/header.inc.php @@ -41,7 +41,7 @@ ?>