Changeset 71 for trunk/add.php
- Timestamp:
- Jul 8, 2016, 11:11:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/add.php
r69 r71 12 12 $MeasureId = addslashes($_GET['MeasureId']); 13 13 $Value = addslashes($_GET['Value']); 14 if (array_key_exists('Time', $_GET)) $Time = $_GET['Time'] * 1; 15 else $Time = time(); 14 16 $Measure = new Measure($Core->Database); 15 17 $Measure->Load($MeasureId); … … 17 19 if(($HostName == $Measure->Data['PermissionAdd']) or ($_SERVER['REMOTE_ADDR'] == gethostbyname($Measure->Data['PermissionAdd']))) 18 20 { 19 $Measure->AddValue($Value );21 $Measure->AddValue($Value, $Time); 20 22 echo('Hodnota '.$Value.' uložena'); 21 23 } else echo('Nemáte oprávnění k aktualizaci zadané veličiny!<br>Vaše adresa: '.$HostName.'('.$_SERVER['REMOTE_ADDR'].')');
Note:
See TracChangeset
for help on using the changeset viewer.