Changeset 92 for trunk/add.php


Ignore:
Timestamp:
Apr 7, 2020, 11:53:58 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/add.php

    r87 r92  
    1212// Try to load single value
    1313$Time = time();
    14 if(array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET))
     14if (array_key_exists('MeasureId', $_GET) and array_key_exists('Value', $_GET))
    1515{
    1616  if (array_key_exists('Time', $_GET)) $Time = $_GET['Time'] * 1;
     
    3939  $Measure->Load($MeasureId);
    4040  $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'])))
    4242  {
    4343    $Measure->AddValue($Value, $Time);
Note: See TracChangeset for help on using the changeset viewer.