Changeset 894 for trunk/Modules/NetworkShare/update.php
- Timestamp:
- Jan 5, 2021, 10:30:31 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/update.php
r873 r894 8 8 $Hosts = array(); 9 9 $StartTime = GetMicrotime(); 10 $DbResult = $Database->query("SELECT * FROM NetworkDevice WHERE Online=1 AND (Block=0 OR Name='centrala') AND (Name!='GATE') AND User>0");10 $DbResult = $Database->query("SELECT * FROM `NetworkDevice` WHERE `Online`=1 AND (`Block`=0 OR `Name`='centrala') AND (`Name` != 'GATE') AND (`User` > 0)"); 11 11 while ($Row = $DbResult->fetch_array()) 12 12 { … … 16 16 $HostID = 100; 17 17 $StartTime2 = GetMicrotime(); 18 if ($Dnes != $Row[' last_share_check'])18 if ($Dnes != $Row['LastShareCheck']) 19 19 { 20 20 echo("Kontroluji ".$Row['Name']."...\n"); … … 23 23 else echo("Vynechavam ".$Row['Name']."...\n"); 24 24 // Aktualizuj datum prochazeni 25 $Database->update(' Hosts', "name='".$Row['name']."'",array('last_share_check' => $Dnes));25 $Database->update('NetworkDevice', "Id='".$Row['Id']."'", array('LastShareCheck' => $Dnes)); 26 26 } 27 $Rozdil = GetMicrotime() -$StartTime+10;27 $Rozdil = GetMicrotime() - $StartTime + 10; 28 28 29 29 // Oprav a zoptimalizuj tabulku
Note:
See TracChangeset
for help on using the changeset viewer.