Changeset 873 for trunk/Modules/TimeMeasure/Measurement/MeasureClient.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/TimeMeasure/Measurement/MeasureClient.php
r738 r873 8 8 { 9 9 $DbResult = $this->Database->select('MeasureClient', '*'); 10 while ($MeasureClient = $DbResult->fetch_assoc())10 while ($MeasureClient = $DbResult->fetch_assoc()) 11 11 { 12 12 $DbResult2 = $this->Database->select('MeasureMethod', '*', 'Id='.$MeasureClient['Method']); … … 15 15 include_once(dirname(__FILE__).'/'.$MeasureMethod['MeasureClass'].'.php'); 16 16 $MeasureMethod['MeasureClass'] .= 'Measurement'; 17 if (class_exists($MeasureMethod['MeasureClass']))17 if (class_exists($MeasureMethod['MeasureClass'])) 18 18 { 19 19 $MeasureClass = new $MeasureMethod['MeasureClass']($this->System); 20 if (method_exists($MeasureClass, $MeasureMethod['Method']))20 if (method_exists($MeasureClass, $MeasureMethod['Method'])) 21 21 { 22 if ($MeasureClient['Parameter'] != '') $Value = $Measure->$MeasureMethod['Method']($MeasureClient['Parameter']);22 if ($MeasureClient['Parameter'] != '') $Value = $Measure->$MeasureMethod['Method']($MeasureClient['Parameter']); 23 23 else $Value = $MeasureClass->$MeasureMethod['Method'](); 24 24 echo(file_get_contents('http://'.$MeasureClient['Host'].$MeasureClient['Path'].'/?M=Add&MeasureId='.$MeasureClient['MeasureId'].'&Value='.addslashes($Value)));
Note:
See TracChangeset
for help on using the changeset viewer.