Changeset 95 for trunk/add.php
- Timestamp:
- Dec 6, 2021, 11:33:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/add.php
r92 r95 16 16 if (array_key_exists('Time', $_GET)) $Time = $_GET['Time'] * 1; 17 17 AddValue(addslashes($_GET['MeasureId']), addslashes($_GET['Value']), $Time); 18 $AddedValues = $AddedValues + 1; 18 $AddedValues = $AddedValues + 1; 19 19 } 20 20 … … 26 26 if (array_key_exists('Time'.$I, $_GET)) $Time = $_GET['Time'.$I] * 1; 27 27 AddValue(addslashes($_GET['MeasureId'.$I]), addslashes($_GET['Value'.$I]), $Time); 28 $AddedValues = $AddedValues + 1; 28 $AddedValues = $AddedValues + 1; 29 29 $I++; 30 30 } … … 32 32 if ($AddedValues == 0) echo('Nebyly zadány potřebné parametry MeasureId a Value.'."\n"); 33 33 34 function AddValue( $MeasureId, $Value, $Time)34 function AddValue(int $MeasureId, float $Value, int $Time): void 35 35 { 36 36 global $Core;
Note:
See TracChangeset
for help on using the changeset viewer.