Changeset 164
- Timestamp:
- 09/01/06 17:37:35 (2 years ago)
- Files:
-
- trunk/webmin/backuppc/backuppc.js (added)
- trunk/webmin/backuppc/choix.cgi (modified) (5 diffs)
- trunk/webmin/backuppc/debian/changelog (modified) (1 diff)
- trunk/webmin/backuppc/gen_backupfun.php (modified) (6 diffs)
- trunk/webmin/backuppc/gen_conf.cgi (modified) (5 diffs)
- trunk/webmin/backuppc/host_config.cgi (modified) (4 diffs)
- trunk/webmin/backuppc/lang/fr (modified) (1 diff)
- trunk/webmin/backuppc/module.info (modified) (1 diff)
- trunk/webmin/backuppc/tmpl/en/choix.tpl (modified) (1 diff)
- trunk/webmin/backuppc/tmpl/en/gen_conf_lbs.tpl (modified) (1 diff)
- trunk/webmin/backuppc/tmpl/en/main.tpl (modified) (3 diffs)
- trunk/webmin/backuppc/tmpl/fr/choix.tpl (modified) (1 diff)
- trunk/webmin/backuppc/tmpl/fr/gen_conf_lbs.tpl (modified) (1 diff)
- trunk/webmin/backuppc/tmpl/fr/main.tpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/webmin/backuppc/choix.cgi
r24 r164 1 #! /var/lib/lrs/php1 #!/var/lib/lrs/php 2 2 <? 3 3 # … … 42 42 43 43 if ($lbs) 44 $get_data = "?mac=".$_ GET['mac']."&host=".$_GET['host'];44 $get_data = "?mac=".$_REQUEST['mac']."&host=".$_REQUEST['host']; 45 45 else { 46 $host=$_ GET['host'];47 $get_data = "?host=".$_ GET['host'];46 $host=$_REQUEST['host']; 47 $get_data = "?host=".$_REQUEST['host']; 48 48 } 49 49 50 50 # configuration variables --------------------- 51 if ( isset($_ GET['xfermethod']) ) { // transport method was changed52 $xfermethod = $_ GET['xfermethod'];51 if ( isset($_REQUEST['xfermethod']) ) { // transport method was changed 52 $xfermethod = $_REQUEST['xfermethod']; 53 53 $get_data = $get_data . "&xfermethod=$xfermethod"; 54 54 } … … 56 56 $t->set_var("GET_DATA_BREF", $get_data); // needed for the cancel button 57 57 58 if (isset($_ GET['username']) && isset($_GET['passwd'])) { // needed for smbclient59 $username = $_GET['username'];60 $get_data = $get_data . "&username=$username";61 $passwd = $_GET['passwd'];62 $get_data = $get_data . "&passwd=$passwd";58 if (isset($_REQUEST['username']) && isset($_REQUEST['passwd'])) { // needed for smbclient 59 //$username = $_REQUEST['username']; 60 //$get_data = $get_data . "&username=$username"; 61 //$passwd = $_REQUEST['passwd']; 62 //$get_data = $get_data . "&passwd=$passwd"; 63 63 } 64 64 65 if (isset($_ GET['shares']) && $_GET['shares'] != "") { // shares after multiple modifications66 $str = $_ GET['shares'];65 if (isset($_REQUEST['shares']) && $_REQUEST['shares'] != "") { // shares after multiple modifications 66 $str = $_REQUEST['shares']; 67 67 if ($str != "") { 68 68 $shares = explode("|", $str); … … 74 74 75 75 // now read the missing data 76 readConfFile($_ GET['host'], $xfermethod, $shares, $username, $passwd, $full, $incr, $blackout_begin, $blackout_end, $blackout_days);76 readConfFile($_REQUEST['host'], $xfermethod, $shares, $username, $passwd, $full, $incr, $blackout_begin, $blackout_end, $blackout_days); 77 77 78 if (isset($_ GET['delete'])) // delete a share from the list79 if (in_array($_ GET['delete'], $shares)) {80 $i = array_search($_ GET['delete'], $shares);78 if (isset($_REQUEST['delete'])) // delete a share from the list 79 if (in_array($_REQUEST['delete'], $shares)) { 80 $i = array_search($_REQUEST['delete'], $shares); 81 81 array_splice($shares, $i, 1); 82 82 } 83 if (isset($_ GET['found_name']) && ($_GET['found_change']) == "false") {84 if (in_array($_ GET['found_name'], $shares)) {85 $i = array_search($_ GET['found_name'], $shares);83 if (isset($_REQUEST['found_name']) && ($_REQUEST['found_change']) == "false") { 84 if (in_array($_REQUEST['found_name'], $shares)) { 85 $i = array_search($_REQUEST['found_name'], $shares); 86 86 array_splice($shares, $i, 1); 87 87 } 88 88 } 89 // add shares to $_ GET array89 // add shares to $_REQUEST array 90 90 $get_data = $get_data . "&shares="; 91 91 for ($i=0; $i<count($shares); $i++) … … 93 93 $get_data = $get_data . $shares[$i] . "|"; 94 94 95 if ( isset($_ GET['add']) && $_GET['add'] != "") { // rsync - eventually add another folder96 array_push($shares, $_ GET['add']);97 $get_data = $get_data . $_ GET['add'] . "|";95 if ( isset($_REQUEST['add']) && $_REQUEST['add'] != "") { // rsync - eventually add another folder 96 array_push($shares, $_REQUEST['add']); 97 $get_data = $get_data . $_REQUEST['add'] . "|"; 98 98 } 99 if (isset($_ GET['found_name']) && ($_GET['found_change'] == "true")) {100 array_push($shares, $_ GET['found_name']);101 $get_data = $get_data . $_ GET['found_name'];99 if (isset($_REQUEST['found_name']) && ($_REQUEST['found_change'] == "true")) { 100 array_push($shares, $_REQUEST['found_name']); 101 $get_data = $get_data . $_REQUEST['found_name']; 102 102 } 103 103 104 104 $t->set_var("GET_DATA", $get_data); 105 105 106 $t->set_var("HOST", $_ GET['host']);106 $t->set_var("HOST", $_REQUEST['host']); 107 107 $t->set_var("XFERMETHOD_NAME", $text{$xfermethod."_name"}); 108 $t->set_var("USERNAME", $_REQUEST['username']); 109 $t->set_var("PASSWD", $_REQUEST['passwd']); 110 $t->set_var("MAC", $_REQUEST['mac']); 108 111 109 112 if ($xfermethod == 'smb') 110 $shares_all = getSmbShares($_ GET['host'], $username, $passwd);113 $shares_all = getSmbShares($_REQUEST['host'], $username, $passwd); 111 114 else if ($xfermethod == 'tar') 112 $shares_all = getTarShares($_ GET['host']);115 $shares_all = getTarShares($_REQUEST['host']); 113 116 else 114 117 $shares_all = array(); trunk/webmin/backuppc/debian/changelog
r105 r164 1 webmin-backuppc (0. 8.4) stable; urgency=low1 webmin-backuppc (0.9.0) stable; urgency=low 2 2 3 * New release.3 * See SVN history. 4 4 5 5 -- Linbox Team <libre@linbox.com> Tue, 29 Jun 2004 10:32:37 +0200 6 7 webmin-backuppc (0.1) stable; urgency=low8 9 * First package10 11 -- Linbox Team <libre@linbox.com> Fri, 16 Apr 2004 15:59:50 +0200trunk/webmin/backuppc/gen_backupfun.php
r24 r164 28 28 * $blackoutdays - BlackoutWeekDays - array[1..7] of booleans == true if the day is a blackout day 29 29 * $dhcps - DHCPAddrRanges - array of string - addresses ranges (eg. 192.168.0.20-60) 30 */ 31 function readGenConfFile(&$wakeup, &$maxbackups, &$blackoutbegin, &$blackoutend, &$blackoutdays, &$dhcps) { 30 * $opts - other config params in an array 31 */ 32 function readGenConfFile(&$wakeup, &$maxbackups, &$blackoutbegin, &$blackoutend, &$blackoutdays, &$dhcps, &$opts) { 32 33 // values from config.pl 33 34 global $conf_filename; … … 65 66 preg_match($reg, $filestr, $m); 66 67 $blackoutend = $m[1]; 68 69 // other opts 70 // todo: need to parse previous options here 71 foreach (array("FullKeepCnt", "IncrKeepCnt") as $o) { 72 $reg = "/[\$]Conf\{".$o."\}\s*=\s*(.+);/"; 73 preg_match($reg, $filestr, $m); 74 $opts[$o] = $m[1]; 75 } 67 76 68 77 $reg = "/[\$]Conf\{BlackoutWeekDays\}\s*=\s*\[(.+)\];/"; … … 101 110 * $blackoutdays - BlackoutWeekDays 102 111 * $dhcps - DHCPAddrRanges 112 * $opts - other options in a array (why not everything is in the array ? Ask the trainee...) 103 113 * all variables are preformated strings that need no additional change before inserting them to the file. 104 114 */ 105 115 106 function writeGenConfFile($wakeup, $maxbackups, $blackoutbegin, $blackoutend, $blackoutdays, $dhcps ) {116 function writeGenConfFile($wakeup, $maxbackups, $blackoutbegin, $blackoutend, $blackoutdays, $dhcps, $opts) { 107 117 global $conf_filename; 108 118 $filelines = @file($conf_filename); … … 113 123 114 124 $new_filelines=array(); 115 $comment_reg = "/^# .*$/";125 $comment_reg = "/^#/"; 116 126 $wakeup_reg = "/\s*[\$]Conf\{WakeupSchedule\}\s*=\s*\[.*\];/"; 117 127 $maxbackups_reg = "/[\$]Conf\{MaxBackups\}\s*=\s*.+;/"; … … 123 133 $dhcps_str=$dhcps; 124 134 125 for ($i=0; $i<count($filelines); $i++) { 135 for ($i=0; $i<count($filelines); $i++, $j++) { 136 $new_filelines[$j] = $filelines[$i]; 126 137 127 138 if (preg_match($comment_reg, $filelines[$i], $m)) … … 139 150 else if (preg_match($dhcps_reg, $filelines[$i], $m)) { 140 151 while (!preg_match("/\]/", $filelines[$i], $m)) $i++; 141 $new_filelines[$j] = '$Conf{DHCPAddressRanges} = ['.$dhcps_str."];\n"; 142 } else 143 $new_filelines[$j] = $filelines[$i]; 144 $j++; 152 $new_filelines[$j] = '$Conf{DHCPAddressRanges} = ['.$dhcps_str."];\n"; 153 } 154 // other opts 155 // todo: need to parse follwing options here 156 foreach (array("FullKeepCnt", "IncrKeepCnt") as $o) { 157 if (isset($opts[$o])) { 158 if (preg_match("/[\$]Conf\{$o\}\s*=\s*(.+);/", $filelines[$i], $m)) {// could use a regsub 159 $new_filelines[$j] = "\$Conf{".$o."} = ".$opts[$o].";\n"; 160 continue; 161 } 162 } 163 } 145 164 } 165 146 166 $file_str=implode("", $new_filelines); 147 167 $file=fopen($conf_filename, 'w'); trunk/webmin/backuppc/gen_conf.cgi
r24 r164 62 62 63 63 # gather the configuration variables --------------------- 64 $opts = array(); 64 65 if (!isset($_POST["submitted"])) 65 readGenConfFile($wakeup, $maxbackups, $blackoutbegin, $blackoutend, $blackoutdays, $dhcps );66 readGenConfFile($wakeup, $maxbackups, $blackoutbegin, $blackoutend, $blackoutdays, $dhcps, $opts); 66 67 else { 67 68 $wakeup=$_POST["wakeup"]; … … 118 119 $last = $m[5]; 119 120 } else { 120 $t->set_var("DHCP_BASE1", ""); 121 $t->set_var("DHCP_BASE2", ""); 122 $t->set_var("DHCP_BASE3", ""); 121 $t->set_var("DHCP_BASE1", ""); 122 $t->set_var("DHCP_BASE2", ""); 123 $t->set_var("DHCP_BASE3", ""); 123 124 $first=-1; 124 125 $last=-1; … … 159 160 $t->parse("dhcp_hidden_rows", "dhcp_hidden_row", true); 160 161 } 162 163 # misc options 164 foreach (array("FullKeepCnt", "IncrKeepCnt") as $o) { 165 if (isset($opts[$o])) { 166 $t->set_var(strtoupper($o), $opts[$o]); 167 } 168 } 169 161 170 162 171 # -------------------------------------------- … … 212 221 } else 213 222 $blackoutdays=""; 214 223 $opts['FullKeepCnt'] = $_POST["FullKeepCnt"]; 224 $opts['IncrKeepCnt'] = $_POST["IncrKeepCnt"]; 225 215 226 $i=0; 216 227 $dhcps_str=""; … … 226 237 if ($dhcps_str != "") 227 238 $dhcps_str = "\n ".$dhcps_str; 228 writeGenConfFile($wakeup, $maxbackups, $blackoutbegin, $blackoutend, $blackoutdays, $dhcps_str); 229 239 writeGenConfFile($wakeup, $maxbackups, $blackoutbegin, $blackoutend, $blackoutdays, $dhcps_str, 240 $opts); 241 242 // todo: remove this information 230 243 $t->set_var("WAKEUP", $wakeup); 231 244 $t->set_var("MAXBACKUPS", $maxbackups); trunk/webmin/backuppc/host_config.cgi
r24 r164 102 102 if (isset($_GET['username']) && isset($_GET['passwd'])) { // needed by smbclient in choix.php 103 103 $username = $_GET['username']; 104 $get_data = $get_data . "&username=$username";105 104 $passwd = $_GET['passwd']; 106 $get_data = $get_data . "&passwd=$passwd";107 105 } 108 106 if (isset($_GET['shares'])) { // got share from rsync or from multiple changes … … 116 114 readConfFile($host, $xfermethod, $shares, $username, $passwd, $full, $incr, $blackout_begin, $blackout_end, $blackout_days); 117 115 118 $get_data = $get_data . "&shares="; 116 $get_data = $get_data . "&shares="; 117 $fshares = ""; 119 118 for ($i=0; $i<count($shares); $i++) 120 if ($shares[$i] != "") 119 if ($shares[$i] != "") { 121 120 $get_data = $get_data . $shares[$i] . "|"; 121 $fshares .= $shares[$i] . "|"; 122 } 122 123 123 124 # set the configuration variables in the template --------------------- 124 125 $t->set_var("GET_DATA", $get_data); 125 126 $t->set_var("HOST", $host); 127 $t->set_var("MAC", $_REQUEST['mac']); 128 $t->set_var("SHARES", $fshares); 126 129 127 130 if (getDHCP($host) == 1) { … … 144 147 } 145 148 146 if ($xfermethod == "smb" || $xfermethod == "rsyncd") {147 $t->set_block("main", "configure", "configure_full");148 $t->set_var("configure_full", "");149 } else {150 $t->set_block("main", "user_pass_configure", "user_pass_configure_full");151 $t->set_var("user_pass_configure_full", "");152 }153 149 if ($xfermethod == "smb") { 154 150 $t->set_block("main", "auth_ssh", "auth_ssh_full"); … … 231 227 } 232 228 233 $t = tmplInit( array( "main" => "main.tpl" ) );229 $t = tmplInit( array("main" => "main.tpl" ) ); 234 230 235 231 # insertion of menu header trunk/webmin/backuppc/lang/fr
r24 r164 137 137 err_gcr_not_running=The 'getClientResponse' daemon is not running. You probably have a license problem. Check that your licences are correct and then restart the lbs service by clicking <a href="restart.cgi">here</a>. 138 138 139 backup_empty_share=La liste de dossiers partagés de cette machine est vide.<BR>Verifiez le nom d'utilisateur et le mot de passe.139 backup_empty_share=La liste de dossiers partagés de cette machine est vide.<BR>Vérifiez le nom d'utilisateur et le mot de passe. 140 140 backup_reg=Cette machine n'est pas sauvegardée. Ajouter cette machine au fichier '/etc/backuppc/hosts'? 141 141 trunk/webmin/backuppc/module.info
r105 r164 4 4 category=Webmin 5 5 depends=0.94 lbs_common 6 version=0. 8.46 version=0.9.0 trunk/webmin/backuppc/tmpl/en/choix.tpl
r24 r164 1 1 <BR> 2 2 <FORM METHOD="post" ACTION="host_config.cgi{GET_DATA}"> 3 <INPUT TYPE="hidden" NAME="username" VALUE="{USERNAME}"> 4 <INPUT TYPE="hidden" NAME="passwd" VALUE="{PASSWD}"> 5 <INPUT TYPE="hidden" NAME="mac" VALUE="{MAC}"> 6 <INPUT TYPE="hidden" NAME="host" VALUE="{HOST}"> 3 7 4 8 <TABLE BORDER=1 CELLPADDING=5 ALIGN="center"> trunk/webmin/backuppc/tmpl/en/gen_conf_lbs.tpl
r24 r164 1 1 <BR> 2 <FORM NAME="main_form" METHOD="post" ACTION="index.cgi"> 3 4 <INPUT TYPE="hidden" NAME="submitted" VALUE="1"> 5 <INPUT TYPE="hidden" NAME="register" VALUE="0"> 6 7 <TABLE BORDER=1 CELLPADDING=5 ALIGN="center"> 8 9 <TR> 10 <TH ALIGN="left">General configuration</TH> 11 <TD BGCOLOR="#e2e2e2"><A HREF="adv_conf.cgi">Advanced configuration</A></TD> 12 </TR> 13 14 <TR> 15 <TD COLSPAN="2"> 16 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#wakeup','help','width=400,height=250,scrollbars=yes')" ALT="Help" TITLE="Help"><IMG SRC="images/qm.png" BORDER="0"></A> 17 Wakeup schedule: <INPUT TYPE="text" NAME="wakeup" VALUE="{WAKEUP}"> 18 <INPUT TYPE="button" VALUE="Configure" onClick="window.open('wakeup.cgi','wake_up','width=450,height=200,resizable=yes')"> 19 </TD> 20 </TR> 21 <TR> 22 <TD COLSPAN="2"> 23 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#maxbackups','help','width=450,height=250,scrollbars=yes')" ALT="Help" TITLE="Help"><IMG SRC="images/qm.png" BORDER="0"></A> 24 Max. number of simultaneous backups: <INPUT TYPE="text" NAME="maxbackups" VALUE="{MAXBACKUPS}" SIZE="3"> 25 </TD> 26 </TR> 27 <TR> 28 <TD COLSPAN="2"> 29 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#blackout','help','width=450,height=250,scrollbars=yes')" ALT="Help" TITLE="Help"><IMG SRC="images/qm.png" BORDER="0"></A> 30 Do not contact from: <INPUT TYPE="text" NAME="blackoutbegin" VALUE="{BLACKOUT_BEGIN}" SIZE="3"> 31 to: <INPUT TYPE="text" NAME="blackoutend" VALUE="{BLACKOUT_END}" SIZE="3"><BR> 32 <TABLE> 33 <TR> 34 <TD VALIGN="TOP"> 35 Do not contact on the days: 36 </TD> 37 <TD> 38 <TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0"><TR><TD> 39 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="0" {CHECKED_0}>Sunday<BR> 40 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="1" {CHECKED_1}>Monday<BR> 41 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="2" {CHECKED_2}>Tuesday<BR> 42 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="3" {CHECKED_3}>Wednesday<BR></TD><TD> 43 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="4" {CHECKED_4}>Thursday<BR> 44 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="5" {CHECKED_5}>Friday<BR> 45 <INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="6" {CHECKED_6}>Saturday 46 </TD></TR></TABLE> 47 </TD> 48 </TR> 49 </TABLE> 50 </TD> 51 </TR> 52 <TR> 53 <TD COLSPAN="2"> 54 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#dhcplist','help','width=450,height=250,scrollbars=yes')" ALT="Help" TITLE="Help"><IMG SRC="images/qm.png" BORDER="0"></A> 55 DHCP addresses intervals:<BR> 56 <INPUT TYPE="text" NAME="dhcpbase1" VALUE="{DHCP_BASE1}" SIZE="3" MAXLENGTH="3">. 57 <INPUT TYPE="text" NAME="dhcpbase2" VALUE="{DHCP_BASE2}" SIZE="3" MAXLENGTH="3">. 58 <INPUT TYPE="text" NAME="dhcpbase3" VALUE="{DHCP_BASE3}" SIZE="3" MAXLENGTH="3">. 59 <SELECT NAME="dhcpfirst" SIZE="1">{DHCP_FIRST}</SELECT>-<SELECT NAME="dhcplast" SIZE="1">{DHCP_LAST}</SELECT> 60 <INPUT TYPE="hidden" NAME="add_dhcp" VALUE="0"> 61 <INPUT TYPE="button" VALUE="Add" onClick="add_dhcp.value=1; main_form.submit()"> 62 <TABLE><TR><TD VALIGN="TOP"> 63 Addresses: 64 </TD><TD> 65 <INPUT TYPE="hidden" NAME="affiche_dhcp" VALUE="0"> 66 <SELECT NAME="dhcp" SIZE="{DHCPS_SIZE}" onChange="affiche_dhcp.value=1; main_form.submit()"> 67 <!-- BEGIN dhcp_row --> 68 <OPTION {DHCP_SELECTED}>{DHCP_ADDR} 69 <!-- END dhcp_row --> 70 </SELECT> 71 <!-- BEGIN dhcp_hidden_row --> 72 <INPUT TYPE="hidden" NAME={DHCP_NAME} VALUE={DHCP_ADDR}> 73 <!-- END dhcp_hidden_row --> 74 </TD><TD VALIGN="TOP"> 75 <INPUT TYPE="hidden" NAME="delete_dhcp" VALUE="0"> 76 <INPUT TYPE="button" VALUE="Delete" onClick="delete_dhcp.value=1; main_form.submit()"> 77 </TD></TR></TABLE> 78 </TD> 79 </TR> 80 <TR> 81 <TD COLSPAN="2" ALIGN="center" VALIGN="bottom"> 2 <FORM NAME="main_form" METHOD="post" ACTION="gen_conf.cgi"> 3 <INPUT TYPE="hidden" NAME="submitted" VALUE="1"> 4 <INPUT TYPE="hidden" NAME="register" VALUE="0"> 5 <table cellpadding="2" cellspacing="0" border="0" width="100%" class="cadre"> 6 <tr> 7 <td bgcolor="#e2e2e2"> <font face="arial" size="3"><b>Files backup configuration ( <A HREF="adv_conf.cgi">Advanced configuration</A> )</b></font></td> 8 </tr> 9 </table> 10 <p> 11 <ul> 12 <li> 13 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#wakeup','help','width=400,height=250,scrollbars=yes')" 14 ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> 15 Wakeup schedule: <INPUT TYPE="text" NAME="wakeup" VALUE="{WAKEUP}" style="vertical-align:middle;"> 16 <INPUT TYPE="button" VALUE="Configure" onClick="window.open('wakeup.cgi','wake_up','width=450,height=200,resizable=yes')" 17 style="vertical-align:middle;"> 18 </li> 19 <li> 20 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#maxbackups','help','width=450,height=250,scrollbars=yes')" 21 ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> 22 Max. number of simultaneous backups: <INPUT TYPE="text" NAME="maxbackups" VALUE="{MAXBACKUPS}" SIZE="2" 23 style="vertical-align:middle;"> 24 </li> 25 <li>Number of backups to keep. 26 Full: <INPUT TYPE="text" NAME="FullKeepCnt" VALUE="{FULLKEEPCNT}" SIZE="3" style="vertical-align:middle;"> 27 Incremental: <INPUT TYPE="text" NAME="IncrKeepCnt" VALUE="{INCRKEEPCNT}" SIZE="3" style="vertical-align:middle;"> 28 </li> 29 <li> 30 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#blackout','help','width=450,height=250,scrollbars=yes')" 31 ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> 32 Do not contact from: <INPUT TYPE="text" NAME="blackoutbegin" VALUE="{BLACKOUT_BEGIN}" SIZE="3" 33 style="vertical-align:middle;">h. 34 to <INPUT TYPE="text" NAME="blackoutend" VALUE="{BLACKOUT_END}" SIZE="3" style="vertical-align:middle;">h. 35 on the following days : 36 <div style="border:1px solid #EA4F26;padding-left:1em;"> 37 Sunday<INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="0" style="vertical-align:middle;margin-right:1em;" {CHECKED_0}> 38 Monday<INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="1" style="vertical-align:middle;margin-right:1em;" {CHECKED_1}> 39 Tuesday<INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="2" style="vertical-align:middle;margin-right:1em;" {CHECKED_2}> 40 Wednesday<INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="3" style="vertical-align:middle;margin-right:1em;" {CHECKED_3}> 41 Thursday<INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="4" style="vertical-align:middle;margin-right:1em;" {CHECKED_4}> 42 Friday<INPUT TYPE="CHECKBOX" NAME="blackout[]" VALUE="5" style="vertical-align:middle;margin-right:1em;" {CHECKED_5}> 43 Saturday<INPUT TYPE="CHECKBOX" NAME="blackout" VALUE="6" style="vertical-align:middle;margin-right:1em;" {CHECKED_6}> 44 </div> 45 </li> 46 </ul> 47 </p> 48 <table cellpadding="2" cellspacing="0" border="0" width="100%" class="cadre"> 49 <tr> 50 <td bgcolor="#e2e2e2"> <font face="arial" size="3"><b>DHCP configuration</b></font></td> 51 </tr> 52 </table> 53 <p> 54 <ul> 55 <li> 56 <A HREF="" onClick="window.open('/help.cgi/backuppc/index#dhcplist','help','width=450,height=250,scrollbars=yes')" 57 ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> 58 DHCP pools: 59 <INPUT TYPE="text" NAME="dhcpbase1" VALUE="{DHCP_BASE1}" SIZE="3" MAXLENGTH="3" style="vertical-align:middle;">. 60 <INPUT TYPE="text" NAME="dhcpbase2" VALUE="{DHCP_BASE2}" SIZE="3" MAXLENGTH="3" style="vertical-align:middle;">. 61 <INPUT TYPE="text" NAME="dhcpbase3" VALUE="{DHCP_BASE3}" SIZE="3" MAXLENGTH="3" style="vertical-align:middle;">. 62 <SELECT NAME="dhcpfirst" SIZE="1" style="vertical-align:middle;">{DHCP_FIRST}</SELECT> / 63 <SELECT NAME="dhcplast" SIZE="1" style="vertical-align:middle;">{DHCP_LAST}</SELECT> 64 <INPUT TYPE="hidden" NAME="add_dhcp" VALUE="0"> 65 <INPUT TYPE="button" VALUE="Add" onClick="add_dhcp.value=1; main_form.submit()" style="vertical-align:middle;"> 66 <ul> 67 <li> 68 Addresses : 69 <INPUT TYPE="hidden" NAME="affiche_dhcp" VALUE="0"> 70 <SELECT NAME="dhcp" SIZE="{DHCPS_SIZE}" onChange="affiche_dhcp.value=1; main_form.submit()"> 71 <!-- BEGIN dhcp_row --> 72 <OPTION {DHCP_SELECTED}>{DHCP_ADDR} 73 <!-- END dhcp_row --> 74 </SELECT> 75 <!-- BEGIN dhcp_hidden_row --> 76 <INPUT TYPE="hidden" NAME={DHCP_NAME} VALUE={DHCP_ADDR}> 77 <!-- END dhcp_hidden_row --> 78 <INPUT TYPE="hidden" NAME="delete_dhcp" VALUE="0"> 79 <INPUT TYPE="button" VALUE="Delete" onClick="delete_dhcp.value=1; main_form.submit()"> 80 </li> 81 </ul> 82 </li> 83 </ul> 84 </p> 85 <div ALIGN="center" VALIGN="bottom" style="margin-top:2em;"> 82 86 <INPUT TYPE="button" VALUE="Apply" onClick="register.value=1; main_form.submit()"> 83 87 <INPUT TYPE="button" VALUE="Cancel" onClick="window.location.href='gen_conf.cgi';"> 84 </TD> 85 </TR> 86 </TABLE> 88 </div> 87 89 </FORM> 88 90 <BR> trunk/webmin/backuppc/tmpl/en/main.tpl
r29 r164 1 <script type="text/javascript" language="JavaScript" src="backuppc.js"></script> 2 1 3 <BR> 2 4 <FORM METHOD="post" ACTION="affiche.cgi{GET_DATA}" name="backuppc_configform"> 3 5 <input type="hidden" name="host" value="{HOST}"> 6 <input type="hidden" name="mac" value="{MAC}"> 7 <input type="hidden" name="shares" value="{SHARES}"> 4 8 <table cellpadding="2" cellspacing="0" border="0" width="100%" class="cadre"> 5 9 <tr> … … 28 32 <a HREF="" onClick="window.open('/help.cgi/backuppc/index#shares','help','width=450,height=250,scrollbars=yes')" ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> Shared folders : 29 33 <UL> 34 <!-- BEGIN share_row --> 30 35 <li> 31 <!-- BEGIN share_row -->32 {SHARE},36 {SHARE} 37 </li> 33 38 <!-- END share_row --> 34 ... 35 <!-- BEGIN user_pass_configure --> 36 <a href="#" onClick="window.location.href='choix.cgi{GET_DATA}&username='+document.backuppc_configform.username.value+'&passwd='+document.backuppc_configform.passwd.value">( Configure )</a> 37 <!-- END user_pass_configure --> 38 <!-- BEGIN configure --> 39 <a href="#" onClick="window.location.href='choix.cgi{GET_DATA}'">( Configure )</a> 40 <!-- END configure --> 41 </li> 42 </UL> 39 </UL> 40 <input type="submit" onClick="ChangeActionChoix('');" value="Add"> 43 41 </li> 44 42 <!-- BEGIN auth_ssh --> … … 87 85 <table cellpadding="2" cellspacing="0" border="0" width="100%" class="cadre"> 88 86 <tr> 89 <td bgcolor="#e2e2e2"> <font face="arial" size="3"><b> Is {HOST} using DHCP</b></font>87 <td bgcolor="#e2e2e2"> <font face="arial" size="3"><b>Has {HOST} a dynamic IP</b></font> 90 88 <a HREF="" onClick="window.open('/help.cgi/backuppc/index#dhcp','help','width=450,height=250,scrollbars=yes')" ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> 91 89 </td> trunk/webmin/backuppc/tmpl/fr/choix.tpl
r24 r164 1 1 <BR> 2 2 <FORM METHOD="post" ACTION="host_config.cgi{GET_DATA}"> 3 <INPUT TYPE="hidden" NAME="username" VALUE="{USERNAME}"> 4 <INPUT TYPE="hidden" NAME="passwd" VALUE="{PASSWD}"> 5 <INPUT TYPE="hidden" NAME="mac" VALUE="{MAC}"> 6 <INPUT TYPE="hidden" NAME="host" VALUE="{HOST}"> 3 7 4 8 <TABLE BORDER=1 CELLPADDING=5 ALIGN="center"> trunk/webmin/backuppc/tmpl/fr/gen_conf_lbs.tpl
r24 r164 22 22 Nombre max. de sauvegardes simultanés : <INPUT TYPE="text" NAME="maxbackups" VALUE="{MAXBACKUPS}" SIZE="2" 23 23 style="vertical-align:middle;"> 24 </li> 25 <li>Nombre de sauvegardes à garder. 26 Complètes: <INPUT TYPE="text" NAME="FullKeepCnt" VALUE="{FULLKEEPCNT}" SIZE="3" style="vertical-align:middle;"> 27 Incrémentales: <INPUT TYPE="text" NAME="IncrKeepCnt" VALUE="{INCRKEEPCNT}" SIZE="3" style="vertical-align:middle;"> 24 28 </li> 25 29 <li> trunk/webmin/backuppc/tmpl/fr/main.tpl
r29 r164 1 <script type="text/javascript" language="JavaScript" src="backuppc.js"></script> 2 1 3 <BR> 2 4 <FORM METHOD="post" ACTION="affiche.cgi{GET_DATA}" name="backuppc_configform"> 3 4 5 <input type="hidden" name="host" value="{HOST}"> 6 <input type="hidden" name="mac" value="{MAC}"> 7 <input type="hidden" name="shares" value="{SHARES}"> 5 8 <table cellpadding="2" cellspacing="0" border="0" width="100%" class="cadre"> 6 9 <tr> … … 29 32 <a HREF="" onClick="window.open('/help.cgi/backuppc/index#shares','help','width=450,height=250,scrollbars=yes')" ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> Dossiers partagés : 30 33 <UL> 34 <!-- BEGIN share_row --> 31 35 <li> 32 <!-- BEGIN share_row -->33 {SHARE},36 {SHARE} 37 </li> 34 38 <!-- END share_row --> 35 ... 36 <!-- BEGIN user_pass_configure --> 37 <a href="#" onClick="window.location.href='choix.cgi{GET_DATA}&username='+document.backuppc_configform.username.value+'&passwd='+document.backuppc_configform.passwd.value">( Configurer )</a> 38 <!-- END user_pass_configure --> 39 <!-- BEGIN configure --> 40 <a href="#" onClick="window.location.href='choix.cgi{GET_DATA}'">( Configurer )</a> 41 <!-- END configure --> 42 </li> 43 </UL> 39 </UL> 40 <input type="submit" onClick="ChangeActionChoix('');" value="Ajouter"> 44 41 </li> 45 42 <!-- BEGIN auth_ssh --> … … 88 85 <table cellpadding="2" cellspacing="0" border="0" width="100%" class="cadre"> 89 86 <tr> 90 <td bgcolor="#e2e2e2"> <font face="arial" size="3"><b>{HOST} : Configurer en DHCP</b></font>87 <td bgcolor="#e2e2e2"> <font face="arial" size="3"><b>{HOST} : IP dynamique</b></font> 91 88 <a HREF="" onClick="window.open('/help.cgi/backuppc/index#dhcp','help','width=450,height=250,scrollbars=yes')" ALT="Aide" TITLE="Aide"><IMG SRC="images/qm.png" BORDER="0"></A> 92 89 </td>
