* HAIL MELD!
[citadel.git] / webcit / static / t / tab_siteconfig_autopurger.html
1 <center>
2 <h1><?_("Configure automatic expiry of old messages")></h1>
3 <h2><?_("These settings may be overridden on a per-floor or per-room basis.")></h2>
4 </center>
5 <table border="0">
6
7 <tr><td><?_("Hour to run database auto-purge")></td><td>
8 <select NAME="c_purge_hour" SIZE="1">
9 <!--
10                         for (j=0; j<=23; ++j) {
11                                 sprintf(&purger[strlen(purger)], "<OPTION %s VALUE="%d">%d:00%s</OPTION>\n",
12                                         ((atoi(buf) == j) ? "SELECTED" : ""),
13                                         j,
14                                         (get_time_format_cached() == WC_TIMEFORMAT_24) ? j : ((j == 0) ? 12 : ((j>12) ? j-12 : j)),
15                                         (get_time_format_cached() == WC_TIMEFORMAT_24) ? "" : ((j >= 12) ? "pm" : "am")
16                                 );
17                         }
18 -->
19 </select></td></tr>
20
21 <tr><td COLSPAN=2>
22 <hr />
23 </td></tr>
24
25 <tr><td><?_("Default message expire policy for public rooms")></td><td>
26 <input type="radio" NAME="sitepolicy" VALUE="1" <?%("COND:SERVCFG", 1, "sitepolicy", 1, "CHECKED", "")>>
27 <?_("Never automatically expire messages")>
28 <br />
29 <input type="radio" NAME="sitepolicy" VALUE="2" <?%("COND:SERVCFG", 1, "sitepolicy", 2, "CHECKED", "")>>
30 <?_("Expire by message count")><br />
31 <input type="radio" NAME="sitepolicy" VALUE="3" <?%("COND:SERVCFG", 1, "sitepolicy", 3, "CHECKED", "")>>
32 <?_("Expire by message age")>
33 <br />
34 <?_("Number of messages or days: ")>
35 <input type="text" NAME="sitevalue" MAXLENGTH="5" VALUE='<?SERV:CFG("sitevalue")>'>
36 </td></tr>
37
38 <tr><td COLSPAN=2><hr /></td></tr>
39
40 <tr><td><?_("Default message expire policy for private mailboxes")></td><td>
41 <input type="radio" NAME="mboxpolicy" VALUE="0" <?%("COND:SERVCFG", 1, "mboxpolicy", 0, "CHECKED", "")>>
42 <?_("Same policy as public rooms")>
43 <br />
44 <input type="radio" NAME="mboxpolicy" VALUE="1" <?%("COND:SERVCFG", 1, "mboxpolicy", 1, "CHECKED", "")>>
45 <?_("Never automatically expire messages")>
46 <br />
47 <input type="radio" NAME="mboxpolicy" VALUE="2" <?%("COND:SERVCFG", 1, "mboxpolicy", 2, "CHECKED", "")>>
48 <?_("Expire by message count")>
49 <br />
50 <input type="radio" NAME="mboxpolicy" VALUE="3" <?%("COND:SERVCFG", 1, "mboxpolicy", 3, "CHECKED", "")>>
51 <?_("Expire by message age")>
52 <br />
53 <?_("Number of messages or days: ")>
54 <input type="text" NAME="mboxvalue" MAXLENGTH="5" VALUE='<?SERV:CFG("mboxvalue")>'>
55 </td></tr>
56
57 <tr><td COLSPAN=2><hr /></td></tr>
58
59 </table>