Plugin Directory

Changeset 1722845


Ignore:
Timestamp:
08/31/2017 06:10:35 PM (8 years ago)
Author:
Stefan M.
Message:

4.3.0

  • [Bugfix] PHP 7.1.8 Compatibility archived
Location:
custom-tables/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • custom-tables/trunk/custom-tables.php

    r1685146 r1722845  
    44   Plugin URI: http://blog.murawski.ch/2011/08/custom-tables-wordpress-plugin/
    55   Description: Create Tables and show on a page/article. Usable for all kind of diffrent databases.
    6    Version: 4.2.0
     6   Version: 4.3.0
    77   Author: Web Updates KMU
    88   Author URI: http://wuk.ch/
     
    2727*/
    2828
    29 define('WCT_VERSION', '4.2.0'); 
     29define('WCT_VERSION', '4.3.0'); 
    3030define('WCT_DBVERSION', '2016101601');   
    3131
     
    474474
    475475        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)); }
    477477            else { $filtermd = ''; }
    478478            return $filtermd;
  • custom-tables/trunk/pages/show_table.php

    r1553910 r1722845  
    519519                        }
    520520                        /* 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);
    522533                       
    523534                        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  
    115115
    116116== Changelog ==
     117
     118= 4.3.0 =
     119* [Bugfix] PHP 7.1.8 Compatibility archived
    117120
    118121= 4.2.0 =
Note: See TracChangeset for help on using the changeset viewer.