Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/online.php

    r548 r738  
    1212  echo("OK\n\nSeznam online pocitacu:\n");
    1313  array_shift($Output);
    14   $Online = array();            // Seznam online pocitacu
     14  $Online = array();    // Seznam online pocitacu
    1515  foreach($Output as $Radek)
    1616  {
     
    3535    {
    3636      $Output = array();
    37      
     37
    3838      //echo('arping -c 1 '.$Host);
    3939      exec('arping -c 1 '.$Host,$Output);
    4040      if(count($Output)!=4)
    41       { 
     41      {
    4242        $Output = array();
    4343        exec('arping -I wlan0 -c 1 '.$Host,$Output);
    4444        if(count($Output)!=4)
    45         { 
     45        {
    4646          $Output = array();
    4747          exec('arping -I wlan1 -c 1 '.$Host,$Output);
    4848          if(count($Output)!=4)
    49           { 
     49          {
    5050            $Output = array();
    5151            exec('arping -I wlan2 -c 1 '.$Host,$Output);
    52             if(count($Output)!=4) 
     52            if(count($Output)!=4)
    5353            {
    5454              $Output = array();
     
    7171  // Deaktivuj predchozi online pocitace
    7272  $Database->update('hosts', 1, array('online' => 0));
    73  
     73
    7474  //print_r($Online);
    7575  // Aktivuj online pocitace
     
    8282    } else $Database->insert('hosts',array('name' => $Item['host'], 'IP' => $Item['IP'], 'MAC' => $Item['MAC'], 'online' => 1,'date' => 'NOW()','lastdate' => 'NOW()', 'section' => $Section));
    8383  }
    84  
     84
    8585  echo("\nSeznam offline pocitacu:\n");
    8686  $DbResult = $Database->query("SELECT * FROM hosts WHERE online=0");
Note: See TracChangeset for help on using the changeset viewer.