REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 3.53 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/nextend-facebook-connect/admin/upgrader.php
Text
Base64
<?php use NSL\Notices; class NextendSocialUpgrader { public static function init() { add_filter('plugins_api', 'NextendSocialUpgrader::plugins_api', 20, 3); // WooCommerce use priority 20, so better to follow add_filter('upgrader_pre_download', 'NextendSocialUpgrader::upgrader_pre_download', 10, 3); add_filter('pre_set_site_transient_update_plugins', 'NextendSocialUpgrader::injectUpdate'); } public static function plugins_api($res, $action, $args) { if ($action === 'plugin_information' && $args->slug === 'nextend-social-login-pro') { try { $res = (object)NextendSocialLoginAdmin::apiCall($action, (array)$args); } catch (Exception $e) { $res = new WP_Error('error', $e->getMessage()); } } return $res; } public static function upgrader_pre_download($reply, $package, $upgrader) { $needle = NextendSocialLoginAdmin::getEndpoint(); if (substr($package, 0, strlen($needle)) == $needle) { add_filter('http_response', 'NextendSocialUpgrader::http_response', 10, 3); } return $reply; } public static function http_response($response, $r, $url) { $needle = NextendSocialLoginAdmin::getEndpoint(); if (substr($url, 0, strlen($needle)) == $needle && 200 != wp_remote_retrieve_response_code($response) || is_wp_error($response)) { if (isset($response['filename']) && file_exists($response['filename'])) { $body = @json_decode(@file_get_contents($response['filename']), true); if (is_array($body) && isset($body['message'])) { $message = 'Nextend Social Login Pro Addon: ' . $body['message']; if (isset($body['code']) && $body['code'] == 'license_invalid' && NextendSocialLogin::hasLicense()) { NextendSocialLogin::$settings->update(array( 'license_key' => '' )); $message .= ' - the stored license key has been removed!'; } Notices::addError($message); return new WP_Error('error', $message); } } } return $response; } public static function injectUpdate($transient) { if (is_object($transient)) { if (!class_exists('NextendSocialLoginPRO', false)) { return $transient; } $filename = "nextend-social-login-pro/nextend-social-login-pro.php"; if (!isset($transient->response[$filename])) { try { $item = (object)NextendSocialLoginAdmin::apiCall('plugin_information', array('slug' => 'nextend-social-login-pro')); } catch (Exception $e) { $item = new WP_Error('error', $e->getMessage()); } if (!is_wp_error($item)) { $item->plugin = 'nextend-social-login-pro/nextend-social-login-pro.php'; if (version_compare(NextendSocialLoginPRO::$version, $item->new_version, '<')) { $transient->response[$filename] = (object)$item; unset($transient->no_update[$filename]); } else { $transient->no_update[$filename] = (object)$item; unset($transient->response[$filename]); } } } } return $transient; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
images
DIR
-
drwxr-xr-x
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
templates
DIR
-
drwxr-xr-x
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
templates-provider
DIR
-
drwxr-xr-x
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
admin.php
45.63 KB
lrw-r--r--
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
EditUser.php
2.00 KB
lrw-r--r--
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
interim.php
1.18 KB
lrw-r--r--
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
notice.php
3.63 KB
lrw-r--r--
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style.css
11.50 KB
lrw-r--r--
2025-05-19 13:47:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
upgrader.php
3.53 KB
lrw-r--r--
2025-05-19 13:47:07
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).