Changeset 2178792
- Timestamp:
- 10/23/2019 06:57:06 PM (6 years ago)
- Location:
- textp2p-texting-widget/trunk/inc
- Files:
-
- 2 edited
-
admin/im-textp2p-options.php (modified) (1 diff)
-
im-textp2p-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
textp2p-texting-widget/trunk/inc/admin/im-textp2p-options.php
r2175790 r2178792 4 4 5 5 $options = get_option('imtextp2p_options'); 6 6 $_POST = array_map( 'stripslashes_deep', $_POST ); 7 7 if (isset($_POST['form_submit'])) { 8 8 9 9 // $options['im_chat_box_title'] = $_POST['im_chat_box_title']; 10 10 /*General and View Options*/ 11 11 if (array_key_exists('im_chat_box_title', $_POST) && filter_var($_POST['im_chat_box_title'], FILTER_SANITIZE_STRING)) { 12 $options['im_chat_box_title'] = sanitize_text_field( $_POST['im_chat_box_title']);12 $options['im_chat_box_title'] = $_POST['im_chat_box_title']; 13 13 }else{ 14 14 $options['im_chat_box_title'] = 'Text Us!'; -
textp2p-texting-widget/trunk/inc/im-textp2p-functions.php
r2175790 r2178792 218 218 $imSecretkey = $options['im_secretkey']; 219 219 $imApiListID = $options['im_api_list_id']; 220 220 $_POST = array_map( 'stripslashes_deep', $_POST ); 221 221 $idata = array( 'AUTH_USERNAME' => $imUsername, 'AUTH_SECRET' => $imSecretkey , 'listid' => $imApiListID, 'PHONE' => $_POST['im_phone'], 'FNAME' => $_POST['im_first_name'], 'LNAME' => $_POST['im_last_name'], 'EMAIL' => $_POST['im_email'], 'MSG' => $_POST['im_message'] ); 222 222 $response = wp_remote_post( IM_TEXTP2P_CONTACT_API, array( 'body' => $idata ) );
Note: See TracChangeset
for help on using the changeset viewer.