Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reflect2.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function stringToHTML($string)
}

// GD check
if (extension_loaded('gd') == false && !dl('gd.so'))
if (extension_loaded('gd') == false)
{
echo 'You are missing the GD extension for PHP, sorry but I cannot continue.';
exit();
Expand Down
4 changes: 2 additions & 2 deletions reflect3.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

// GD check
if (extension_loaded('gd') == false && !dl('gd.so'))
if (extension_loaded('gd') == false)
{
echo 'You are missing the GD extension for PHP, sorry but I cannot continue.';
exit();
Expand All @@ -43,7 +43,7 @@
exit();
}

if (ereg_replace('[[:alpha:][:space:]()]+', '', $gd_info['GD Version']) < '2.0.1')
if (preg_replace('[[:alpha:][:space:]()]+', '', $gd_info['GD Version']) < '2.0.1')
{
echo 'GD library is too old. Version 2.0.1 or later is required, and 2.0.28 is strongly recommended.';
exit();
Expand Down