mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-27 02:20:32 +00:00
18 lines
221 B
PHP
18 lines
221 B
PHP
|
<?php
|
||
|
error_reporting(0);
|
||
|
$host = $_SERVER['REMOTE_ADDR'];
|
||
|
if (is_numeric($_GET['port'])){
|
||
|
$i = $_GET['port'];
|
||
|
$fp = fsockopen("$host",$i,$errno,$errstr,5);
|
||
|
if($fp){
|
||
|
echo 1;
|
||
|
fclose($fp);
|
||
|
}
|
||
|
else{
|
||
|
echo 0;
|
||
|
}
|
||
|
flush();
|
||
|
}
|
||
|
?>
|
||
|
|