source: extensions/whois_online/config.tpl @ 22284

Last change on this file since 22284 was 16631, checked in by plg, 12 years ago

compatibility with Piwigo 2.4

rel!"nofollow" on gallery links to "recently viewed photos" to avoid generating a huge amount of visits by robots.

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 8.4 KB
Line 
1<div class="titrePage">
2        <h2>Whois Online</h2>
3</div>
4 
5<form method="post" action="{$F_ACTION}" class="Whois_Online properties {$themeconf.name}">
6
7{if $page == 'config'}
8<fieldset>
9        <legend>{'Options'|@translate}</legend>
10
11        <ul>
12                <li>
13                        <span class="property">{'Active capture'|@translate}</span>
14                        <input type="radio" value="1" name="Active" {if ($Option.Active==1)} checked="checked" {/if}/>{'Yes'|@translate}
15                        <input type="radio" value="0" name="Active" {if ($Option.Active==0)} checked="checked" {/if}/>{'No'|@translate}
16                </li>
17                <li>
18                        <span class="property">{'Delete level [10-200] (ratio between obsolete and active)'|@translate}</span>
19                        <input type="text" id="Level" maxlength="3" size="8" name="Level" value="{$Option.Level}" />
20                </li>
21                <li>
22                        <span class="property">{'Obsolete limit [20-100] (obsolete data count)'|@translate}</span>
23                        <input type="text" id="Limit" maxlength="3" size="8" name="Limit" value="{$Option.Limit}" />
24                </li>
25                <li>
26                        <span class="property">{'Add link to Plugins menu'|@translate}</span>
27                        <input type="radio" value="1" name="Plugins_menu" {if ($Option.Plugins_menu==1)} checked="checked" {/if}/>{'Yes'|@translate}
28                        <input type="radio" value="0" name="Plugins_menu" {if ($Option.Plugins_menu==0)} checked="checked" {/if}/>{'No'|@translate}
29                </li>
30                <li>
31                        <span class="property">{'Add icon to History'|@translate}</span>
32                        <input type="radio" value="1" name="History_icon" {if ($Option.History_icon==1)} checked="checked" {/if}/>{'Yes'|@translate}
33                        <input type="radio" value="0" name="History_icon" {if ($Option.History_icon==0)} checked="checked" {/if}/>{'No'|@translate}
34                </li>
35                <li>
36                        <span class="property">{'Keep data even if plugin is deactivated/uninstall'|@translate}</span>
37                        <input type="radio" value="1" name="Keep_data" {if ($Option.Keep_data==1)} checked="checked" {/if}/>{'Yes'|@translate}
38                        <input type="radio" value="0" name="Keep_data" {if ($Option.Keep_data==0)} checked="checked" {/if}/>{'No'|@translate}
39                </li>
40                <li>
41                        <span class="property" title="{'Advanced users: template vars are available in all cases and might be included in your extensions'|@translate}" >{'Default display'|@translate}</span>
42                        <input type="radio" value="1" name="Display" {if ($Option.Display==1)} checked="checked" {/if}/>{'Yes'|@translate}
43                        <input type="radio" value="0" name="Display" {if ($Option.Display==0)} checked="checked" {/if}/>{'No'|@translate}
44                </li>
45                <li>
46                        <span class="property" title="{'Users with image cluetips [10-200]'|@translate}" >{'Radar limit'|@translate}</span>
47                        <input type="text" maxlength="2" size="8" id="Radar_limit" name="Radar_limit" value="{$Option.Radar_limit}"  title="{'Default %s'|@translate|@sprintf:'25'}"/>
48                </li>
49                <li>
50                        <span class="property" title="{'Default as anybody'|@translate}" >{'Webmasters management:'|@translate}</span>
51                        <input type="radio" value="0" name="Webmaster_management" {if ($Option.Webmasters==0)} checked="checked" {/if}/>{'Exclude'|@translate}
52                        <input type="radio" value="1" name="Webmaster_management" {if ($Option.Webmasters==1)} checked="checked" {/if}/>{'Hidden'|@translate}
53                        <input type="radio" value="2" name="Webmaster_management" {if ($Option.Webmasters==2)} checked="checked" {/if}/>{'As anybody'|@translate}
54                </li>
55                <li>
56                        <span class="property" title="{'Default as anybody'|@translate}" >{'Administrators management:'|@translate}</span>
57                        <input type="radio" value="0" name="Administrator_management" {if ($Option.Administrators==0)} checked="checked" {/if}/>{'Exclude'|@translate}
58                        <input type="radio" value="1" name="Administrator_management" {if ($Option.Administrators==1)} checked="checked" {/if}/>{'Hidden'|@translate}
59                        <input type="radio" value="2" name="Administrator_management" {if ($Option.Administrators==2)} checked="checked" {/if}/>{'As anybody'|@translate}
60                </li>
61
62        </ul>
63        <input type="submit" value="{'Submit'|@translate}" name="submit" class="submit"/>
64        <div><input type="hidden" name="from" value="config" /></div>
65</fieldset>
66{/if}
67
68{if $page == 'monitor'}
69
70<fieldset>
71        <legend>{'Your `%s` table summary'|@translate|@sprintf:$WO_status.table}</legend>
72        <p>
73                {if ($WO_status.spacef > 0)}<a href="{$WO_status.url}&amp;tab=monitor&amp;check">{'Compress it!'|@translate}</a>
74                {' => Delete old guests access (over 3 days), and optimize table and index.'|@translate}<br />{/if}
75      <table class="table1">
76                                <tr class="row2"><td style="padding:7px; width: 45%">{'Space used: %s'|@translate|@sprintf:$WO_status.size}</td>
77                                <td style="padding:7px; width: 45%">{'Unused allocated space: <strong>%s</strong>'|@translate|@sprintf:$WO_status.spacef}</td></tr>
78                                <tr class="row2"><td>{'Traced sessions: %s'|@translate|@sprintf:$WO_status.Rows}</td>
79                                <td>{'Altered/created since: %s'|@translate|@sprintf:$WO_status.Create_time}</td></tr>
80                        </table>
81                </p>
82</fieldset>
83
84
85<fieldset>
86        <legend>{'Permanence/Durability of user monitoring'|@translate}</legend>
87    {$DOUBLE_SELECT}
88                <div><input type="hidden" name="from" value="monitor" /></div>
89</fieldset>
90<fieldset>
91        <legend>{'Clearing'|@translate}</legend>
92        <p>{'Clear temporary users (minimal delay is 6 minutes). To clean any permanent users, switch them before in the right list above.'|@translate}</p>
93      <select class="CleaningList" name="prs_remove[]" multiple="multiple">
94        {html_options options=$present_remove selected=$present_remove_selected}
95      </select>
96      <p><input class="submit" type="submit" value="{'Delete'|@translate}" name="prs_delete" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
97                <div><input type="hidden" name="from" value="monitor" /></div>
98</fieldset>
99{literal}
100<script type="text/javascript">// <![CDATA[
101  jQuery().ready(function(){
102    // Resize possible for double select list
103    jQuery("select.CleaningList").resizable({
104      handles: "n",
105      animate: true,
106      animateDuration: "slow",
107      animateEasing: "swing",
108      preventDefault: true,
109      preserveCursor: true,
110      autoHide: true,
111      ghost: true
112    });
113  });
114// ]]>
115</script>
116{/literal}
117{/if}
118
119
120{if $page == 'report'}
121<fieldset>
122        <legend>{'Members summary'|@translate}</legend>
123<p>{'Registration counter: %s'|@translate|sprintf:$Members.count} - {'Most members ever online was %s on %s'|@Whois_most:$Members.max:$Members.When:'Y-m-d H:i'}</p> 
124</fieldset>
125{if !empty($search_results) }
126<fieldset>
127        <legend>{'Available filters'|@translate}</legend>
128        <p>
129                <a href="{$Whois_url}reload.php?req=members"            class="load"    id="members" title="{'Monitored members'|@translate}">{'Members'|@translate}</a> -
130                <a href="{$Whois_url}reload.php?req=guest"                      class="load"    id="guest" title="{'Captured guests'|@translate}">{'Guests'|@translate}</a> -
131                <a href="{$Whois_url}reload.php?req=less_24"            class="load"    id="less_24" title="{'Last 24h accesses'|@translate}">{'Recents (less 24h)'|@translate}</a> -
132                <a href="{$Whois_url}reload.php?req=over_24"            class="load"    id="over_24" title="{'More than 24h accesses'|@translate}">{'More than 24h'|@translate}</a> -
133                <a href="{$Whois_url}reload.php?req=pics"                               class="load"    id="pics" title="{'Pictures accesses'|@translate}">{'On pictures'|@translate}</a> -
134                <a href="{$Whois_url}reload.php?req=no_pic"                     class="load"    id="no_pic" title="{'No picture accesses'|@translate}">{'Categories only'|@translate}</a> -
135                <a href="{$Whois_url}reload.php?req=no_country" class="load"    id="no_country" title="{'Unidentifed countries'|@translate}">{'No country'|@translate}</a> -
136                <a href="{$Whois_url}reload.php?req=single"                     class="load"    id="single" title="{'Only one day accesses'|@translate}">{'One day'|@translate}</a> -
137                <a href="{$Whois_url}reload.php?req=multi"                      class="load"    id="multi" title="{'Several days accesses or over midnight'|@translate}">{'Several days'|@translate}</a> -
138                <a href="{$Whois_url}reload.php?req=IPs"                                class="load"    id="IPs" title="{'Several identified IPs (Only the first one is kept)'|@translate}">{'Several IPs'|@translate}</a>
139        </p>
140</fieldset>
141
142<fieldset>
143        <legend>{'User access details'|@translate}</legend><!-- {$Whois_Smarty}/report.tpl -->
144<div id="reloadable">
145{include file="`$Whois_Smarty`/report.tpl"}
146</div>
147</fieldset>
148{else}
149{'No data available'|@translate}
150{/if}
151
152{html_head}
153{literal}
154<script type="text/javascript">// <![CDATA[
155jQuery(document).ready(function () { 
156  jQuery("a.load")
157  .click(function() {
158  jQuery("#reloadable").load(this.href);
159    return false;
160  });
161});
162// ]]>
163</script>
164{/literal}
165{/html_head}
166
167{/if}
168</form>
169
170{html_head}
171<link rel="stylesheet" type="text/css" href="{$Whois_path|@cat:'online.css'}"> 
172{/html_head}
Note: See TracBrowser for help on using the repository browser.