Changeset 1968557
- Timestamp:
- 11/04/2018 02:37:39 PM (7 years ago)
- Location:
- tradetracker-store
- Files:
-
- 71 added
- 6 edited
-
tags/4.6.45 (added)
-
tags/4.6.45/Tradetracker-Store.php (added)
-
tags/4.6.45/cache (added)
-
tags/4.6.45/debug.php (added)
-
tags/4.6.45/front.php (added)
-
tags/4.6.45/functions.php (added)
-
tags/4.6.45/images (added)
-
tags/4.6.45/images/No_image.png (added)
-
tags/4.6.45/images/ajax-loader.gif (added)
-
tags/4.6.45/images/more.png (added)
-
tags/4.6.45/import (added)
-
tags/4.6.45/import/database.php (added)
-
tags/4.6.45/import/xml.php (added)
-
tags/4.6.45/import/xmlsplit.php (added)
-
tags/4.6.45/js (added)
-
tags/4.6.45/js/expand.js (added)
-
tags/4.6.45/menu (added)
-
tags/4.6.45/menu/expand.js (added)
-
tags/4.6.45/menu/faq.php (added)
-
tags/4.6.45/menu/images (added)
-
tags/4.6.45/menu/images/Premium-addons.png (added)
-
tags/4.6.45/menu/images/add-edit-stores.png (added)
-
tags/4.6.45/menu/images/debug.png (added)
-
tags/4.6.45/menu/images/enhanced-distribution.png (added)
-
tags/4.6.45/menu/images/item-selection.png (added)
-
tags/4.6.45/menu/images/kruisje.png (added)
-
tags/4.6.45/menu/images/layout-settings.png (added)
-
tags/4.6.45/menu/images/more.png (added)
-
tags/4.6.45/menu/images/overlay.png (added)
-
tags/4.6.45/menu/images/product-page.png (added)
-
tags/4.6.45/menu/images/screenshot-1.png (added)
-
tags/4.6.45/menu/images/tb-close.png (added)
-
tags/4.6.45/menu/images/vinkje.png (added)
-
tags/4.6.45/menu/images/xml-feed-options.png (added)
-
tags/4.6.45/menu/itemselect.php (added)
-
tags/4.6.45/menu/layout.php (added)
-
tags/4.6.45/menu/main.js (added)
-
tags/4.6.45/menu/menu.css (added)
-
tags/4.6.45/menu/menu.php (added)
-
tags/4.6.45/menu/news.php (added)
-
tags/4.6.45/menu/pluginsettings.php (added)
-
tags/4.6.45/menu/premium.php (added)
-
tags/4.6.45/menu/releaselog.php (added)
-
tags/4.6.45/menu/search.php (added)
-
tags/4.6.45/menu/showlayout.php (added)
-
tags/4.6.45/menu/store.php (added)
-
tags/4.6.45/menu/style.css (added)
-
tags/4.6.45/menu/xmlfeed.php (added)
-
tags/4.6.45/menu/xmloption.php (added)
-
tags/4.6.45/readme.txt (added)
-
tags/4.6.45/screenshot-1.png (added)
-
tags/4.6.45/screenshot-2.png (added)
-
tags/4.6.45/screenshot-3.png (added)
-
tags/4.6.45/splits (added)
-
tags/4.6.45/tinymce (added)
-
tags/4.6.45/tinymce/cart.png (added)
-
tags/4.6.45/tinymce/test.js (added)
-
tags/4.6.45/tinymce/tinyTT.php (added)
-
tags/4.6.45/tinymce/tinymce.php (added)
-
tags/4.6.45/tinymce/ttmce.js (added)
-
tags/4.6.45/translation (added)
-
tags/4.6.45/translation/default.mo (added)
-
tags/4.6.45/translation/default.po (added)
-
tags/4.6.45/translation/tradetracker-store-nl_NL.mo (added)
-
tags/4.6.45/translation/tradetracker-store-nl_NL.po (added)
-
tags/4.6.45/translation/ttstore-nl_NL.mo (added)
-
tags/4.6.45/translation/ttstore-nl_NL.po (added)
-
tags/4.6.45/uninstall.php (added)
-
tags/4.6.45/upgrading.php (added)
-
tags/4.6.45/widget (added)
-
tags/4.6.45/widget/widget.php (added)
-
trunk/Tradetracker-Store.php (modified) (1 diff)
-
trunk/debug.php (modified) (3 diffs)
-
trunk/functions.php (modified) (2 diffs)
-
trunk/import/xmlsplit.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widget/widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tradetracker-store/trunk/Tradetracker-Store.php
r1832272 r1968557 3 3 * Plugin Name: Tradetracker-Store 4 4 * Plugin URI: http://wpaffiliatefeed.com 5 * Version: 4.6.4 45 * Version: 4.6.45 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/debug.php
r1832272 r1968557 82 82 _e('Needed to write XML to database', 'tradetracker-store'); 83 83 echo "</strong><br>"; 84 if (!extension_loaded('simplexml')) { 85 if (!dl('simplexml.so')) { 84 85 if (extension_loaded('simplexml')) { 86 _e('Simplexml installed:', 'tradetracker-store'); 87 echo " "; 88 _e('Yes', 'tradetracker-store'); 89 echo "<br>"; 90 }else{ 86 91 echo "<font color=red>"; 87 92 _e('Simplexml installed:', 'tradetracker-store'); … … 89 94 _e('No', 'tradetracker-store'); 90 95 echo "</font><br>"; 91 } else {92 _e('Simplexml installed:', 'tradetracker-store');93 echo " ";94 _e('Yes', 'tradetracker-store');95 echo "<br>";96 }97 } else {98 _e('Simplexml installed:', 'tradetracker-store');99 echo " ";100 _e('Yes', 'tradetracker-store');101 echo "<br>";102 96 } 103 97 global $head_footer_errors; … … 279 273 280 274 if (!extension_loaded('simplexml')) { 281 if (!dl('simplexml.so')) { 282 $tterror="yes"; 283 } 275 $tterror="yes"; 284 276 } 285 277 if(!empty($head_footer_errors)){ -
tradetracker-store/trunk/functions.php
r1832272 r1968557 248 248 { 249 249 // # Quotes cleanup 250 $str = ereg_replace( chr(ord("`")), "'", $str ); // # `251 $str = ereg_replace( chr(ord("´")), "'", $str ); // # ´252 $str = ereg_replace( chr(ord("")), ",", $str ); // # 253 $str = ereg_replace( chr(ord("`")), "'", $str ); // # `254 $str = ereg_replace( chr(ord("´")), "'", $str ); // # ´255 $str = ereg_replace( chr(ord("")), "\"", $str ); // # 256 $str = ereg_replace( chr(ord("")), "\"", $str ); // # 257 $str = ereg_replace( chr(ord("´")), "'", $str ); // # ´258 259 $unwanted_array = array( ' '=>'S', ''=>'s', ''=>'Z', ''=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E',250 $str = preg_replace( chr(ord("`")), "'", $str ); // # ` 251 $str = preg_replace( chr(ord("´")), "'", $str ); // # ´ 252 $str = preg_replace( chr(ord("„")), ",", $str ); // # „ 253 $str = preg_replace( chr(ord("`")), "'", $str ); // # ` 254 $str = preg_replace( chr(ord("´")), "'", $str ); // # ´ 255 $str = preg_replace( chr(ord("“")), "\"", $str ); // # “ 256 $str = preg_replace( chr(ord("”")), "\"", $str ); // # ” 257 $str = preg_replace( chr(ord("´")), "'", $str ); // # ´ 258 259 $unwanted_array = array( 'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', 260 260 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 261 261 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', … … 265 265 266 266 // # Bullets, dashes, and trademarks 267 $str = ereg_replace( chr(149), "•", $str ); // # bullet 268 $str = ereg_replace( chr(150), "–", $str ); // # en dash269 $str = ereg_replace( chr(151), "—", $str ); // # em dash270 $str = ereg_replace( chr(153), "™", $str ); // # trademark271 $str = ereg_replace( chr(169), "©", $str ); // # copyright mark272 $str = ereg_replace( chr(174), "®", $str ); // # registration mark267 $str = preg_replace( chr(149), "•", $str ); // # bullet • 268 $str = preg_replace( chr(150), "–", $str ); // # en dash 269 $str = preg_replace( chr(151), "—", $str ); // # em dash 270 $str = preg_replace( chr(153), "™", $str ); // # trademark 271 $str = preg_replace( chr(169), "©", $str ); // # copyright mark 272 $str = preg_replace( chr(174), "®", $str ); // # registration mark 273 273 274 274 return $str; -
tradetracker-store/trunk/import/xmlsplit.php
r1832272 r1968557 46 46 if ($handle) { 47 47 while (!feof($handle)) { 48 $buffer = stream_get_line($handle, 100000 , "</product>");48 $buffer = stream_get_line($handle, 1000000, "</product>"); 49 49 $recordnum++; 50 50 $processed++; … … 176 176 fwrite($exportfile, "</product>"); 177 177 } 178 if ($recordnum> $chunksize) {178 if ($recordnum>=$chunksize) { 179 179 fwrite($exportfile, "</$xmldatadelimiter>"); 180 180 $recordnum=0; … … 193 193 } 194 194 } 195 ?> -
tradetracker-store/trunk/readme.txt
r1832272 r1968557 4 4 Tags: tradetracker, store, productfeed, affiliate, daisycon, zanox, cleafs, tradedoubler, paidonresults, M4N, xml productfeed 5 5 Requires at least: 4 6 Tested up to: 4.9. 47 Stable tag: 4.6.4 46 Tested up to: 4.9.8 7 Stable tag: 4.6.45 8 8 9 9 A plugin that lets you import an XML productfeed from TradeTracker. … … 42 42 43 43 == Changelog == 44 = 4.6.45 = 45 - Small adjustment for PHP 7.1 46 - Adjustment made in XMLsplit for tradetracker feeds with too much categories 47 44 48 = 4.6.44 = 45 49 - Small adjustment for tradetracker feeds to import images -
tradetracker-store/trunk/widget/widget.php
r1319488 r1968557 76 76 77 77 // End class store_widget 78 78 function store_widget() { 79 register_widget( 'store_widget' ); 80 } 79 81 add_action('widgets_init', create_function('', 'return register_widget("store_widget");')); 80 82 ?>
Note: See TracChangeset
for help on using the changeset viewer.