Changeset 172 for system/generators/traffic_shaping_routerboard.php
- Timestamp:
- Mar 24, 2009, 7:52:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/generators/traffic_shaping_routerboard.php
r141 r172 58 58 59 59 // Process users 60 $Index = 0; 60 61 $DbResult = $Database->select('users', '*, CONCAT(second_name, " ", first_name) as fullname', '(inet=1)'); 61 62 while($User = $DbResult->fetch_array()) … … 110 111 //echo($Row['id'].','); 111 112 */ 113 echo($Index.','); 114 if($Index > 50) 115 { 116 $Commands = addslashes(implode(';', $Commands)); 117 $Command = '/usr/bin/ssh -l admin-ssh -i /root/.ssh/id_dsa '.$Router.' "'.$Commands.'"'; 118 //echo($Command."\n\n\n"); 119 echo('.'); 120 exec($Command, $Output); 121 $Commands = array(); 122 $Index = 0; 123 } 124 $Index++; 112 125 } 113 126 echo("\n"); … … 116 129 $Commands = addslashes(implode(';', $Commands)); 117 130 $Command = '/usr/bin/ssh -l admin-ssh -i /root/.ssh/id_dsa '.$Router.' "'.$Commands.'"'; 118 echo($Command."\n");131 //echo($Command."\n"); 119 132 exec($Command, $Output); 120 133 //array_pop($Output);
Note:
See TracChangeset
for help on using the changeset viewer.