(@$_POST["answer"]), 'otherplugin' => (@$_POST["opinfo"]), 'otherinfo' => (@$_POST["oinfo"]), 'plugin' => ($cpabcal_plugin_data['Name']), 'pluginv' => ($cpabcal_plugin_version), 'wordpress' => (get_bloginfo( 'version' )), 'itime' => ($time), 'phpversion' => (phpversion ()) ); if (@$_POST["onymous"] == 'false') // send this data only if explicitly accepted { $current_user = wp_get_current_user(); $data['email'] = ($current_user->user_email); $data['website'] = ($_SERVER['HTTP_HOST']); $data['url'] = (get_site_url()); // for detecting theme and plugin conflicts: $data['theme'] = (wp_get_theme()->get('Name') . " " .wp_get_theme()->get('Version')); $plist = ""; $activeplugins = get_option('active_plugins'); $plugins = get_plugins(); foreach ($activeplugins as $plugin) $plist .= $plugins[$plugin]["Title"]." ".$plugins[$plugin]["Version"]."\n"; $data['plugins'] = ($plist); } //extract data from the post //set POST variables $url = 'https://wordpress.dwbooster.com/licensesystem/debug-data.php'; $fields = $data; wp_remote_post( $url, array ( 'body' => $fields ) ); wp_die(); // this is required to terminate immediately and return a proper response } function cpabcal_feedback_javascript() { global $cpabcal_plugslug, $cpabcal_supportlink, $cpabcal_supportlink_full; ?>