Changeset 738 for trunk/Modules/NetworkShare/online.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/online.php
r548 r738 12 12 echo("OK\n\nSeznam online pocitacu:\n"); 13 13 array_shift($Output); 14 $Online = array(); 14 $Online = array(); // Seznam online pocitacu 15 15 foreach($Output as $Radek) 16 16 { … … 35 35 { 36 36 $Output = array(); 37 37 38 38 //echo('arping -c 1 '.$Host); 39 39 exec('arping -c 1 '.$Host,$Output); 40 40 if(count($Output)!=4) 41 { 41 { 42 42 $Output = array(); 43 43 exec('arping -I wlan0 -c 1 '.$Host,$Output); 44 44 if(count($Output)!=4) 45 { 45 { 46 46 $Output = array(); 47 47 exec('arping -I wlan1 -c 1 '.$Host,$Output); 48 48 if(count($Output)!=4) 49 { 49 { 50 50 $Output = array(); 51 51 exec('arping -I wlan2 -c 1 '.$Host,$Output); 52 if(count($Output)!=4) 52 if(count($Output)!=4) 53 53 { 54 54 $Output = array(); … … 71 71 // Deaktivuj predchozi online pocitace 72 72 $Database->update('hosts', 1, array('online' => 0)); 73 73 74 74 //print_r($Online); 75 75 // Aktivuj online pocitace … … 82 82 } else $Database->insert('hosts',array('name' => $Item['host'], 'IP' => $Item['IP'], 'MAC' => $Item['MAC'], 'online' => 1,'date' => 'NOW()','lastdate' => 'NOW()', 'section' => $Section)); 83 83 } 84 84 85 85 echo("\nSeznam offline pocitacu:\n"); 86 86 $DbResult = $Database->query("SELECT * FROM hosts WHERE online=0");
Note:
See TracChangeset
for help on using the changeset viewer.