You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
459 B
12 lines
459 B
8 years ago
|
<?php
|
||
|
|
||
|
$ipPrefix = '192.192.15.'; // change to '' if you want to allow request to be sent to every possible ip
|
||
|
|
||
|
$ip = '192.192.15.51';
|
||
|
if (isset($_GET['ip']) && filter_var($ipPrefix . $_GET['ip'], FILTER_VALIDATE_IP)) {
|
||
|
$ip = $ipPrefix . $_GET['ip'];
|
||
|
}
|
||
|
|
||
|
$unitId = isset($_GET['unitid']) ? (int)$_GET['unitid'] : 0;
|
||
|
$reference = isset($_GET['reference']) ? (int)$_GET['reference'] : 12288;
|
||
|
$quantity = isset($_GET['quantity']) ? (int)$_GET['quantity'] : 6;
|