Plugin Directory

Changeset 1630526


Ignore:
Timestamp:
04/05/2017 09:11:01 PM (9 years ago)
Author:
karthikwpress
Message:

printing messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aptly/trunk/aptly.php

    r1630472 r1630526  
    4141function aptly_store_user()
    4242 {
     43   // echo ("blah man!                                    blah man!");
    4344   $blog_url = get_bloginfo('url');
    4445   $blog_email = get_bloginfo('admin_email');
     
    9192
    9293   // $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 );
    9495   $test_body = json_decode($response['body'], true);
     96
     97   print_r($response);
     98   print_r ($test_body);
    9599
    96100   // receive server response
     
    546550          update_option('aptly_opt_in', sanitize_text_field($_POST['aptly_opt_in']));
    547551          $opt_in_value = sanitize_text_field($_POST['aptly_opt_in']);
    548           aptly_store_user();
    549552      }
    550553      else {
     
    553556        update_option('aptly_opt_in', '1');
    554557        $opt_in_value = '1';
     558        aptly_store_user();
    555559      }
    556560      else {
     
    762766              <form method="post">
    763767
    764                 <input type='hidden' name='optin_submitted' value='yes'>
     768                <input type='hidden' name='optin_submitted' value='1'>
    765769                <div style="margin: 20px 0;"/></div>
    766770                <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.