Fix r79109: listTables() does not work without a prefix, and verified that SQLite...
[lhc/web/wiklou.git] / includes / proxy_check.php
index 0b33e12..2bc46c0 100644 (file)
@@ -1,8 +1,14 @@
 <?php
 /**
  * Command line script to check for an open proxy at a specified location
+ *
+ * @file
  */
 
+if( php_sapi_name() != 'cli' ) {
+       die( 1 );
+}
+
 /**
  *
  */
@@ -46,5 +52,3 @@ if ( ( isset( $_REQUEST ) && array_key_exists( 'argv', $_REQUEST ) ) || count( $
 $output = escapeshellarg( $output );
 
 #`echo $output >> /home/tstarling/open/proxy.log`;
-
-?>