Plugin Directory

Changeset 2949600


Ignore:
Timestamp:
08/08/2023 08:44:52 PM (3 years ago)
Author:
supersoju
Message:

tagging 2.3.5.2

Location:
wpcommand/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wpcommand/trunk/plugin.php

    r2911988 r2949600  
    44Plugin Name: WP Command and Control
    55Description: Manage your WordPress site with <a href="https://wpcommandcontrol.com/">WP Command and Control</a>. <strong>Deactivate to clear your API Key.</strong>
    6 Version: 2.3.5.1
     6Version: 2.3.5.2
    77Author: SoJu Studios
    88Author URI: http://supersoju.com/
  • wpcommand/trunk/readme.txt

    r2911988 r2949600  
    33Tags: wpcommand, wpcontrol, remote administration, multiple wordpress
    44Requires at least: 3.1
    5 Tested up to: 6.2
    6 Stable tag: 2.3.5.1
     5Tested up to: 6.3
     6Stable tag: 2.3.5.2
    77
    88WP Command and Control allows you to manage multiple WordPress installs from a single dashboard.
  • wpcommand/trunk/wpcac.api.php

    r2195602 r2949600  
    2626            exit;
    2727        }
     28
     29        $response = wp_remote_post( 'https://wpcommandcontrol.com/client/api/verify_request', [
     30            'method'      => 'POST',
     31            'timeout'     => 45,
     32            'httpversion' => '1.0',
     33            'blocking'    => true,
     34            'body'        => [
     35                'action' => 'verify_ips',
     36                'verify' => $verify,
     37                'req_ip' => $_SERVER['REMOTE_ADDR'],
     38            ],
     39        ]);
     40
     41        if ( is_wp_error( $response ) ) {
     42            echo json_encode( 'invalid-request' );
     43            exit;
     44        } else {
     45            if($response['body'] != 'success'){
     46                echo json_encode( 'invalid-request' );
     47                exit;
     48            };
     49        };
    2850
    2951        /*
Note: See TracChangeset for help on using the changeset viewer.