Plugin Directory

Changeset 3361324


Ignore:
Timestamp:
09/14/2025 03:34:16 PM (5 months ago)
Author:
AmauriC
Message:

V11,69

Location:
wpappninja/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wpappninja/trunk/inc/api/push.php

    r3361270 r3361324  
    2323function wpmobile_getOauthToken() {
    2424
     25    if (isset($_GET['pagename']) == 'googlebearer') {
     26        echo 'OPTION: '. get_option('wpmobile_firebase_config', '');
     27        echo "\r\n";
     28        echo "\r\n";
     29    }
     30
    2531    if (get_option('wpmobile_firebase_config', '') == '') {
    2632        return;
     
    2834   
    2935    $authConfigString = @file_get_contents(get_option('wpmobile_firebase_config', ''));
     36
     37    if (isset($_GET['pagename']) == 'googlebearer') {
     38        echo 'FILE: '. $authConfigString;
     39        echo "\r\n";
     40        echo "\r\n";
     41    }
     42
    3043    $authConfig = json_decode($authConfigString);
    3144    $secret = openssl_get_privatekey($authConfig->private_key);
     
    5871    $context  = stream_context_create($options);
    5972    $responseText = file_get_contents("https://oauth2.googleapis.com/token", false, $context);
     73
     74    if (isset($_GET['pagename']) == 'googlebearer') {
     75        echo 'RESPONSE: '. $responseText;
     76        echo "\r\n";
     77        echo "\r\n";
     78    }
    6079
    6180    $responseOAuth = json_decode($responseText, true);
  • wpappninja/trunk/inc/api/rewrite.php

    r2772204 r3361324  
    136136                    break;
    137137
     138                case 'googlebearer':
     139                    if (current_user_can('administrator')) {
     140                        $output = wpmobile_getOauthToken();
     141                    }
     142                    break;
     143
    138144                case 'pemfile':
    139145                    $output = @file_get_contents(get_option('wpappninja_pem_file', ''));
  • wpappninja/trunk/readme.txt

    r3361270 r3361324  
    1212
    1313== Changelog ==
     14
     15= 11.69 =
     16* Add more debug info
    1417
    1518= 11.68 =
  • wpappninja/trunk/wpappninja.php

    r3361270 r3361324  
    44Plugin URI: https://wpmobile.app/
    55Description: Android and iOS mobile application. Easy setup, free test.
    6 Version: 11.68
     6Version: 11.69
    77Author: Amauri
    88Author URI: https://wpmobile.app/
     
    1515
    1616// common
    17 define( 'WPAPPNINJA_VERSION'            , '11.68' );
     17define( 'WPAPPNINJA_VERSION'            , '11.69' );
    1818define( 'WPAPPNINJA_VERSION_APP'        , '100' );
    1919
Note: See TracChangeset for help on using the changeset viewer.