The Minishowcase PHP application has not been updated since 2009. Consequently, some functions have been superseded and no longer run on all servers (e.g.: ereg_replace() and split()).

The following updates are from http://iwanmadan.com/minishowcase-patch-for-php-5-3/.

Edit these files in this order. After each edit, upload the file and test the Minishowcase app. The first two of the following edits may be all that is necessary:

  1. /libraries/general.init.php

    Replace from line 96 - 100:

    $gd['num'] = ereg_replace('[[:alpha:][:space:]()]+','',$gda['GD Version']);
    $gd['freetype'] = $gda["FreeType Support"];
    $gd['gif_read'] = $gda["GIF Read Support"];
    "GIF Create Support"];
    $gd['jpg'] = $gda["JPG Support"];

    with:

    //$gd['num'] = ereg_replace('[[:alpha:][:space:]()]+','',$gda['GD Version']);
    preg_match('/\d/', $gda['GD Version'], $match);
    $gd['num'] = $match[0];
    $gd['freetype'] = $gda["FreeType Support"];
    $gd['gif_read'] = $gda["GIF Read Support"];
    $gd['gif_make'] = $gda["GIF Create Support"];
    //$gd['jpg'] = $gda["JPG Support"];
    $gd['jpg'] = $gda["JPEG Support"];

  2. /libraries/thumb.display.php

    Replace line 204:

    $current_gallery = array_pop(split("/", dirname($img)));

    with:

    //$current_gallery = array_pop(split("/", dirname($img)));
    $current_gallery = array_pop(explode("/", dirname($img)));

  3. /libraries/general.functions.php

    Replace from line 57-59:

    $query = split($query_divider,$query);
    foreach ($query as $val) {
    $val_split = split("=",$val);

    with:

    //$query = split($query_divider,$query);
    $query = explode($query_divider,$query);
    foreach ($query as $val) {
    //$val_split = split("=",$val);
    $val_split = explode("=",$val);

  4. /libraries/ajax.gateway.php

    Replace line 250:

    $image_path_array = split("/",$img);

    with:

    //$image_path_array = split("/",$img);
    $image_path_array = explode("/",$img);