Skip to content

Commit

Permalink
Support PHP 5.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpenguin committed Apr 28, 2014
1 parent aad2e4e commit 3b62eed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.php
Expand Up @@ -50,15 +50,15 @@
# SSL # SSL


$sslx = false; $sslx = false;
if ( function_exists('curl_init') && !eregi('curl_init', $disabled_functions) && $curl_version = curl_version()) if ( function_exists('curl_init') && !preg_match('/curl_init/i', $disabled_functions) && $curl_version = curl_version())
{ {
if (eregi('openssl', @$curl_version['ssl_version'] )) if (preg_match('/(securetransport|openssl)/i', @$curl_version['ssl_version'] ))
{ {
$sslx = true; $sslx = true;
} }
} else { } else {
if ( phpversion() >= '4.3.0' && function_exists("fsockopen") && if ( phpversion() >= '4.3.0' && function_exists("fsockopen") &&
!eregi('fsockopen', $disabled_functions) && function_exists("openssl_public_decrypt")) !preg_match('/fsockopen/i', $disabled_functions) && function_exists("openssl_public_decrypt"))
$sslx = true; $sslx = true;
} }


Expand Down Expand Up @@ -89,7 +89,7 @@


############################################################### ###############################################################
# MYSQL # MYSQL
if(is_callable("mysql_connect") && is_callable("mysql_get_client_info") && mysql_get_client_info() >= 4) if(is_callable("mysql_connect"))
{ {
$mysql['font'] = "FFFFFF"; $mysql['font'] = "FFFFFF";
$mysql['back'] = "009900"; $mysql['back'] = "009900";
Expand Down

0 comments on commit 3b62eed

Please sign in to comment.