Changeset 3064
- Timestamp:
- 11/13/06 16:15:18 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/modules/core/functions.inc.php
r3044 r3064 1094 1094 // then add directdid to the insert command. 1095 1095 // 1096 // Clean replace any <> with () in display name - should have javascript stopping this but ... 1097 // 1096 1098 $directdid = preg_replace("/[^0-9._XxNnZz\[\]\-]/" ,"", trim($directdid)); 1099 $name = preg_replace(array('/</','/>/'), array('(',')'), trim($name)); 1097 1100 1098 1101 //insert into users table … … 2321 2324 $currentcomponent->addjsfunc('onsubmit()', "\treturn checkBlankUserPwd();\n", 9); 2322 2325 } 2323 $currentcomponent->addguielem($section, new gui_textbox('name', $name, 'Display Name', 'The caller id name for calls from this user will be set to this name. ', '!isCallerID()', $msgInvalidOutboundCID, false));2326 $currentcomponent->addguielem($section, new gui_textbox('name', $name, 'Display Name', 'The caller id name for calls from this user will be set to this name. Only enter the name, NOT the number.', '!isCallerID()', $msgInvalidOutboundCID, false)); 2324 2327 2325 2328 $section = 'Extension Options';
