Skip to content
Open
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
10 changes: 5 additions & 5 deletions Sources/RequirementsCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Load extentions we need
*/
if (!extension_loaded("sockets")) {
if ('OS_WINDOWS') {
if (stristr(PHP_OS, 'WIN')) {
if (!dl("php_sockets.dll")) {
die("Loading php_sockets.dll failed. Sockets extention required to run this bot");
}
Expand All @@ -60,7 +60,7 @@
}
}
if (!extension_loaded("mysqli")) {
if ('OS_WINDOWS') {
if (stristr(PHP_OS, 'WIN')) {
if (!dl("php_mysqli.dll")) {
die("Loading php_mysqli.dll failed. MySQLi extention required to run this bot");
}
Expand All @@ -71,7 +71,7 @@
}
}
if (!extension_loaded("mbstring")) {
if ('OS_WINDOWS') {
if (stristr(PHP_OS, 'WIN')) {
if (!dl("php_mbstring.dll")) {
die("Loading php_mbstring.dll failed. MbString extention required to run this bot");
}
Expand All @@ -82,7 +82,7 @@
}
}
if (!extension_loaded("bcmath")) {
if ('OS_WINDOWS') {
if (stristr(PHP_OS, 'WIN')) {
if (!dl("php_bcmath.dll")) {
die("Loading php_bcmath.dll failed. BcMath extention required to run this bot");
}
Expand All @@ -107,7 +107,7 @@
}
// Check if we have curl available
if (!extension_loaded("curl")) {
if ('OS_WINDOWS') {
if (stristr(PHP_OS, 'WIN')) {
if (@!dl("php_curl.dll")) {
echo "Curl not available\n";
} else {
Expand Down