Changeset 11668
- Timestamp:
- 03/04/11 00:32:39 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.9/amp_conf/htdocs/recordings/modules/settings.module
r10317 r11668 48 48 ), 49 49 /* until some parsing of available formats is enabled, hide this option 50 */ 50 51 "attachfmt" => array( 51 52 "type" => "email", 52 53 "label" => _("Email attachment format"), 53 54 "tooltip" => _("Audio format of message to attach to email."), 54 "input_type" => " text",55 "input_type" => "hidden", 55 56 "input_size" => 20 56 57 ), 57 */58 58 "backupdeleted" => array( 59 59 "type" => "files", … … 64 64 ), 65 65 /* allowing users to specify context is security issue, hide this option 66 */ 66 67 "callback" => array( 67 68 "type" => "phone", 68 69 "label" => _("Call back context"), 69 70 "tooltip" => _("Dialing context used for calling back the caller that left a message."), 70 "input_type" => " text",71 "input_type" => "hidden", 71 72 "input_size" => 80 72 73 ), 73 */74 74 "delete" => array( 75 75 "type" => "email", … … 80 80 ), 81 81 /* allowing users to specify context is security issue, hide this option 82 */ 82 83 "dialout" => array( 83 84 "type" => "phone", 84 85 "label" => _("Dial out context"), 85 86 "tooltip" => _("Dialing context used to dial out from voicemail."), 86 "input_type" => " text",87 "input_type" => "hidden", 87 88 "input_size" => 80 88 89 ), 89 */90 90 "envelope" => array( 91 91 "type" => "phone", … … 96 96 ), 97 97 /* allowing users to specify context is security issue, hide this option 98 */ 98 99 "exitcontext" => array( 99 100 "type" => "phone", 100 101 "label" => _("Operator context"), 101 102 "tooltip" => _("Dialing context for handling * or 0 calls to operator from voicemail."), 102 "input_type" => " text",103 "input_type" => "hidden", 103 104 "input_size" => 80 104 105 ), 106 /* forcegreetings and forcename should only be modified by voicemail admin, hide these options 105 107 */ 106 /* forcegreetings and forcename should only be modified by voicemail admin, hide these options107 108 "forcegreetings" => array( 108 109 "type" => "phone", 109 110 "label" => _("Force greeting recording"), 110 111 "tooltip" => _("Forces a new user to record a greeting. A new user is determined by the password being the same as the mailbox number."), 111 "input_type" => " checkbox",112 "input_type" => "hidden", 112 113 "input_size" => null 113 114 ), … … 116 117 "label" => _("Force name recording"), 117 118 "tooltip" => _("Forces a new user to record their name. A new user is determined by the password being the same as the mailbox number."), 118 "input_type" => " checkbox",119 "input_type" => "hidden", 119 120 "input_size" => null 120 121 ), 121 */122 122 /* this option is not used by app_voicemail.c, but by app_directory.c 123 123 FreePBX does not use app_directory.c, so hide this option … … 132 132 /* imap options are only effective if using imap voicemail storage 133 133 FreePBX does not support imap voiceemail storage, so hide these options 134 */ 134 135 "imappassword" => array( 135 136 "type" => "imap", 136 137 "label" => _("IMAP email account password"), 137 138 "tooltip" => _("Password for the IMAP email account used to store voicemail messages."), 138 "input_type" => " text",139 "input_type" => "hidden", 139 140 "input_size" => 80 140 141 ), … … 143 144 "label" => _("IMAP email user name"), 144 145 "tooltip" => _("User name for the IMAP email account used to store voicemail messages."), 145 "input_type" => " text",146 "input_type" => "hidden", 146 147 "input_size" => 80 147 148 ), 148 */149 149 /* user can break voicemail for self by switching to a language the server 150 150 is not configured for, so hide this option 151 */ 151 152 "language" => array( 152 153 "type" => "phone", 153 154 "label" => _("Voice prompt language"), 154 155 "tooltip" => _("Enter language code to use for voice prompts. Before non-English languages can be used, the voice prompts must be installed by the system administrator."), 155 "input_type" => " text",156 "input_type" => "hidden", 156 157 "input_size" => 20 157 158 ), 158 */159 159 "maxmsg" => array( 160 160 "type" => "files", … … 180 180 ), 181 181 /* operator destination may not be available on a system, so hide this option 182 */ 182 183 "operator" => array( 183 184 "type" => "caller", 184 185 "label" => _("Dial 0 for Operator"), 185 186 "tooltip" => _("Allow caller to reach an operator by pressing 0 before, after, or while leaving a voicemail."), 186 "input_type" => " checkbox",187 "input_type" => "hidden", 187 188 "input_size" => null 188 189 ), 189 */190 190 "review" => array( 191 191 "type" => "caller", … … 217 217 ), 218 218 /* administrator may not want user to be able to change this, so hide this option 219 */ 219 220 "sendvoicemail" => array( 220 221 "type" => "phone", 221 222 "label" => _("Send internal voicemail"), 222 223 "tooltip" => _("Allow a user logged into voicemail to compose and send voicemail messages to other voicemail users."), 223 "input_type" => " checkbox",224 "input_type" => "hidden", 224 225 "input_size" => null 225 226 ), 226 */227 227 "serveremail" => array( 228 228 "type" => "email", … … 240 240 ), 241 241 /* timezone names are custom per installtion, so hide this option 242 */ 242 243 "tz" => array( 243 244 "type" => "phone", 244 245 "label" => _("Timezone"), 245 246 "tooltip" => _("Timezone from zonemessages context. Irrelevant if Envelope is disabled."), 246 "input_type" => " text",247 "input_type" => "hidden", 247 248 "input_size" => 80 248 249 ), 249 */250 250 "volgain" => array( 251 251 "type" => "email", … … 308 308 function is_textbox($opt) { 309 309 if ($this->voicemail_options_table[$opt]["input_type"] == "text") { 310 return true; 311 } else { 312 return false; 313 } 314 } 315 function is_hidden($opt) { 316 if ($this->voicemail_options_table[$opt]["input_type"] == "hidden") { 310 317 return true; 311 318 } else { … … 905 912 } 906 913 } 914 else if ($this->is_hidden($key)) { 915 $current_option_text_input = "input type=hidden name='" . $var . "' value='" . $value . "' "; 916 $other_opts_text .= "<tr><td colspan='3'><" . $current_option_text_input . "></td></tr>"; 917 } 907 918 else if ($this->is_checkbox($key)) { 908 919 $current_option_text_input = "input " . $$var_enable . " " . $$var_text_box_options . " type=checkbox name='" . $var . "' value='yes'";
