Changeset 1455530
- Timestamp:
- 07/15/2016 07:26:00 PM (10 years ago)
- Location:
- tradetracker-store
- Files:
-
- 69 added
- 3 edited
-
tags/4.6.30 (added)
-
tags/4.6.30/Tradetracker-Store.php (added)
-
tags/4.6.30/cache (added)
-
tags/4.6.30/debug.php (added)
-
tags/4.6.30/front.php (added)
-
tags/4.6.30/functions.php (added)
-
tags/4.6.30/images (added)
-
tags/4.6.30/images/No_image.png (added)
-
tags/4.6.30/images/Thumbs.db (added)
-
tags/4.6.30/images/ajax-loader.gif (added)
-
tags/4.6.30/images/more.png (added)
-
tags/4.6.30/import (added)
-
tags/4.6.30/import/database.php (added)
-
tags/4.6.30/import/xml.php (added)
-
tags/4.6.30/import/xmlsplit.php (added)
-
tags/4.6.30/js (added)
-
tags/4.6.30/js/expand.js (added)
-
tags/4.6.30/menu (added)
-
tags/4.6.30/menu/expand.js (added)
-
tags/4.6.30/menu/faq.php (added)
-
tags/4.6.30/menu/images (added)
-
tags/4.6.30/menu/images/Premium-addons.png (added)
-
tags/4.6.30/menu/images/add-edit-stores.png (added)
-
tags/4.6.30/menu/images/debug.png (added)
-
tags/4.6.30/menu/images/enhanced-distribution.png (added)
-
tags/4.6.30/menu/images/item-selection.png (added)
-
tags/4.6.30/menu/images/kruisje.png (added)
-
tags/4.6.30/menu/images/layout-settings.png (added)
-
tags/4.6.30/menu/images/overlay.png (added)
-
tags/4.6.30/menu/images/product-page.png (added)
-
tags/4.6.30/menu/images/screenshot-1.png (added)
-
tags/4.6.30/menu/images/tb-close.png (added)
-
tags/4.6.30/menu/images/vinkje.png (added)
-
tags/4.6.30/menu/images/xml-feed-options.png (added)
-
tags/4.6.30/menu/itemselect.php (added)
-
tags/4.6.30/menu/layout.php (added)
-
tags/4.6.30/menu/main.js (added)
-
tags/4.6.30/menu/menu.css (added)
-
tags/4.6.30/menu/menu.php (added)
-
tags/4.6.30/menu/news.php (added)
-
tags/4.6.30/menu/pluginsettings.php (added)
-
tags/4.6.30/menu/premium.php (added)
-
tags/4.6.30/menu/releaselog.php (added)
-
tags/4.6.30/menu/search.php (added)
-
tags/4.6.30/menu/showlayout.php (added)
-
tags/4.6.30/menu/store.php (added)
-
tags/4.6.30/menu/style.css (added)
-
tags/4.6.30/menu/xmlfeed.php (added)
-
tags/4.6.30/menu/xmloption.php (added)
-
tags/4.6.30/readme.txt (added)
-
tags/4.6.30/screenshot-1.png (added)
-
tags/4.6.30/screenshot-2.png (added)
-
tags/4.6.30/screenshot-3.png (added)
-
tags/4.6.30/splits (added)
-
tags/4.6.30/tinymce (added)
-
tags/4.6.30/tinymce/cart.png (added)
-
tags/4.6.30/tinymce/test.js (added)
-
tags/4.6.30/tinymce/tinyTT.php (added)
-
tags/4.6.30/tinymce/tinymce.php (added)
-
tags/4.6.30/tinymce/ttmce.js (added)
-
tags/4.6.30/translation (added)
-
tags/4.6.30/translation/default.mo (added)
-
tags/4.6.30/translation/default.po (added)
-
tags/4.6.30/translation/tradetracker-store-nl_NL.mo (added)
-
tags/4.6.30/translation/tradetracker-store-nl_NL.po (added)
-
tags/4.6.30/uninstall.php (added)
-
tags/4.6.30/upgrading.php (added)
-
tags/4.6.30/widget (added)
-
tags/4.6.30/widget/widget.php (added)
-
trunk/Tradetracker-Store.php (modified) (1 diff)
-
trunk/menu/xmlfeed.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tradetracker-store/trunk/Tradetracker-Store.php
r1447808 r1455530 3 3 * Plugin Name: Tradetracker-Store 4 4 * Plugin URI: http://wpaffiliatefeed.com 5 * Version: 4.6. 295 * Version: 4.6.30 6 6 * Description: A Plugin that will add a TradeTracker affiliate feed to your site with several options to choose from. 7 7 * Author: Robert Braam -
tradetracker-store/trunk/menu/xmlfeed.php
r1319488 r1455530 28 28 $xmlfeed=$wpdb->get_row("SELECT xmlfeed, xmlname, xmlprovider, id FROM ".$ttstorexmltable." where id=".$_GET['test']." order by xmlname"); 29 29 $xmlfile = $xmlfeed->xmlfeed; 30 $xmlstring = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";31 $xmlstring.=''."\n";32 $xmlstring.="<$xmldatadelimiter>\n";33 $newfile = "splits/".$basefilename."-".$filenum.".xml";34 $exportfile = fopen($folderhome."/$newfile","w");35 30 if (get_option('Tradetracker_importtool')=="1"){ 36 31 $handle = fopen($xmlfile,"r"); … … 38 33 $ch = curl_init($xmlfile); 39 34 $fp = fopen($folderhome."/cache/cache.xml", "w"); 35 curl_setopt($ch, CURLOPT_VERBOSE, true); 40 36 curl_setopt($ch, CURLOPT_HEADER, 0); 37 curl_setopt($ch, CURLOPT_ENCODING, "identity"); 38 $verbose = fopen('php://temp', 'w+'); 39 curl_setopt($ch, CURLOPT_STDERR, $verbose); 41 40 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 42 41 $data = curl_exec($ch); 42 $error = curl_error($ch); 43 43 curl_close($ch); 44 44 fwrite($fp, $data); 45 45 fclose($fp); 46 rewind($verbose); 47 $verboseLog = stream_get_contents($verbose); 48 49 $server = "Verbose information:\n<pre>" .htmlspecialchars($verboseLog). "</pre>\n"; 46 50 $handle = fopen($folderhome."/cache/cache.xml","r"); 47 51 } else if (get_option('Tradetracker_importtool')=="3") { 48 52 $ch = curl_init($xmlfile); 49 53 $fp = fopen($folderhome."/cache/cache.xml", "w"); 54 curl_setopt($ch, CURLOPT_VERBOSE, true); 50 55 curl_setopt($ch, CURLOPT_HEADER, 0); 51 56 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 57 curl_setopt($ch, CURLOPT_ENCODING, "identity"); 52 58 curl_setopt($ch, CURLOPT_FILE, $fp); 59 $verbose = fopen('php://temp', 'w+'); 60 curl_setopt($ch, CURLOPT_STDERR, $verbose); 53 61 curl_exec($ch); 62 $error = curl_error($ch); 54 63 curl_close($ch); 55 64 fclose($fp); 65 rewind($verbose); 66 $verboseLog = stream_get_contents($verbose); 67 68 $server = "Verbose information:\n<pre>" .htmlspecialchars($verboseLog). "</pre>\n"; 56 69 $handle = fopen($folderhome."/cache/cache.xml","r"); 57 70 } … … 62 75 echo "<br><strong>XMLlink:</strong> ".$xmlfile; 63 76 echo "<br><strong>XMLname:</strong> ".$xmlfeed->xmlname; 77 if(isset($server)){ 78 echo "<br><strong>Server message:</strong> ".$server; 79 } 80 if(isset($error)){ 81 echo "<br><strong>Possible error:</strong> ".$error; 82 } 83 echo "<pre>"; 84 print_r(error_get_last()); 85 print_r(curl_getinfo($handle)); 86 echo "</pre>"; 64 87 echo "<br><strong>Showing first 10.000 characters from the feed:</strong>"; 65 88 echo "<br>"; -
tradetracker-store/trunk/readme.txt
r1447808 r1455530 5 5 Requires at least: 4 6 6 Tested up to: 4.4 7 Stable tag: 4.6. 297 Stable tag: 4.6.30 8 8 9 9 A plugin that lets you import an XML productfeed from TradeTracker. … … 42 42 43 43 == Changelog == 44 = 4.6.30 = 45 - Testing an XML feed will give more information to see what information the server returns 46 44 47 = 4.6.29 = 45 48 - Small fix to make rel=nofollow also work when using lightbox
Note: See TracChangeset
for help on using the changeset viewer.