2008-04-21 13:35:50 +00:00
|
|
|
<% #href %>
|
2010-01-10 14:40:36 +00:00
|
|
|
<% param.path %>
|
2008-04-21 13:35:50 +00:00
|
|
|
|
2008-04-28 12:19:20 +00:00
|
|
|
<% #include %>
|
|
|
|
|
document.writeln('<' + 'scr' + 'ipt type="text/javascript"' +
|
|
|
|
|
'src="<% param.href %>"></' + 'scr' + 'ipt>');
|
|
|
|
|
|
2008-05-05 00:27:43 +00:00
|
|
|
<% #listItem %>
|
2008-04-21 20:46:29 +00:00
|
|
|
<tr>
|
2008-04-22 15:20:10 +00:00
|
|
|
<td class="small" style="text-align: right; vertical-align: baseline; white-space: nowrap;">
|
|
|
|
|
<% site.modified short %>
|
|
|
|
|
</td>
|
2008-04-21 20:46:29 +00:00
|
|
|
<td style="vertical-align: baseline; padding-left: 10px;"><% site.title | site.link %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
2008-04-21 13:35:50 +00:00
|
|
|
<% #create %>
|
2009-12-13 21:54:58 +00:00
|
|
|
<p class="storyTitle"><% response.title %></p>
|
|
|
|
|
<div>
|
|
|
|
|
<% gettext "To create a new site you need to fill out the form below." %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="small">
|
|
|
|
|
<p><% gettext 'The name will be part of the URL of your site. E.g. if you
|
|
|
|
|
enter “{0}” as the name your site will be reachable via this url: {1}'
|
|
|
|
|
<% example.name %> <% example.href prefix="<br /><code>" suffix=</code> %> %></p>
|
|
|
|
|
<p><% gettext "Please note that you cannot change the name after the site was
|
|
|
|
|
created." %> <% gettext "The title will appear in the header of every page
|
|
|
|
|
of your site. You can change it anytime you want." %></p>
|
|
|
|
|
</div>
|
2008-04-21 13:35:50 +00:00
|
|
|
<p>
|
|
|
|
|
<form method="post" action="<% response.action %>">
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="3">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Name suffix=: %></td>
|
|
|
|
|
<td><% site.input name %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Title suffix=: %></td>
|
|
|
|
|
<td><% site.input title %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td>
|
|
|
|
|
<br />
|
|
|
|
|
<button type="submit" name="create" value="1"><% gettext Create %></button>
|
|
|
|
|
<a href="" class="cancel"><% gettext Cancel %></a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<% #menuExt %>
|
|
|
|
|
<script type="text/javascript" defer="defer">
|
|
|
|
|
<!--
|
|
|
|
|
var win = external.menuArguments;
|
|
|
|
|
var url = "<% site.url %>stories/create?content_text=";
|
|
|
|
|
var link = escape('<a href="' + win.location.href + '">' +
|
|
|
|
|
win.document.title + "</a>: ");
|
|
|
|
|
var text = escape(win.document.selection.createRange().text);
|
|
|
|
|
win.location.href = url + link + text;
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<% #menuExtRegistry %>
|
|
|
|
|
REGEDIT4
|
|
|
|
|
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post to <% site.title %>]
|
|
|
|
|
@="<% site.url %>menuext"
|
|
|
|
|
"contexts"=hex:31
|
|
|
|
|
|
|
|
|
|
<% #referrers %>
|
2009-12-13 21:54:58 +00:00
|
|
|
<p class="storyTitle"><% response.title %></p>
|
|
|
|
|
<br />
|
2008-05-15 13:47:58 +00:00
|
|
|
<form action="<% response.action %>" method="get">
|
2008-04-21 13:35:50 +00:00
|
|
|
<input type="text" name="filter" value="<% request.filter encoding="form" %>"
|
2010-01-10 14:40:36 +00:00
|
|
|
size="30" />
|
|
|
|
|
<button type="submit" name="submit" value="1"><% gettext Filter %></button>
|
|
|
|
|
<button onclick="document.location='<% site.href referrers %>'; return false;">
|
|
|
|
|
<% gettext Reset %></button>
|
2008-04-21 13:35:50 +00:00
|
|
|
<div class="small">
|
2008-05-15 16:56:19 +00:00
|
|
|
<input type="checkbox" id="includeSpam" name="includeSpam" value="checked"
|
|
|
|
|
<% request.includeSpam prefix='checked="' suffix='"' encoding="form" %> />
|
2010-01-10 14:40:36 +00:00
|
|
|
<label for="includeSpam"><% gettext 'Include Referrer Spam' %></label>
|
2008-04-21 13:35:50 +00:00
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="2">
|
|
|
|
|
<tr>
|
2010-01-10 14:40:36 +00:00
|
|
|
<td align="right" class="small"><% gettext Hits %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
<td width="10" nowrap="nowrap" rowspan="999"> </td>
|
|
|
|
|
<td></td>
|
2010-01-10 14:40:36 +00:00
|
|
|
<td class="small"><% gettext Referrer %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
</tr>
|
2008-05-15 13:02:50 +00:00
|
|
|
<script type="text/javascript">
|
2008-04-21 13:35:50 +00:00
|
|
|
var referrers = [];
|
|
|
|
|
<% site.referrers %>
|
|
|
|
|
var query = new Antville.Query();
|
|
|
|
|
var spamFilter = new Antville.Filter([<% site.spamfilter %>]);
|
|
|
|
|
var searchFilter = new Antville.Filter(query.filter);
|
|
|
|
|
var searchEngineFilters = [
|
|
|
|
|
new Antville.Filter("http:\/\/.*google.*\?", "q"),
|
|
|
|
|
new Antville.Filter("http:\/\/.*search\.msn.*\?", "q"),
|
|
|
|
|
new Antville.Filter("http:\/\/.*altavista.*\?", "q"),
|
|
|
|
|
new Antville.Filter("http:\/\/.*search\.yahoo.*\?", "p"),
|
2008-12-14 15:27:47 +00:00
|
|
|
new Antville.Filter("http:\/\/search\.live\.com.*\?", "q")
|
2008-12-14 19:49:12 +00:00
|
|
|
];
|
2008-04-21 13:35:50 +00:00
|
|
|
for (var i in referrers) {
|
|
|
|
|
var ref = referrers[i];
|
|
|
|
|
var text = ref.text;
|
|
|
|
|
var isSpam = spamFilter.test(ref.url);
|
|
|
|
|
if (isSpam && !query.includeSpam)
|
|
|
|
|
continue;
|
|
|
|
|
if (query.filter && !searchFilter.test(ref.url))
|
|
|
|
|
continue;
|
|
|
|
|
var done = false;
|
|
|
|
|
for (var e in searchEngineFilters) {
|
|
|
|
|
var filter = searchEngineFilters[e];
|
|
|
|
|
if (!done && filter.test(ref.url)) {
|
|
|
|
|
text = ref.compose(filter.key, "<em>Search request:</em> ");
|
|
|
|
|
done = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
document.writeln('<tr>');
|
|
|
|
|
document.writeln('<td align="right" valign="top">', ref.count, '</td>');
|
2008-05-15 13:02:50 +00:00
|
|
|
document.write('<td valign="top">');
|
|
|
|
|
if ("<% membership.role %>" === "Owner") {
|
|
|
|
|
document.write('<input type="checkbox" name="permanent" value="',
|
|
|
|
|
ref.url, '" />');
|
|
|
|
|
}
|
|
|
|
|
document.writeln('</td>');
|
|
|
|
|
document.writeln('<td><a href="', ref.url, '"', (isSpam ?
|
2008-05-15 13:47:58 +00:00
|
|
|
' style="<% value "Small font color" prefix="color: " %>"' : ''),
|
2008-05-15 13:02:50 +00:00
|
|
|
'>', text, '</a></td>');
|
2008-04-21 13:35:50 +00:00
|
|
|
document.writeln('</tr>');
|
|
|
|
|
}
|
2008-05-15 13:02:50 +00:00
|
|
|
</script>
|
2008-04-21 13:35:50 +00:00
|
|
|
<noscript>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="3">
|
2008-05-15 13:02:50 +00:00
|
|
|
<% site.skin $Site#noscript %>
|
2008-04-21 13:35:50 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</noscript>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
|
2008-05-15 13:02:50 +00:00
|
|
|
<% #referrer %>
|
|
|
|
|
referrers.push(new Antville.Referrer("<% param.referrer %>",
|
|
|
|
|
"<% param.text %>", <% param.requests %>));
|
|
|
|
|
|
2008-04-21 13:35:50 +00:00
|
|
|
<% #noscript %>
|
|
|
|
|
<% gettext "To prevent spam abuse referrers and backlinks are displayed
|
|
|
|
|
using client-side JavaScript code. Thus, you should enable the option to
|
|
|
|
|
execute JavaScript code in your browser. Otherwise you will only see this
|
|
|
|
|
information." %>
|
|
|
|
|
|
2009-12-13 21:54:58 +00:00
|
|
|
<% #deleted %>
|
2010-01-10 14:40:36 +00:00
|
|
|
<% gettext "This site is going to be deleted completely and irreversibly after {0}."
|
|
|
|
|
<% site.deleted | format long %> %>
|
2009-12-13 21:54:58 +00:00
|
|
|
|
2008-12-14 19:49:12 +00:00
|
|
|
<% #export %>
|
|
|
|
|
<p class="title">Export Site Data</p><br />
|
2008-12-14 15:27:47 +00:00
|
|
|
<% param.fileUrl prefix='<p><a href="' suffix=<% param.fileDate
|
2008-12-14 19:49:12 +00:00
|
|
|
prefix='">Download ZIP file</a> <small>(as of '
|
|
|
|
|
suffix=')</small></p><br />' | format short %> %>
|
2008-12-14 15:27:47 +00:00
|
|
|
<form action="" method="post">
|
2008-12-14 19:49:12 +00:00
|
|
|
<button type="submit" name="submit" value="export">Start</button>
|
2008-12-14 15:27:47 +00:00
|
|
|
</form>
|
|
|
|
|
|
2008-04-21 13:35:50 +00:00
|
|
|
<% #edit %>
|
2009-12-13 21:54:58 +00:00
|
|
|
<p class="storyTitle"><% response.title %></p>
|
2008-04-21 13:35:50 +00:00
|
|
|
<form id="prefs" method="post" action="<% response.action %>">
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="2">
|
2010-01-10 14:40:36 +00:00
|
|
|
<colgroup>
|
|
|
|
|
<col width="150" />
|
|
|
|
|
<col width="*" />
|
|
|
|
|
</colgroup>
|
2008-04-21 13:35:50 +00:00
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">
|
2009-12-13 21:54:58 +00:00
|
|
|
<a id="general" name="general"></a>
|
|
|
|
|
<strong><% gettext General %></strong>
|
2008-04-21 13:35:50 +00:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Mode suffix=: %></td>
|
|
|
|
|
<td><% site.select mode %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Title suffix=: %></td>
|
|
|
|
|
<td><% site.input title %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Tagline suffix=: %></td>
|
|
|
|
|
<td><% site.input tagline %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Paging suffix=: %></td>
|
|
|
|
|
<td><% site.input pageSize size="5" maxlength="2" %>
|
2010-01-10 14:40:36 +00:00
|
|
|
<% site.select pageMode %> <% gettext "per page" %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Comments suffix=: %></td>
|
|
|
|
|
<td><% site.checkbox commentMode %>
|
|
|
|
|
<label for="commentMode"><% gettext enabled %></label></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Archive suffix=: %></td>
|
|
|
|
|
<td><% site.checkbox archiveMode %>
|
|
|
|
|
<label for="archiveMode"><% gettext enabled %></label></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Language suffix=: %></td>
|
|
|
|
|
<td><% site.select locale %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2009-12-13 21:54:58 +00:00
|
|
|
<td class="small"><% gettext "Time Zone" suffix=: %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
<td><% site.select timeZone %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2009-12-13 21:54:58 +00:00
|
|
|
<td class="small"><% gettext "Long Date Format" suffix=: %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
<td><% site.select longDateFormat %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2009-12-13 21:54:58 +00:00
|
|
|
<td class="small"><% gettext "Short Date Format" suffix=: %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
<td><% site.select shortDateFormat %></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="small"><% gettext Notifications suffix=: %></td>
|
|
|
|
|
<td><% site.select notificationMode %></td>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2010-01-10 16:33:46 +00:00
|
|
|
<td class="small" valign="top"><% gettext "Callback Url" suffix=: %></td>
|
2008-06-12 14:02:42 +00:00
|
|
|
<td><% site.input callbackUrl %><br />
|
|
|
|
|
<% site.checkbox callbackMode %>
|
|
|
|
|
<label for="callbackMode"><% gettext enabled %><label></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
</tr>
|
2008-05-15 13:02:50 +00:00
|
|
|
<tr>
|
2009-12-13 21:54:58 +00:00
|
|
|
<td colspan="2"><div class="listSeparator"> </div>
|
|
|
|
|
<a id="spamfilter" name="spamfilter"></a>
|
|
|
|
|
<strong><% gettext "Referrer Spam Filter" %></strong>
|
|
|
|
|
</td>
|
2008-04-21 13:35:50 +00:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2009-12-13 21:54:58 +00:00
|
|
|
<td class="small" valign="top"><% gettext "Enter one filter {0}pattern{1} per
|
|
|
|
|
line to be applied on every URL in the referrer and backlink lists."
|
|
|
|
|
'<a href="http://en.wikipedia.org/wiki/Regular_expression">' </a> %></td>
|
2008-04-21 13:35:50 +00:00
|
|
|
<td valign="top"><% site.textarea spamfilter cols="30" rows="7" %></td>
|
2008-05-15 13:02:50 +00:00
|
|
|
</tr>
|
2008-04-21 13:35:50 +00:00
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td><br />
|
|
|
|
|
<button type="submit" name="save" value="1"><% gettext Save %></button>
|
|
|
|
|
<a href="" class="cancel"><% gettext Cancel %></a>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|