Changeset 92 for trunk/add.php
- Timestamp:
- Apr 7, 2020, 11:53:58 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/add.php
r87 r92 12 12 // Try to load single value 13 13 $Time = time(); 14 if (array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET))14 if (array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET)) 15 15 { 16 16 if (array_key_exists('Time', $_GET)) $Time = $_GET['Time'] * 1; … … 39 39 $Measure->Load($MeasureId); 40 40 $HostName = gethostbyaddr($_SERVER['REMOTE_ADDR']); 41 if (($HostName == $Measure->Data['PermissionAdd']) or ($_SERVER['REMOTE_ADDR'] == gethostbyname($Measure->Data['PermissionAdd'])))41 if (($HostName == $Measure->Data['PermissionAdd']) or ($_SERVER['REMOTE_ADDR'] == gethostbyname($Measure->Data['PermissionAdd']))) 42 42 { 43 43 $Measure->AddValue($Value, $Time);
Note:
See TracChangeset
for help on using the changeset viewer.