Changeset 1722845
- Timestamp:
- 08/31/2017 06:10:35 PM (8 years ago)
- Location:
- custom-tables/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
custom-tables/trunk/custom-tables.php
r1685146 r1722845 4 4 Plugin URI: http://blog.murawski.ch/2011/08/custom-tables-wordpress-plugin/ 5 5 Description: Create Tables and show on a page/article. Usable for all kind of diffrent databases. 6 Version: 4. 2.06 Version: 4.3.0 7 7 Author: Web Updates KMU 8 8 Author URI: http://wuk.ch/ … … 27 27 */ 28 28 29 define('WCT_VERSION', '4. 2.0');29 define('WCT_VERSION', '4.3.0'); 30 30 define('WCT_DBVERSION', '2016101601'); 31 31 … … 474 474 475 475 function filtermd($filter) { 476 if ($filter != '') { $filtermd = eregi_replace("[^0-9a-zA-Z]","",md5($filter)); }476 if ($filter != '') { $filtermd = preg_replace("/[^0-9a-zA-Z]/i","",md5($filter)); } 477 477 else { $filtermd = ''; } 478 478 return $filtermd; -
custom-tables/trunk/pages/show_table.php
r1553910 r1722845 519 519 } 520 520 /* replace all {fields} with content, including relations */ // stripslashes(\$row->$2$1) 521 $tmp = stripslashes(preg_replace("/\{([0-9]*)\.*(.*?)\}/e","(\$row->$2$1_de == '' ? stripslashes(\$row->$2$1) : stripslashes(\$row->$2$1_de) )",$tmp)); 521 global $rowtmp; 522 $rowtmp = $row; 523 $tmp = stripslashes( 524 //preg_replace("/\{([0-9]*)\.*(.*?)\}/e","(\$row->$2$1_de == '' ? stripslashes(\$row->$2$1) : stripslashes(\$row->$2$1_de) )",$tmp) 525 preg_replace_callback("/\{([0-9]*)\.*(.*?)\}/", function($m) { 526 global $rowtmp; 527 $tmp1 = $m[2].$m[1]."_de"; 528 $tmp2 = $m[2].$m[1]; 529 return ($rowtmp->$tmp1 == '' ? stripslashes($rowtmp->$tmp2) : stripslashes($rowtmp->$tmp1) ); 530 }, $tmp) 531 ); 532 unset($rowtmp); 522 533 523 534 if ($table->overlay == '1' AND strpos($inhalt,"[wctoverlay]") !== FALSE) { $tmp = str_replace("[wctoverlay]","[wctoverlay id=\"".$row->id."\" color=\"".$color."\" cache=\"".$cache."\"]",$tmp); } -
custom-tables/trunk/readme.txt
r1685146 r1722845 115 115 116 116 == Changelog == 117 118 = 4.3.0 = 119 * [Bugfix] PHP 7.1.8 Compatibility archived 117 120 118 121 = 4.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.