dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* (bug 4298) Include rc_id on enhanced RC singleton diff links for patrolling
[lhc/web/wiklou.git]
/
includes
/
proxy_check.php
diff --git
a/includes/proxy_check.php
b/includes/proxy_check.php
index
1ed54c8
..
583e8fd
100644
(file)
--- a/
includes/proxy_check.php
+++ b/
includes/proxy_check.php
@@
-1,15
+1,27
@@
<?php
<?php
+/**
+ * Command line script to check for an open proxy at a specified location
+ * @package MediaWiki
+ */
-# Command line script to check for an open proxy at a specified location
-
-# Exit if there are not enough parameters, or if it's not command line mode
+if( php_sapi_name() != 'cli' ) {
+ die('');
+}
+/**
+ *
+ */
$output = '';
$output = '';
+
+/**
+ * Exit if there are not enough parameters, or if it's not command line mode
+ */
if ( ( isset( $_REQUEST ) && array_key_exists( 'argv', $_REQUEST ) ) || count( $argv ) < 4 ) {
$output .= "Incorrect parameters\n";
} else {
if ( ( isset( $_REQUEST ) && array_key_exists( 'argv', $_REQUEST ) ) || count( $argv ) < 4 ) {
$output .= "Incorrect parameters\n";
} else {
-
- # Get parameters
+ /**
+ * Get parameters
+ */
$ip = $argv[1];
$port = $argv[2];
$url = $argv[3];
$ip = $argv[1];
$port = $argv[2];
$url = $argv[3];