File: backup_configure_client

package info (click to toggle)
webmin-slbackup 0.0.9-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 212 kB
  • ctags: 44
  • sloc: perl: 1,122; makefile: 51; sh: 11
file content (115 lines) | stat: -rw-r--r-- 4,462 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
  <TMPL_INCLUDE NAME="header">

  <h2><tmpl_var name="backup_details"></h2>

  <tmpl_if name="client_added">
    <tmpl_if name="client_added_success">
      <p><font color="red"><tmpl_var name="backup_client">
	<b><tmpl_var name="client"></b>
        <tmpl_var name="success_added">.</font></p>
      <p><font color="red">(<tmpl_var name="rdiff_backup_notice">.)</font></p>
    <tmpl_else>
      <p><font color="red"><tmpl_var name="strclient"> <tmpl_var name="client">
      <tmpl_var name="unsuccess_added">
      (<tmpl_var name="client_added_error">).</font></p>
    </tmpl_if>
  </tmpl_if>

  <TMPL_IF NAME="delete_dir_bool">
    <tmpl_if name="delete_dir_deleted">
      <p><font color="red"><tmpl_var name="directory">
        <b><tmpl_var name="delete_dir"></b>
        <tmpl_var name="success_delete">
        <tmpl_var name="from_config">.</font></p>
    <tmpl_else>
      <p><font color="red"><tmpl_var name="directory">
        <b><tmpl_var name="delete_dir"></b>
        <tmpl_var name="unsuccess_delete">
        <tmpl_var name="from_config">.</font></p>
    </tmpl_if>
  </TMPL_IF>

  <tmpl_if name="client_confd">
    <tmpl_if name="client_changed">
      <p><font color="red"><tmpl_var name="config_for">
        <b><tmpl_var name="client"></b>
        <tmpl_var name="success_change">.</font></p>
    <tmpl_else>
    <p><font color="red"><tmpl_var name="nothing_to_change">
      <b><tmpl_var name="client"></b></font></p>
    </tmpl_if>
  </tmpl_if>

  <tmpl_if name="client_unreach">
    <p><font color="red"><tmpl_var name="client_unreach_err">.
      </font></p>
  </tmpl_if>


  <h3><tmpl_var name="client_conf"> (<TMPL_VAR NAME="client">)</h3>
  <form action="?rm=backup_configure_client&client=<tmpl_var name="client">" method="post">
    <input type="hidden" id="rm" name="rm" value="backup_configure_client">
    <input type="hidden" id="client_confd" name="client_confd"
      value="<tmpl_var name="client">">
    <input type="hidden" id="client" name="client"
      value="<tmpl_var name="client">">

  <table border="0" cellspacing="3" cellpadding="3">
  <tr>
    <td><tmpl_var name="client_type"></td>
    <td><select id="type" name="type">
      <tmpl_if name="client_type_extbool">
          <option value="extern" selected>
          <tmpl_var name="client_type_external"></option>
        <option value="local">
          <tmpl_var name="client_type_local"></option>
      <tmpl_else>
          <option value="extern">
          <tmpl_var name="client_type_external"></option>
        <option value="local" selected>
          <tmpl_var name="client_type_local"></option>
      </tmpl_if>
      </select></td>
    <td><b><tmpl_var name="client_type_external"></b>:
      <tmpl_var name="client_type_desc_e">.<br>
      <b><tmpl_var name="client_type_local"></b>:
      <tmpl_var name="client_type_desc_l"><br>
      (<tmpl_var name="hostname_ip_ignored">).</td>
  </tr>
  <tr>
    <td><tmpl_var name="hostname_or_ipaddress"></td>
    <td><input type="text" size="20" id="hostname" name="hostname"
      value="<tmpl_var name="client_hostname">"></td>
    <td><tmpl_var name="hostname_ip_desc">.</td>
  </tr>
  <tr>
    <td><tmpl_var name="username"></td>
    <td><input type="text" size="20" id="username" name="username"
      value="<tmpl_var name="client_user">"></td>
    <td><tmpl_var name="username_desc">.</td>
  </tr>
  <tr>
    <td><tmpl_var name="days_to_keep"></td>
    <td><input type="text" size="20" id="keep" name="keep"
      value="<tmpl_var name="client_keep">"></td>
    <td><tmpl_var name="days_to_keep_desc">.<br>
      <tmpl_var name="days_to_keep_desc2">.</td>
  </tr>
  </table>

  <p><tmpl_var name="dirs_to_backup">:</p>
    <tmpl_loop name="files">
      <input type="text" size="40" id="<tmpl_var name="file">"
        name="<tmpl_var name="file">" value="<tmpl_var name="file">">
        (<a href="?rm=backup_configure_client&client=<tmpl_var name="client">&delete_dir=<tmpl_var name="file">"><tmpl_var name="remove"></a>)<br>
    </tmpl_loop>

    <input type="text" size="40" id="newfile0" name="newfile0" value="">
    <label for="newfile0">(<tmpl_var name="new_directory">)</label><br>
    <input type="text" size="40" id="newfile1" name="newfile1" value="">
    <label for="newdfile1">(<tmpl_var name="new_directory">)</label><br>
    <input type="submit" name="directory-change" id="directory-change"
      value="<tmpl_var name="submit_changes">">
  </form>

  <TMPL_INCLUDE NAME="footer">