Changeset 929 for trunk/Modules/NetworkConfig/Generate.php
- Timestamp:
- May 11, 2022, 12:14:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfig/Generate.php
r887 r929 15 15 $System->Database->update('NetworkConfiguration', '`Id`='.$Service['Id'], array('Changed' => 2)); 16 16 $ExecutionStart = time(); 17 //echo($Service['Caption'].'...');18 17 19 18 $ExecuteParts = explode('|', $Service['Execute']); 20 19 $Output = array(); 21 20 foreach ($ExecuteParts as $Command) 21 { 22 22 if ($Command != '') 23 23 { 24 24 exec($Command, $Output); 25 //echo($Command."\n");26 //sleep(5);27 25 } 28 //echo("Done\n");26 } 29 27 $ExecutionTime = time() - $ExecutionStart; 30 28 $System->Database->update('NetworkConfiguration', '`Id`='.$Service['Id'], array('Changed' => 0, 'LastTime' => 'NOW()', 'ExecutionTime' => $ExecutionTime));
Note:
See TracChangeset
for help on using the changeset viewer.