using Filetemplates for #[metas]# and other static includes

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1116 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent bac22d3f4d
commit 52a0237bf2

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Blacklist Manager</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Blacklist</h2>
<p>This function provides an URL filter to the proxy; any blacklisted URL is blocked
@ -116,6 +116,6 @@ File: <input type="text" name="file">
#(/status)#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Local Cache Management</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Local Cache</h2><br>
@ -21,6 +21,6 @@ The current cache size is #[cachesize]# KB. The maximum cache size is #[cachemax
</td>
</tr></table>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,7 +2,7 @@
<html>
<head>
<title>YaCy '#[clientname]#': Advanced Config</title>
#[metas]#
#%env/templates/metas.template%#
<script>
<!--
function element_clicked(element){
@ -13,7 +13,7 @@ document.getElementById("value").value=element.value;
</script>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Advanced Config</h2>
<p>
@ -32,6 +32,6 @@ For explanation please look into yacy.init
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Connection Tracking</title>
#[metas]#
#%env/templates/metas.template%#
<meta http-equiv="REFRESH" content="30">
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<p><h2>Connection Tracking</h2></p>
<p><h3>Incoming Connections</h3></p>
<p>Showing #[numActiveRunning]# active connections, #[numActivePending]# pending connections from a max. of #[numMax]# allowed incoming connections.<br>
@ -32,7 +32,7 @@
</table>
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Incoming Cookies Monitor</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuCookie]#
#%env/templates/header.template%#
#%env/templates/submenuCookie.template%#
<br>
<h2>Cookie Monitor: Incoming Cookies</h2>
<font size="1">
@ -30,6 +30,6 @@ Showing #[num]# entries from a total of #[total]# Cookies.<br>
</table>
</p>
</font>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Outgoing Cookies Monitor</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuCookie]#
#%env/templates/header.template%#
#%env/templates/submenuCookie.template%#
<br>
<h2>Cookie Monitor: Outgoing Cookies</h2>
<font size="1">
@ -30,6 +30,6 @@ Showing #[num]# entries from a total of #[total]# Cookies.<br>
</table>
</p>
</font>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Your Personal Profile</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Your Personal Profile</h2>
<p>
@ -70,7 +70,7 @@ You do not need to provide any personal data here, but if you want to distribute
</table>
</form>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>
</td></tr>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy: Help</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Help</h2>
@ -105,6 +105,6 @@ This matches heise.de/ with a string in front of it, for example "http://www.",
A possible URL which would match this regexp is: http://www.heise.de/newsticker/meldung/59421<br>
An URL which would not match is: http://www.heise.de/tp/r4/artikel/20/20701/1.html<br>
There is ".html" at the end, which is not included with the Regular Expression.
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Control</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Index Administration</h2>
@ -97,6 +97,6 @@ The DHT-rules do not work without this function.</td>
#[result]#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Creation/Indexing Queue</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuIndexCreate]#
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<br>
<h2>Index Creation: Indexing Queue</h2>
@ -77,6 +77,6 @@ There are #[num]# entries in the rejected-queue:<br>
#(/rejected)#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Creation / Loader Queue</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuIndexCreate]#
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<br>
<h2>Index Creation: Loader Queue</h2>
@ -32,6 +32,6 @@ There are #[num]# entries in the loader set:<br>
#(/loader-set)#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Creation / WWW Global Crawl Queue</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuIndexCreate]#
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<br>
<h2>Index Creation: WWW Global Crawl Queue</h2>
<p>
@ -45,6 +45,6 @@ There are #[num]# entries in the global crawler queue. Showing #[show-num]# most
#(/crawler-queue)#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Creation / WWW Local Crawl Queue</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuIndexCreate]#
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<br>
<h2>Index Creation: WWW Local Crawl Queue</h2>
<p>
@ -47,6 +47,6 @@ There are #[num]# entries in the local crawler queue. Showing #[show-num]# most
#(/crawler-queue)#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Creation</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuIndexCreate]#
#%env/templates/header.template%#
#%env/templates/submenuIndexCreate.template%#
<br>
<h2>Index Creation</h2>
@ -312,6 +312,6 @@ No remote crawl peers availible.<br>
#(/remoteCrawlPeers)#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Import</title>
#[metas]#
#%env/templates/metas.template%#
<meta http-equiv="REFRESH" content="30">
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Index DB Import</h2>
@ -100,6 +100,6 @@
</form>
<p><font size="-3"><i>Last Refresh:</i> #[date]#</font></p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Monitor</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="SubMenu">
<tr height="10"><td colspan="13" class="MenuHeader">&nbsp;Index Monitor Menu</td></tr>
<tr height="2"><td colspan="13"></td></tr>
@ -123,6 +123,6 @@ Showing latest #[count]# lines from a stack of #[all]# entries.
</p>
::
#(/table)#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Sharing</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Index Sharing</h2>
@ -38,6 +38,6 @@ The local index currently consists of (at least) #[wcount]# reverse word indexes
</tr>
</table>
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Index Transfer</title>
#[metas]#
#%env/templates/metas.template%#
<meta http-equiv="REFRESH" content="30">
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Index Transfer</h2>
@ -74,6 +74,6 @@
</form>
<p><font size="-3"><i>Last Refresh:</i> #[date]#</font></p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Lab</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>The YACY Lab</h2>
@ -19,6 +19,6 @@ You may try out these things but please do not care about bugs.</p>
<li>Advanced <a href="/Config_p.html">Configuration</a></li>
</ul>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Language selection</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Language selection</h2>
<p>
@ -43,6 +43,6 @@ Unable to get URL: #[url]#
Error saving the language file.
#(status)#</b>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -1,6 +1,6 @@
<html>
<head>
#[metas]#
#%env/templates/metas.template%#
</head>
<body>
<pre>

@ -2,15 +2,15 @@
<html>
<head>
<title>YaCy '#[clientname]#': Send message</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Send message</h2><br>
#[body]#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Messages</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Messages</h2><br>
@ -13,6 +13,6 @@
#[messages]#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Network Overview</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="SubMenu">
<tr height="10"><td colspan="7" class="MenuHeader">&nbsp;Network Menu</td></tr>
<tr height="2"><td colspan="7"></td></tr>
@ -243,7 +243,7 @@ To do this, press this button:
</table>
</form>
#(/table)#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': News</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="SubMenu">
<tr height="10"><td colspan="9" class="MenuHeader">&nbsp;Network Menu</td></tr>
<tr height="2"><td colspan="9"></td></tr>
@ -92,6 +92,6 @@ you can stop the broadcast if you want.</li>
</form>
</p>
#(/table)#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Performance Settings for Memory</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuPerformance]#
#%env/templates/header.template%#
#%env/templates/submenuPerformance.template%#
<br>
<h2>Performance Settings for Memory</h2>
@ -312,6 +312,6 @@ Increasing this cache may speed up crawling, but not much space is needed, so th
</table>
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Performance Settings of Queues and Processes</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuPerformance]#
#%env/templates/header.template%#
#%env/templates/submenuPerformance.template%#
<br>
<h2>Performance Settings of Queues and Processes</h2>
@ -178,6 +178,6 @@ Changes take effect immediately</td>
</form>
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Performance Settings of Search Sequence</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#[submenuPerformance]#
#%env/templates/header.template%#
#%env/templates/submenuPerformance.template%#
<br>
<h2>Timing Settings of Search Sequence</h2>
@ -113,6 +113,6 @@
The network picture below shows how the latest search query was solved by asking corresponding peers in the DHT:
<img src="SearchEventPicture.png">
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Proxy Index Monitor</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Index Monitor for Proxy Indexing</h2>
<p>
@ -86,6 +86,6 @@ Please delete that file and restart.</b><br>
on the <a href="/IndexMonitor.html?process=4">Proxy Index Monitor</a> Page.
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -1,7 +1,7 @@
<html>
<head>
<title>YaCy '#[clientname]#': Quick Crawl Link</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Settings Acknowledge</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Settings Receipt:</h2>
@ -157,6 +157,6 @@ This values seems not to be a valid port configuration.
#(/info)#
</p>
<p>You can now go back to the <a href="Settings_p.html">Settings</a> page if you want to make more changes.</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Settings</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Settings</h2>
<p>This is the configuration page for YaCy. Access to this page should be limited to an administration person only.
@ -45,6 +45,6 @@ delete the file 'DATA/SETTINGS/httpProxy.conf' in the YaCy application root fold
</p>
#%[settingsTables]%#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Skins</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Skin selection</h2>
<p>
@ -39,6 +39,6 @@ Unable to get URL: #[url]#
Error saving the skin.
#(status)#</b>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Statistics</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="SubMenu">
<tr height="10"><td colspan="7" class="MenuHeader">&nbsp;Statistics Menu</td></tr>
<tr height="2"><td colspan="7"></td></tr>
@ -44,6 +44,6 @@ and someone must have clicked on that link; then the referrer pages appears here
::
<h2>Zeitgeist</h2>
#(/page)#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Status</title>
#[metas]#
#%env/templates/metas.template%#
<meta http-equiv="REFRESH" content="30">
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>System-, Index- and Peer-Status</h2>
@ -110,6 +110,6 @@ To switch online-mode, press one of the following buttons:
#%[privateStatusTable]%#
<p><font size="-3"><i>Last Refresh:</i> #[date]#</font></p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,7 +2,7 @@
<html>
<head>
<title>YaCy '#[clientname]#': Steering</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="40" leftmargin="40" topmargin="0">

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': User Page</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body>
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>User Page</h2><br>
#(logged-in)#
@ -53,6 +53,6 @@ new Password is empty.
#(/status)#
</b>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': View URL Content</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>View URL Content</h2>
@ -84,6 +84,6 @@ Unable to parse resource content.
#(/viewMode)#
</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Log</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Log</h2><br>
@ -20,6 +20,6 @@
</tr></table>
</form>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,10 +2,10 @@
<html>
<head>
<title>YaCy '#[clientname]#': Remote Peer Profile</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Remote Peer Profile:</h2>
<p>
@ -72,6 +72,6 @@ The peer #[peername]# is not online.
#{/other}#
</table>
#(/success)#
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,12 +2,12 @@
<html>
<head>
<title>YaCy '#[clientname]#': Watch Crawler</title>
#[metas]#
#%env/templates/metas.template%#
<script src="/js/ajax.js"></script>
<script src="/js/WatchCrawler.js"></script>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br>
<h2>Watch Crawler</h2>
<p />
@ -24,6 +24,6 @@ Indexing Queue:<br />
</tr>
</table>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,12 +2,12 @@
<html>
<head>
<title>YaCy '#[clientname]#': Wiki</title>
#[metas]#
#%env/templates/metas.template%#
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<p>#[pagecontent]#</p>
<p>#[pageedit]# Changes will be published as announcement on YaCyNews</p>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,11 +2,11 @@
<html>
<head>
<title>YaCy '#[clientname]#': Search Page</title>
#[metas]#
#%env/templates/metas.template%#
<link rel="alternate" type="application/rss+xml" title="Search for #[former]#" href="index.rss?search=#[former]#">
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br>
<center><h2><font size="2" face="Helvetica, Arial" color="#212942"><img src="/env/grafics/kaskelix.png" align="middle" alt="YaCy logo Kaskelix"><br>P2P WEB SEARCH</font></h2></center><br>
<center>#[promoteSearchPageGreeting]#</center><br>
@ -132,6 +132,6 @@ with the target of implementing a P2P-based global search engine.<br>
Architecture (C) by Michael Peter Christen,
<img src="/env/grafics/mcemailh.gif"></i></center>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,7 +2,7 @@
<html>
<head>
<title>YaCy '#[clientname]#': Shared Blacklist</title>
#[metas]#
#%env/templates/metas.template%#
<script>
<!--
function selectall(){
@ -14,7 +14,7 @@ function selectall(){
</script>
</head>
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#[header]#
#%env/templates/header.template%#
<br><br>
<h2>Add Items to Blacklist</h2>
@ -60,6 +60,6 @@ Wrong Invocation! Please invoke with sharedBlacklist.html?name=PeerName
</p>
</form>
#[footer]#
#%env/templates/footer.template%#
</body>
</html>

@ -2,7 +2,7 @@
<html>
<head>
<title>YaCy '#[clientname]#': Search Page</title>
#[metas]#
#%env/templates/metas.template%#
<link rel="alternate" type="application/rss+xml" title="Search for #[former]#" href="index.rss?search=#[former]#">
</head>
<body>

@ -45,12 +45,14 @@ package de.anomic.http;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PushbackInputStream;
import java.util.HashMap;
import java.util.Hashtable;
import de.anomic.server.serverFileUtils;
@ -423,5 +425,27 @@ public final class httpTemplate {
e.printStackTrace();
}
}
/*
* loads all Files from path into a filename->content HashMap
*/
public static HashMap loadTemplates(File path) {
// reads all templates from a path
// we use only the folder from the given file path
HashMap result = new HashMap();
if (path == null) return result;
if (!(path.isDirectory())) path = path.getParentFile();
if ((path == null) || (!(path.isDirectory()))) return result;
String[] templates = path.list();
int c;
for (int i = 0; i < templates.length; i++) {
if (templates[i].endsWith(".template"))
try {
//System.out.println("TEMPLATE " + templates[i].substring(0, templates[i].length() - 9) + ": " + new String(buf, 0, c));
result.put(templates[i].substring(0, templates[i].length() - 9),
new String(serverFileUtils.read(new File(path, templates[i]))));
} catch (Exception e) {}
}
return result;
}
}

@ -195,7 +195,8 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
htTemplatePath = new File(switchboard.getRootPath(), switchboard.getConfig("htTemplatePath","htroot/env/templates"));
if (!(htTemplatePath.exists())) htTemplatePath.mkdir();
}
if (templates.size() == 0) templates.putAll(loadTemplates(htTemplatePath));
//This is now handles by #%env/templates/foo%#
//if (templates.size() == 0) templates.putAll(httpTemplate.loadTemplates(htTemplatePath));
// create htLocaleDefault, htLocalePath
if (htDefaultPath == null) htDefaultPath = new File(switchboard.getRootPath(), switchboard.getConfig("htDefaultPath","htroot"));
@ -728,26 +729,6 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
}
}
private static HashMap loadTemplates(File path) {
// reads all templates from a path
// we use only the folder from the given file path
HashMap result = new HashMap();
if (path == null) return result;
if (!(path.isDirectory())) path = path.getParentFile();
if ((path == null) || (!(path.isDirectory()))) return result;
String[] templates = path.list();
int c;
for (int i = 0; i < templates.length; i++) {
if (templates[i].endsWith(".template"))
try {
//System.out.println("TEMPLATE " + templates[i].substring(0, templates[i].length() - 9) + ": " + new String(buf, 0, c));
result.put(templates[i].substring(0, templates[i].length() - 9),
new String(serverFileUtils.read(new File(path, templates[i]))));
} catch (Exception e) {}
}
return result;
}
private File rewriteClassFile(File template) {
try {
String f = template.getCanonicalPath();

Loading…
Cancel
Save