Changeset 1630526
- Timestamp:
- 04/05/2017 09:11:01 PM (9 years ago)
- File:
-
- 1 edited
-
aptly/trunk/aptly.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aptly/trunk/aptly.php
r1630472 r1630526 41 41 function aptly_store_user() 42 42 { 43 // echo ("blah man! blah man!"); 43 44 $blog_url = get_bloginfo('url'); 44 45 $blog_email = get_bloginfo('admin_email'); … … 91 92 92 93 // $response = wp_remote_post( 'https://cerkl.com/library/awp.php', $args ); 93 $response = wp_remote_post( 'http://staging-cerkl.gopagoda.io ', $args );94 $response = wp_remote_post( 'http://staging-cerkl.gopagoda.io/library/awp.php', $args ); 94 95 $test_body = json_decode($response['body'], true); 96 97 print_r($response); 98 print_r ($test_body); 95 99 96 100 // receive server response … … 546 550 update_option('aptly_opt_in', sanitize_text_field($_POST['aptly_opt_in'])); 547 551 $opt_in_value = sanitize_text_field($_POST['aptly_opt_in']); 548 aptly_store_user();549 552 } 550 553 else { … … 553 556 update_option('aptly_opt_in', '1'); 554 557 $opt_in_value = '1'; 558 aptly_store_user(); 555 559 } 556 560 else { … … 762 766 <form method="post"> 763 767 764 <input type='hidden' name='optin_submitted' value=' yes'>768 <input type='hidden' name='optin_submitted' value='1'> 765 769 <div style="margin: 20px 0;"/></div> 766 770 <input type="submit" value="Let's Go!" class="btn btn-primary btn-lg" style="background-color: #495f8c; color: white">
Note: See TracChangeset
for help on using the changeset viewer.