REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 3.04 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/getgenie/app/Api/License.php
Text
Base64
<?php namespace GenieAi\App\Api; class License { public $prefix = ''; public $param = ''; public $request = null; public function __construct() { add_action('rest_api_init', function () { register_rest_route('getgenie/v1/license', '(?P<action>[\w-]+)', array( 'methods' => \WP_REST_Server::ALLMETHODS, 'callback' => [$this, 'action'], 'permission_callback' => '__return_true', )); }); } public function action($request) { if ($request['action'] == 'get_license_version') { return 'RPR_OK-2.0.0'; } if (!wp_verify_nonce($request->get_header('X-WP-Nonce'), 'wp_rest')) { return [ 'status' => 'fail', 'message' => ['Nonce mismatch.'] ]; } if (!is_user_logged_in() || !current_user_can('publish_posts')) { return [ 'status' => 'fail', 'message' => ['Access denied.'] ]; } switch ($request['action']) { case 'get-token': $response = getgenie_remote_request( 'wp-json/v1/manage-sites/license_active', $request->get_body(), [ 'License-Version-Checker-Url' => get_rest_url(null, 'getgenie/v1/license/get_license_version') ] ); if ($response !== null && isset($response->data)) { $token = isset($response->data->siteToken) ? $response->data->siteToken : ''; $authTokenSecretKey = isset($response->data->authTokenSecretKey) ? $response->data->authTokenSecretKey : ''; if ($token != '') { update_option('getgenie_site_token', $token); update_option('getgenie_auth_token_secret_key', $authTokenSecretKey); return [ "status" => "success", "message" => [ "License has been activated" ] ]; } return [ "status" => "fail", "message" => [ isset($response->message[0]) ? $response->message[0] : "Invalid license key" ] ]; } break; case 'remove-token': delete_option('getgenie_site_token'); delete_option('getgenie_auth_token_secret_key'); return [ "status" => "success", "message" => [ "License has been deactivated" ] ]; break; } return [ "status" => "fail", "message" => [ "Remote connection timeout" ] ]; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AdminConfig.php
3.51 KB
lrw-r--r--
2026-06-07 13:34:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Feedback.php
2.07 KB
lrw-r--r--
2023-05-24 09:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GetGenieChat.php
8.16 KB
lrw-r--r--
2026-06-07 13:34:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
History.php
6.85 KB
lrw-r--r--
2024-04-21 12:55:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LeaseToken.php
1020 B
lrw-r--r--
2023-05-08 11:08:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
License.php
3.04 KB
lrw-r--r--
2024-11-24 17:04:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Parser.php
2.04 KB
lrw-r--r--
2023-05-08 11:08:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RoleManagement.php
4.33 KB
lrw-r--r--
2026-06-07 13:34:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Store.php
2.50 KB
lrw-r--r--
2026-06-07 13:34:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SubscriptionUpgradeUrl.php
1.43 KB
lrw-r--r--
2023-05-08 11:08:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UploadImage.php
3.99 KB
lrw-r--r--
2024-04-21 12:55:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
UsageLimitStats.php
2.21 KB
lrw-r--r--
2023-05-08 11:08:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).