X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fproxy_check.php;h=61995fea42d952850c96c4e0b5a5c2d56b820852;hb=b63ea56e49373afaf3faa486229a71785ba917bc;hp=0b33e1253d6e3d4b1142a54ce659bce7896e9291;hpb=90155b8a9719ada6522a320a3315b4e698fdd970;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/proxy_check.php b/includes/proxy_check.php index 0b33e1253d..61995fea42 100644 --- a/includes/proxy_check.php +++ b/includes/proxy_check.php @@ -3,6 +3,10 @@ * Command line script to check for an open proxy at a specified location */ +if( php_sapi_name() != 'cli' ) { + die( 1 ); +} + /** * */ @@ -46,5 +50,3 @@ if ( ( isset( $_REQUEST ) && array_key_exists( 'argv', $_REQUEST ) ) || count( $ $output = escapeshellarg( $output ); #`echo $output >> /home/tstarling/open/proxy.log`; - -?>