Changeset 360

Show
Ignore:
Timestamp:
07/11/07 16:47:41 (1 year ago)
Author:
ludo
Message:

Task repeat. Tunnel port 30080 to 80 to allow secure upload of inventories. (from r4601)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/webmin/lsc/debian/changelog

    r238 r360  
    1 webmin-lsc (1.0.5) stable; urgency=low 
     1webmin-lsc (1.0.6) stable; urgency=low 
    22 
    33  * See SVN history 
  • trunk/webmin/lsc/include/command_launcher.inc.php

    r255 r360  
    698698                } 
    699699                /* to re-schedule: next_date = start_date + interval */ 
    700                 $coh->update_next_launch_date("start_date + interval 30 minute"); 
     700                $coh->update_next_launch_date("start_date + interval ".$this->command->repeat." hour"); 
    701701                $coh->start_date = $coh->next_launch_date; 
    702702                $coh->number_attempt_connection_remains = $this->command->max_connection_attempt; 
  • trunk/webmin/lsc/include/exec.inc.php

    r250 r360  
    5151        /* -tt forces tty allocation so that signals like SIGINT 
    5252        will be properly sent to the remote host */ 
    53         $ssh_command ="$keychain ssh -tt -o StrictHostKeyChecking=no -o Batchmode=yes -o PasswordAuthentication=no ".$user."@".$ip." \"".$command."\" 2>&1"; 
     53        $ssh_command ="$keychain ssh -tt -R30080:127.0.0.1:80 -o StrictHostKeyChecking=no -o Batchmode=yes -o PasswordAuthentication=no ".$user."@".$ip." \"".$command."\" 2>&1"; 
    5454         
    5555        $handle = popen($ssh_command, "r"); 
  • trunk/webmin/lsc/module.info

    r238 r360  
    33desc_fr=LRS : Prise de Contrôle à Distance Sécurisé 
    44depends=1.030 lbs_common 
    5 version=1.0.5 
     5version=1.0.6 
  • trunk/webmin/lsc/repository.cgi

    r258 r360  
    263263        $delete_file_after_execute_successful_enable = $_POST['repository_delete_file_after_execute_successful']; 
    264264        if ( 
    265                 ($repository_start_date!="d?s que possible" && $repository_start_date!="ASAP" ) 
     265                ($repository_start_date!="dès que possible" && $repository_start_date!="ASAP" ) 
    266266        ) { 
    267267                list($date, $time) = split(" [^ ]* ", $repository_start_date); 
     
    312312        } else { 
    313313                $start_inventory_enable = false; 
     314        } 
     315        if (!$_POST["repeat"]) { 
     316                $repeat = 0; 
     317        } else { 
     318                $repeat = intval($_POST["repeat"]); 
     319                if ($start_date == "0000-00-00 00:00:00") $start_date = date("Y-m-d G:i:00"); 
    314320        } 
    315321 
     
    334340                $next_connection_delay, 
    335341                $max_connection_attempt, 
    336                 $start_inventory_enable 
     342                $start_inventory_enable, 
     343                $repeat 
    337344        ); 
    338345        /* 
  • trunk/webmin/lsc/tmpl/en/widget_repository_actions.tpl

    r227 r360  
    8383                        /> 
    8484                        or <a href="javascript:;" onclick="javascript:document.getElementById('repository_end_date').value='none';">none</a> 
     85                        </td> 
     86                        </tr> 
     87                        <tr> 
     88                        <td style="width:5px;white-space:nowrap;">Repeat :</td><td> 
     89                                <select name="repeat"> 
     90                                <option value="0">None</option> 
     91                                <option value="1">Hourly</option> 
     92                                <option value="24">Daily</option> 
     93                                <option value="168">Weekly</option> 
     94                                </select> 
    8595                        </td> 
    8696                        </tr> 
  • trunk/webmin/lsc/tmpl/fr/widget_repository_actions.tpl

    r227 r360  
    5050                        <table style="width:100%"> 
    5151                        <tr> 
    52                         <td style="width:5px;"><div style="white-space:nowrap;">Date de démarrage de la commande :</div></td><td> 
     52                        <td style="width:5px;"><div style="white-space:nowrap;">Date de d&eacute;marrage de la commande :</div></td><td> 
    5353                        <input 
    5454                                type="text" 
     
    5656                                id="repository_start_date" 
    5757                                size="20" 
    58                                 value="dès que possible" 
     58                                value="d&egrave;s que possible" 
    5959                                readonly="readonly" 
    6060                        /> 
     
    6464                                id="repository_start_date_button" 
    6565                        /></td><td> 
    66                         ou <a href="javascript:;" onclick="javascript:document.getElementById('repository_start_date').value='dès que possible';">dès que possible</a> 
     66                        ou <a href="javascript:;" onclick="javascript:document.getElementById('repository_start_date').value='d?s que possible';">d&egrave;s que possible</a> 
    6767                        </td> 
    6868                        </tr> 
    6969                        <tr> 
    70                         <td style="width:5px;"><div style="white-space:nowrap;">Date limite d'exécution de la commande :</div></td><td> 
     70                        <td style="width:5px;"><div style="white-space:nowrap;">Date limite d'ex&eacute;cution de la commande :</div></td><td> 
    7171                        <input 
    7272                                type="text" 
     
    8585                        </td> 
    8686                        </tr> 
     87                        <tr> 
     88                        <td style="width:5px;white-space:nowrap;">R&eacute;p&eacute;tition :</td><td> 
     89                                <select name="repeat"> 
     90                                <option value="0">Aucune</option> 
     91                                <option value="1">Chaque heure</option> 
     92                                <option value="24">Chaque jour</option> 
     93                                <option value="168">Chaque semaine</option> 
     94                                </select> 
     95                        </td> 
     96                        </tr> 
     97 
    8798                        </table> 
    8899                </td></tr> 
     
    90101                        <table style="width:100%"> 
    91102                        <tr> 
    92                         <td style="width:5px;"><div style="white-space:nowrap;">Passer les paramètres suivants au fichier à exécuter :</div></td><td> 
     103                        <td style="width:5px;"><div style="white-space:nowrap;">Passer les param&ecirc;tres suivants au fichier &agrave; ex&eacute;cuter :</div></td><td> 
    93104                        <input  
    94105                                type="text" 
     
    110121                                style="border:none;" 
    111122                        /> 
    112                         Supprimer les fichiers après exécution avec succè
     123                        Supprimer les fichiers apr&egrave;s ex&eacute;cution avec succ&egrave;
    113124                        </td> 
    114125                </tr> 
     
    122133                                style="border:none;" 
    123134                        /> 
    124                         Exécuter l'agent d'inventaire après l'exécution de la commande 
     135                        Lancer l'agent d'inventaire apr&egrave;s l'ex&eacute;cution de la commande 
    125136                        </td> 
    126137                </tr> 
     
    134145                                style="border:none;" 
    135146                        /> 
    136                         Si un poste client n'est pas accessible émettre une requète "Wake On Lan" 
     147                        Si un poste client n'est pas accessible &eacute;mettre une requ&ecirc;te "Wake On Lan" 
    137148                        </td> 
    138149                </tr> 
     
    146157                                size="3" 
    147158                        />. 
    148                         Délai entre deux tentatives de connexion : 
     159                        D&eacute;lai entre deux tentatives de connexion : 
    149160                        <input  
    150161                                type="text"