Ignore:
Timestamp:
Mar 24, 2009, 7:52:02 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Poopravené konfigurační skripty ve starém umístění.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • system/generators/traffic_shaping_routerboard.php

    r141 r172  
    5858
    5959// Process users
     60$Index = 0;
    6061$DbResult = $Database->select('users', '*, CONCAT(second_name, " ", first_name) as fullname', '(inet=1)');
    6162while($User = $DbResult->fetch_array())
     
    110111               //echo($Row['id'].',');
    111112*/
     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++;
    112125  }
    113126  echo("\n");
     
    116129$Commands = addslashes(implode(';', $Commands));
    117130$Command = '/usr/bin/ssh -l admin-ssh -i /root/.ssh/id_dsa '.$Router.' "'.$Commands.'"';
    118 echo($Command."\n");
     131//echo($Command."\n");
    119132exec($Command, $Output);
    120133//array_pop($Output);
Note: See TracChangeset for help on using the changeset viewer.