• I upload to my wordpress and in Plugins get this as the name of the plugin… I re-downloaded and uploaded to make sure it wasnt me, and it isnt

    version = ‘0.1’; $this->plugin_home_url = ‘https://www.wayner.org/wp&#8217;; $this->associate_id = get_option(‘linksharelflg_associate_id’); } function check_for_updates() { $request = “GET https://svn.wp-plugins.org/linkshare-link-lookup/trunks/latest-version.txt HTTP/1.1\n”; $request .= “Host: svn.wp-plugins.org\n”; $request .= “Referer: ” . $_SERVER[“SCRIPT_URI”] . “\n”; $request .= “Connection: close\n”; $request .= “\n”; $fp = fsockopen(“svn.wp-plugins.org”, 80); fputs($fp, $request); while(!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); $result = split(“\r\n”, $result); foreach($result as $k) { if(!strncmp($k, “Version: “, 9)) { $result = $k; break; } } $version = split(“: “, $k); $version = $version[1]; return $version; } function options_page() { if(isset($_POST[‘submitted’])) { update_option(‘wp_linkshare_token’, $_POST[‘linksharetoken’]); //get any new variables $this->wp_linkshare_link_lookup(); echo ” . __(‘Options saved.’, ‘linksharelflg’) . ”; } $this->linkShareToken=get_option(‘wp_linkshare_token’); $this->associate_id = get_option(‘linksharelflg_associate_id’); $var[$this->country] = “selected”; $formaction = $_SERVER[‘PHP_SELF’] . “?page=wp-linkshare-link-lookup/wp-linkshare-link-lookup.php”; // Check if there is a new version of WP-Amazon $version_synch_val = get_option(‘linksharelflg_check_version’); if ( empty($version_synch_val) ) add_option(‘linksharelflg_check_version’, ‘0’); if (get_option(‘linksharelflg_check_version’) check_for_updates(); update_option(‘linksharelflg_check_version’, time()); update_option(‘linksharelflg_latest_version’, $latest_version); } else { $latest_version = get_option(‘linksharelflg_latest_version’); } if ($this->version != $latest_version ) $update = “plugin_home_url\” style=\”color:red\”>Click here to get the latest update.”; // Start outputting XHMTL ?> <form name=”linksharelflg_options” method=”post” action=””> Use Just click on the red arrows on the top right of the write posts page. This opens a side bar that lets you search the LinkShare databases for commission paying links in two different ways. The first lets you convert a URL from the merchant’s site into a commission paying link. The second lets you search for items by keywords. LinkShare Token <input type=”text” size=”60″ name=”linksharetoken” value=””> Get your LinkShare token from here. version, $latest_version, $update); ?> <input type=”submit” name=”Submit” value=”” /> <!– You may need to uncomment out this script line –> agent = ‘WordPress/’ . $wp_version; $sno->read_timeout = 2; $reqURL=”https://feed.linksynergy.com/createcustomlink.shtml?token=&#8221;.$token.”&mid=”.$mid.”&murl=”.$proxy_url; // Send request to elevation server if( !$sno->fetchtext( $reqURL )) { die( “alert(‘Could not connect to lookup host.’)” ); } // Compose JavaScript for return die($sno->results); } // end of myplugin_axax_linkgenerator_lookup function function myplugin_ajax_linkfinder_lookup() { // read submitted information $mid=$_POST[‘mid’]; $keyword=$_POST[‘keyword’]; $token=get_option(‘wp_linkshare_token’); //$token=’458ef4b3c965e85e6342287195d652241a6d9232f522cae274898ed102a60964′; // Build Snoopy URL request require_once( ABSPATH . WPINC . ‘/class-snoopy.php’ ); $sno = new Snoopy(); $sno->agent = ‘WordPress/’ . $wp_version; $sno->read_timeout = 2; $reqURL=”https://feed.linksynergy.com/productsearch?t=1&token=&#8221;.$token.”&mid=”.$mid.”&keyword=”.$keyword; // Send request to elevation server if( !$sno->fetch( $reqURL )) { die( “alert(‘Could not connect to lookup host.’)” ); } header(“Content-type: text/xml”); // Compose JavaScript for return die($sno->results); } // end of myplugin_axax_linkfinder_lookup function function myplugin_js_admin_header() // this is a PHP function { // use JavaScript SACK library for Ajax wp_print_scripts( array( ‘sack’ )); // Define custom JavaScript function ?> //<![CDATA[ function myplugin_linkgenerator( ) { var mid=$(‘merchant’).value; var url=$(‘ls-url’).value; var mysack = new sack( “/wp-admin/admin-ajax.php” ); mysack.execute = 1; mysack.method = ‘POST’; mysack.setVar( “action”, “myplugin_linkgenerator_lookup” ); mysack.setVar( “mid”, mid ); mysack.setVar( “url”, url ); mysack.encVar( “cookie”, document.cookie, false ); mysack.onError = function() { alert(‘Ajax error in looking up LinkGenerator’ )}; mysack.runAJAX(); return true; } // end of JavaScript function myplugin_ajax_elevation function myplugin_linkgenerator( ) { var mid=$(‘merchant’).value; var url=$(‘ls-url’).value; var mysack = new sack( “/wp-admin/admin-ajax.php” ); mysack.execute = 1; mysack.method = ‘POST’; mysack.setVar( “action”, “myplugin_linkgenerator_lookup” ); mysack.setVar( “mid”, mid ); mysack.setVar( “url”, url ); mysack.encVar( “cookie”, document.cookie, false ); mysack.onError = function() { alert(‘Ajax error in looking up LinkFinder’ )}; mysack.runAJAX(); return true; } // end of JavaScript function myplugin_ajax_elevation //]]> ” title=”Visit plugin homepage”>LinkShare Link Lookup Version: 0.1.1 Plugin URI: https://www.wayner.org/wp/ Description: Use LinkShare’s LinkFinder and LinkGenerator services to pull up deals. Author: Rich Manalang and Peter Wayner Author URI: https://www.wayner.org/wp/ LinkShare Link Lookup Copyright (C) 2005-2007 Rich Manalang — Changes Copyright 2008 Peter Wayner Version 0.1 $Rev: 1 $ $Date: 2008-10-20 $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ class WP_LinkShare_Link_Lookup { var $version; var $country; var $associate_id; var $subscription_id; var $plugin_home_url; function wp_linkshare_link_lookup () { // load i18n translations load_plugin_textdomain(‘linkshare-link-lookup’); // initialize all the variables $this->version = ‘0.1’; $this->plugin_home_url = ‘https://www.wayner.org/wp&#8217;; $this->associate_id = get_option(‘linksharelflg_associate_id’); } function check_for_updates() { $request = “GET https://svn.wp-plugins.org/linkshare-link-lookup/trunks/latest-version.txt HTTP/1.1\n”; $request .= “Host: svn.wp-plugins.org\n”; $request .= “Referer: ” . $_SERVER[“SCRIPT_URI”] . “\n”; $request .= “Connection: close\n”; $request .= “\n”; $fp = fsockopen(“svn.wp-plugins.org”, 80); fputs($fp, $request); while(!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); $result = split(“\r\n”, $result); foreach($result as $k) { if(!strncmp($k, “Version: “, 9)) { $result = $k; break; } } $version = split(“: “, $k); $version = $version[1]; return $version; } function options_page() { if(isset($_POST[‘submitted’])) { update_option(‘wp_linkshare_token’, $_POST[‘linksharetoken’]); //get any new variables $this->wp_linkshare_link_lookup(); echo ” . __(‘Options saved.’, ‘linksharelflg’) . ”; } $this->linkShareToken=get_option(‘wp_linkshare_token’); $this->associate_id = get_option(‘linksharelflg_associate_id’); $var[$this->country] = “selected”; $formaction = $_SERVER[‘PHP_SELF’] . “?page=wp-linkshare-link-lookup/wp-linkshare-link-lookup.php”; // Check if there is a new version of WP-Amazon $version_synch_val = get_option(‘linksharelflg_check_version’); if ( empty($version_synch_val) ) add_option(‘linksharelflg_check_version’, ‘0’); if (get_option(‘linksharelflg_check_version’) check_for_updates(); update_option(‘linksharelflg_check_version’, time()); update_option(‘linksharelflg_latest_version’, $latest_version); } else { $latest_version = get_option(‘linksharelflg_latest_version’); } if ($this->version != $latest_version ) $update = “plugin_home_url\” style=\”color:red\”>Click here to get the latest update.”; // Start outputting XHMTL ?> <form name=”linksharelflg_options” method=”post” action=””> Use Just click on the red arrows on the top right of the write posts page. This opens a side bar that lets you search the LinkShare databases for commission paying links in two different ways. The first lets you convert a URL from the merchant’s site into a commission paying link. The second lets you search for items by keywords. LinkShare Token <input type=”text” size=”60″ name=”linksharetoken” value=””> Get your LinkShare token from here. version, $latest_version, $update); ?> <input type=”submit” name=”Submit” value=”” /> <!– You may need to uncomment out this script line –> agent = ‘WordPress/’ . $wp_version; $sno->read_timeout = 2; $reqURL=”https://feed.linksynergy.com/createcustomlink.shtml?token=&#8221;.$token.”&mid=”.$mid.”&murl=”.$proxy_url; // Send request to elevation server if( !$sno->fetchtext( $reqURL )) { die( “alert(‘Could not connect to lookup host.’)” ); } // Compose JavaScript for return die($sno->results); } // end of myplugin_axax_linkgenerator_lookup function function myplugin_ajax_linkfinder_lookup() { // read submitted information $mid=$_POST[‘mid’]; $keyword=$_POST[‘keyword’]; $token=get_option(‘wp_linkshare_token’); //$token=’458ef4b3c965e85e6342287195d652241a6d9232f522cae274898ed102a60964′; // Build Snoopy URL request require_once( ABSPATH . WPINC . ‘/class-snoopy.php’ ); $sno = new Snoopy(); $sno->agent = ‘WordPress/’ . $wp_version; $sno->read_timeout = 2; $reqURL=”https://feed.linksynergy.com/productsearch?t=1&token=&#8221;.$token.”&mid=”.$mid.”&keyword=”.$keyword; // Send request to elevation server if( !$sno->fetch( $reqURL )) { die( “alert(‘Could not connect to lookup host.’)” ); } header(“Content-type: text/xml”); // Compose JavaScript for return die($sno->results); } // end of myplugin_axax_linkfinder_lookup function function myplugin_js_admin_header() // this is a PHP function { // use JavaScript SACK library for Ajax wp_print_scripts( array( ‘sack’ )); // Define custom JavaScript function ?> //<![CDATA[ function myplugin_linkgenerator( ) { var mid=$(‘merchant’).value; var url=$(‘ls-url’).value; var mysack = new sack( “/wp-admin/admin-ajax.php” ); mysack.execute = 1; mysack.method = ‘POST’; mysack.setVar( “action”, “myplugin_linkgenerator_lookup” ); mysack.setVar( “mid”, mid ); mysack.setVar( “url”, url ); mysack.encVar( “cookie”, document.cookie, false ); mysack.onError = function() { alert(‘Ajax error in looking up LinkGenerator’ )}; mysack.runAJAX(); return true; } // end of JavaScript function myplugin_ajax_elevation function myplugin_linkgenerator( ) { var mid=$(‘merchant’).value; var url=$(‘ls-url’).value; var mysack = new sack( “/wp-admin/admin-ajax.php” ); mysack.execute = 1; mysack.method = ‘POST’; mysack.setVar( “action”, “myplugin_linkgenerator_lookup” ); mysack.setVar( “mid”, mid ); mysack.setVar( “url”, url ); mysack.encVar( “cookie”, document.cookie, false ); mysack.onError = function() { alert(‘Ajax error in looking up LinkFinder’ )}; mysack.runAJAX(); return true; } // end of JavaScript function myplugin_ajax_elevation //]]>

    https://www.ads-software.com/extend/plugins/linkshare-link-lookup/

  • The topic ‘[Plugin: LinkShare Link Lookup] Major error?’ is closed to new replies.