Skip to content

Commit

Permalink
added curl extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
instanttim committed Jan 21, 2017
1 parent 6e589cf commit c7a0948
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Data Stream Relay/monitormate.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
$required_arguments = 2;
$debug = FALSE;

if (!extension_loaded('curl')) {
exit("This script requires PHP to have the CURL extension loaded.");
}

for ($i = 1; $i < $argc; $i = $i + 2 ) {
switch ($argv[$i]) {
case '-a':
Expand Down

0 comments on commit c7a0948

Please sign in to comment.