introduce divs to allow selecting buttons on /home by category

This commit is contained in:
hankhill19580
2019-11-08 17:42:53 +00:00
parent 552100da17
commit ff293d50a9
29 changed files with 47 additions and 48 deletions

View File

@ -1,7 +1,7 @@
# NOTE: This I2P config file must use UTF-8 encoding # NOTE: This I2P config file must use UTF-8 encoding
# #
# If you have a 'split' directory installation, with configuration # If you have a 'split' directory installation, with configuration
# files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), # files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows),
# or /Users/(user)/Library/Application Support/i2p (Mac), be sure to # or /Users/(user)/Library/Application Support/i2p (Mac), be sure to
# edit the file in the configuration directory, NOT the install directory. # edit the file in the configuration directory, NOT the install directory.
# When running as a Linux daemon, the configuration directory is /var/lib/i2p # When running as a Linux daemon, the configuration directory is /var/lib/i2p

View File

@ -184,7 +184,6 @@ public class ConfigUIHelper extends HelperBase {
current = "en"; current = "en";
} }
StringBuilder buf = new StringBuilder(512); StringBuilder buf = new StringBuilder(512);
//buf.append("<fieldset>\n");
buf.append(" <select name=\"lang\" id=\"langsettings\">\n"); buf.append(" <select name=\"lang\" id=\"langsettings\">\n");
for (int i = 0; i < langs.length; i++) { for (int i = 0; i < langs.length; i++) {
String lang = langs[i][0]; String lang = langs[i][0];
@ -197,10 +196,8 @@ public class ConfigUIHelper extends HelperBase {
buf.append(" value=\"").append(lang).append("\""); buf.append(" value=\"").append(lang).append("\"");
buf.append(" id=\"").append(lang).append("\"").append(">"); buf.append(" id=\"").append(lang).append("\"").append(">");
//buf.append(" style=\"").append("background-image:url(/flags.jsp?s=48&amp;c=").append(langs[i][1]).append("\">\n");
int under = lang.indexOf('_'); int under = lang.indexOf('_');
String slang = (under > 0) ? lang.substring(0, under) : lang; String slang = (under > 0) ? lang.substring(0, under) : lang;
//buf.append(" ");
buf.append(langs[i][2]); buf.append(langs[i][2]);
String name = langs[i][3]; String name = langs[i][3];
if (name != null) { if (name != null) {
@ -211,7 +208,6 @@ public class ConfigUIHelper extends HelperBase {
buf.append("</option>\n"); buf.append("</option>\n");
} }
buf.append(" </select>\n"); buf.append(" </select>\n");
//buf.append("</fieldset>\n");
return buf.toString(); return buf.toString();
} }

View File

@ -87,13 +87,17 @@
%> %>
<div class="ag2"> <div class="ag2">
<h4 class="app2"><%=intl._t("Hidden Services of Interest")%></h4> <h4 class="app2"><%=intl._t("Hidden Services of Interest")%></h4>
<jsp:getProperty name="homehelper" property="favorites" /><br> <div class="homesites">
<jsp:getProperty name="homehelper" property="favorites" /><br>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
</div>
</div> </div>
<div class="ag2"> <div class="ag2">
<h4 class="app"><%=intl._t("Applications and Configuration")%></h4> <h4 class="app"><%=intl._t("Applications and Configuration")%></h4>
<jsp:getProperty name="homehelper" property="services" /><br> <div class="homeapps">
<jsp:getProperty name="homehelper" property="services" /><br>
<div class="clearer">&nbsp;</div> <div class="clearer">&nbsp;</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -92,7 +92,6 @@
<% <%
} }
%> %>
<!--<h2><%=intl._t("New Install Wizard")%> <%=ipg%>/<%=LAST_PAGE%></h2>-->
<div id="wizard" class="overlay"> <div id="wizard" class="overlay">
<jsp:useBean class="net.i2p.router.web.helpers.WizardHandler" id="formhandler" scope="request" /> <jsp:useBean class="net.i2p.router.web.helpers.WizardHandler" id="formhandler" scope="request" />

View File

@ -14,7 +14,7 @@ import java.io.PrintStream;
/** /**
* <p>This class is used by the installer in Windows to process the <code>wrapper.config</code> file. It * <p>This class is used by the installer in Windows to process the <code>wrapper.config</code> file. It
* <ul> * <ul>
* <li>rewrites the applicable wrapper config options to point to <code>%APPDATA%\I2P</code></li> * <li>rewrites the applicable wrapper config options to point to <code>%LOCALAPPDATA%\I2P</code></li>
* <li>corrects the paths, rewriting <code>/</code> to <code>\</code></li> * <li>corrects the paths, rewriting <code>/</code> to <code>\</code></li>
* </ul> * </ul>
* <p> * <p>

View File

@ -1,6 +1,6 @@
# #
# If you have a 'split' directory installation, with configuration # If you have a 'split' directory installation, with configuration
# files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), # files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows),
# or /Users/(user)/Library/Application Support/i2p (Mac), be sure to # or /Users/(user)/Library/Application Support/i2p (Mac), be sure to
# edit the file in the configuration directory, NOT the install directory. # edit the file in the configuration directory, NOT the install directory.
# When running as a Linux daemon, the configuration directory is /var/lib/i2p # When running as a Linux daemon, the configuration directory is /var/lib/i2p

View File

@ -1,7 +1,7 @@
# NOTE: This I2P config file must use UTF-8 encoding # NOTE: This I2P config file must use UTF-8 encoding
# #
# If you have a 'split' directory installation, with configuration # If you have a 'split' directory installation, with configuration
# files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), # files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows),
# or /Users/(user)/Library/Application Support/i2p (Mac), be sure to # or /Users/(user)/Library/Application Support/i2p (Mac), be sure to
# edit the file in the configuration directory, NOT the install directory. # edit the file in the configuration directory, NOT the install directory.
# When running as a Linux daemon, the configuration directory is /var/lib/i2p # When running as a Linux daemon, the configuration directory is /var/lib/i2p

View File

@ -48,7 +48,7 @@
Package install, running as a service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Package install, running as a service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li><b>Windows</b><br> <li><b>Windows</b><br>
<code>%APPDATA%\I2P\eepsite\docroot\</code> <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li><b>Mac</b><br> <li><b>Mac</b><br>
<code>/Users/(user)/Library/Application Support/i2p</code> <code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -36,7 +36,7 @@
تثبيت عادي: <code>~/.i2p/eepsite/docroot/ </code><br> تثبيت عادي: <code>~/.i2p/eepsite/docroot/ </code><br>
تثبيت الحزمة، وتشغيلها كخدمة: <code>/var/lib/i2p/i2p-config/eepsite/docroot/ </code> </li> تثبيت الحزمة، وتشغيلها كخدمة: <code>/var/lib/i2p/i2p-config/eepsite/docroot/ </code> </li>
<li> <li>
<b> ويندوز </b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> </li> <b> ويندوز </b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> </li>
<li> <li>
<b> ماك </b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b> ماك </b><br><code>/Users/(user)/Library/Application Support/i2p</code>
</li> </li>

View File

@ -35,7 +35,7 @@
Standart quraşdırma:<code>~/.i2p/eepsite/docroot/</code><br> Standart quraşdırma:<code>~/.i2p/eepsite/docroot/</code><br>
Xidmət kimi çalışan Paket quraşdırma: /var/lib/i2p/i2p-config/eepsite/docroot/</code></li> Xidmət kimi çalışan Paket quraşdırma: /var/lib/i2p/i2p-config/eepsite/docroot/</code></li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -37,7 +37,7 @@ Um Ihre eigenen Daten anzubieten, ändern Sie einfach die Dateien im Wurzelverze
Paket Installation, laufend als Service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Paket Installation, laufend als Service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -24,7 +24,7 @@
<h1>Servidor web anónimo I2P</h1> <h1>Servidor web anónimo I2P</h1>
<h2>Guía rápida para crear el servidor web en I2P</h2> <h2>Guía rápida para crear el servidor web en I2P</h2>
<p>Esta es tu eepsite, tu propio servidor web anónimo en I2P - simplemente edita los archivos dentro de <code>~/.i2p/eepsite/docroot/</code> (en Linux), <p>Esta es tu eepsite, tu propio servidor web anónimo en I2P - simplemente edita los archivos dentro de <code>~/.i2p/eepsite/docroot/</code> (en Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (en Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (en Windows),
o <code>/Users/(user)/Library/Application Support/i2p</code> (en Mac), o <code>/Users/(user)/Library/Application Support/i2p</code> (en Mac),
y podrá ser vistas por otras personas una vez que hayas seguido lo pasos de más abajo. y podrá ser vistas por otras personas una vez que hayas seguido lo pasos de más abajo.
En I2P las eepsites se indican con una 'key o 'clave', la cual se representa como una larga cadena de texto en Base64. En I2P las eepsites se indican con una 'key o 'clave', la cual se representa como una larga cadena de texto en Base64.
@ -68,7 +68,7 @@
verla inmediatamente.</li></ul> verla inmediatamente.</li></ul>
<p>Antes de anunciar tu nueva eepsite al mundo, deberías añadir contenido. <p>Antes de anunciar tu nueva eepsite al mundo, deberías añadir contenido.
Ves a <code>~/.i2p/eepsite/docroot/</code> (en Linux), Ves a <code>~/.i2p/eepsite/docroot/</code> (en Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (en Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (en Windows),
o <code>/Users/(user)/Library/Application Support/i2p</code> (en Mac), o <code>/Users/(user)/Library/Application Support/i2p</code> (en Mac),
y reemplaza la página de redirección index.html con tu contenido. Las carpetas virtuales funcionan, por lo que puedes hospedar y reemplaza la página de redirección index.html con tu contenido. Las carpetas virtuales funcionan, por lo que puedes hospedar
archivos desde un subdirectorio sin la necesidad de proveer explícitamente una página con enlaces a los archivos. archivos desde un subdirectorio sin la necesidad de proveer explícitamente una página con enlaces a los archivos.

View File

@ -37,7 +37,7 @@ Pour servir votre propre contenu, modifiez simplement les fichiers situés dans
Installation par un paquet, exécuté comme service : <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Installation par un paquet, exécuté comme service : <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>macOS</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>macOS</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -37,7 +37,7 @@
Csomag telepítése, szolgáltatásként futtatva: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Csomag telepítése, szolgáltatásként futtatva: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(felhasználó)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(felhasználó)/Library/Application Support/i2p</code>

View File

@ -34,7 +34,7 @@
<b>Linux</b><br> Standard install: <code>~/.i2p/eepsite/docroot/</code><br> Package install, dijalankan sebagai service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> <b>Linux</b><br> Standard install: <code>~/.i2p/eepsite/docroot/</code><br> Package install, dijalankan sebagai service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -37,7 +37,7 @@
Package install, running as a service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Package install, running as a service: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -25,7 +25,7 @@
<h2>Korte Handleiding voor Anoniem Webhosten op I2P</h2> <h2>Korte Handleiding voor Anoniem Webhosten op I2P</h2>
<p>Dit is je eepsite, je eigen anonieme I2P webserver - pas de bestanden onder <code>~/.i2p/eepsite/docroot/</code> (Linux), <p>Dit is je eepsite, je eigen anonieme I2P webserver - pas de bestanden onder <code>~/.i2p/eepsite/docroot/</code> (Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (Windows),
of <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), simpelweg aan of <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), simpelweg aan
en ze zijn bereikbaar door anderen zodra je onderstaande instructies hebt opgevolgd. en ze zijn bereikbaar door anderen zodra je onderstaande instructies hebt opgevolgd.
In I2P worden eepsites aangeduid met een 'destination', dit is een erg lange Base64 string. In I2P worden eepsites aangeduid met een 'destination', dit is een erg lange Base64 string.
@ -69,7 +69,7 @@
<li>In je browser, voel je eepsite naam in (<i>mijnsite</i>.i2p) en je komt hier hopelijk weer terug.</li></ul> <li>In je browser, voel je eepsite naam in (<i>mijnsite</i>.i2p) en je komt hier hopelijk weer terug.</li></ul>
<p>Voordat je de rest van de wereld over je nieuwe eepsite vertelt, zorg eerst voor wat content. <p>Voordat je de rest van de wereld over je nieuwe eepsite vertelt, zorg eerst voor wat content.
Ga naar <code>~/.i2p/eepsite/docroot/</code> (Linux), Ga naar <code>~/.i2p/eepsite/docroot/</code> (Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (Windows),
of <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), en vervang de index.html verwijs pagina met je eigen content. Virtual folders werken, dus kan je bestanden vanuit een subdirectory hosten zonder dat je een pagina met links naar deze files moet maken. Mocht je een template nodig hebben voor een basis site, weer vrij om <a href="pagetemplate.html">deze pagina</a> en <a href="lib/">deze content</a> te gebruiken en aan te passen!</p> of <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), en vervang de index.html verwijs pagina met je eigen content. Virtual folders werken, dus kan je bestanden vanuit een subdirectory hosten zonder dat je een pagina met links naar deze files moet maken. Mocht je een template nodig hebben voor een basis site, weer vrij om <a href="pagetemplate.html">deze pagina</a> en <a href="lib/">deze content</a> te gebruiken en aan te passen!</p>
<h2>Registreer je eigen .I2P Domein</h2> <h2>Registreer je eigen .I2P Domein</h2>
<p>Nu is het tijd om je eepsite toe te voegen aan een I2P adresboek gehost door een site <p>Nu is het tijd om je eepsite toe te voegen aan een I2P adresboek gehost door een site

View File

@ -36,7 +36,7 @@
Instalacja z paczek, działa jako usługa: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Instalacja z paczek, działa jako usługa: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(użytkownik)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(użytkownik)/Library/Application Support/i2p</code>

View File

@ -37,7 +37,7 @@
Pacote de instalação, em execução como um serviço: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Pacote de instalação, em execução como um serviço: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -37,7 +37,7 @@ Pentru a vă servi propriul conținut, pur și simplu editați fișierele din di
Instalarea pachetului, care rulează ca serviciu: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Instalarea pachetului, care rulează ca serviciu: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -37,7 +37,7 @@
Для установленного пакета, запущенного в виде сервиса: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Для установленного пакета, запущенного в виде сервиса: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -26,7 +26,7 @@
<p>Det här är din eepsite, din egen anonyma I2P-webbserver - redigera bara filerna <p>Det här är din eepsite, din egen anonyma I2P-webbserver - redigera bara filerna
under <code>~/.i2p/eepsite/docroot/</code> (Linux), under <code>~/.i2p/eepsite/docroot/</code> (Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (Windows),
eller <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), eller <code>/Users/(user)/Library/Application Support/i2p</code> (Mac),
så kommer andra kunna nå dem efter att du följt instruktionerna nedan. så kommer andra kunna nå dem efter att du följt instruktionerna nedan.
I I2P så adresseras eepsajter med en 'nyckel', som representeras som en väldigt lång Base64-sträng. I I2P så adresseras eepsajter med en 'nyckel', som representeras som en väldigt lång Base64-sträng.
@ -70,7 +70,7 @@
Förhoppningsvis fungerade det.</li> Förhoppningsvis fungerade det.</li>
<li>Innan du berättar för världen om den nya eepsajt borde du lägga till lite innehåll. <li>Innan du berättar för världen om den nya eepsajt borde du lägga till lite innehåll.
Gå till <code>~/.i2p/eepsite/docroot/</code> (Linux), Gå till <code>~/.i2p/eepsite/docroot/</code> (Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (Windows),
eller <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), eller <code>/Users/(user)/Library/Application Support/i2p</code> (Mac),
och ersätt omdirigeringssidan index.html med ditt eget innehåll. Virtuella mappar fungerar, så du kan serva filer från en och ersätt omdirigeringssidan index.html med ditt eget innehåll. Virtuella mappar fungerar, så du kan serva filer från en
underkatalog utan att behöva ge en sida med länkar till filer. Om du behöver en mall för en enkel sajt så underkatalog utan att behöva ge en sida med länkar till filer. Om du behöver en mall för en enkel sajt så

View File

@ -37,7 +37,7 @@
Paket kurulumu, hizmet olarak çalıştırmak: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code> Paket kurulumu, hizmet olarak çalıştırmak: <code>/var/lib/i2p/i2p-config/eepsite/docroot/</code>
</li> </li>
<li> <li>
<b>Windows</b><br><code>%APPDATA%\I2P\eepsite\docroot\</code> <b>Windows</b><br><code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code>
</li> </li>
<li> <li>
<b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code> <b>Mac</b><br><code>/Users/(user)/Library/Application Support/i2p</code>

View File

@ -26,7 +26,7 @@
<h2>I2P匿名网页服务快速指南</h2> <h2>I2P匿名网页服务快速指南</h2>
<p>这是您的eepsite您自己的匿名I2P网络服务器 - 只要编辑 <code>~/.i2p/eepsite/docroot/</code> (Linux), <p>这是您的eepsite您自己的匿名I2P网络服务器 - 只要编辑 <code>~/.i2p/eepsite/docroot/</code> (Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (Windows),
<code>/Users/(user)/Library/Application Support/i2p</code> (Mac), 下的文件,并且按照以下说明操作后,别人就可以访问了. <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), 下的文件,并且按照以下说明操作后,别人就可以访问了.
在I2P,eepsites是用一个很长的Base64字串"密钥"来寻址访问的. 在I2P,eepsites是用一个很长的Base64字串"密钥"来寻址访问的.
(这"密钥"有点类似于IP地址,且会显示在eepsite的I2PTunnel上 (这"密钥"有点类似于IP地址,且会显示在eepsite的I2PTunnel上
@ -61,7 +61,7 @@
<li>在您的浏览器内,输入您的 eepsite名称 (<i>something</i>.i2p)您应该会立刻返回这里. 希望它能生效.</li> <li>在您的浏览器内,输入您的 eepsite名称 (<i>something</i>.i2p)您应该会立刻返回这里. 希望它能生效.</li>
<li>在您向全世界宣告您的新eepsite前您应该增加一些内容. <li>在您向全世界宣告您的新eepsite前您应该增加一些内容.
<code>~/.i2p/eepsite/docroot/</code> (Linux), <code>~/.i2p/eepsite/docroot/</code> (Linux),
<code>%APPDATA%\I2P\eepsite\docroot\</code> (Windows), <code>%LOCALAPPDATA%\I2P\eepsite\docroot\</code> (Windows),
<code>/Users/(user)/Library/Application Support/i2p</code> (Mac), 并用自己的内容替换掉index.html重定向页面.虚拟文件夹会起作用,这样您就可以从一个子目录中提供文件服务而不用明确需要提供链接到文件的一个页面.如果您需要一个基本的网站模板, 请自由借来并适用 <a href="pagetemplate.html">本页</a><a href="lib/">内容</a> !</li> <code>/Users/(user)/Library/Application Support/i2p</code> (Mac), 并用自己的内容替换掉index.html重定向页面.虚拟文件夹会起作用,这样您就可以从一个子目录中提供文件服务而不用明确需要提供链接到文件的一个页面.如果您需要一个基本的网站模板, 请自由借来并适用 <a href="pagetemplate.html">本页</a><a href="lib/">内容</a> !</li>
</ul> </ul>
<h2>注册自己的.I2P域名</h2> <h2>注册自己的.I2P域名</h2>

View File

@ -2,7 +2,7 @@
<!-- <!--
# #
# If you have a 'split' directory installation, with configuration # If you have a 'split' directory installation, with configuration
# files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), # files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows),
# or /Users/(user)/Library/Application Support/i2p (Mac), be sure to # or /Users/(user)/Library/Application Support/i2p (Mac), be sure to
# edit the file in the configuration directory, NOT the install directory. # edit the file in the configuration directory, NOT the install directory.
# When running as a Linux daemon, the configuration directory is /var/lib/i2p # When running as a Linux daemon, the configuration directory is /var/lib/i2p

View File

@ -5,7 +5,7 @@
<!-- ========================================================================= --> <!-- ========================================================================= -->
<!-- If you have a 'split' directory installation, with configuration --> <!-- If you have a 'split' directory installation, with configuration -->
<!-- files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), --> <!-- files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows), -->
<!-- or /Users/(user)/Library/Application Support/i2p (Mac), be sure to --> <!-- or /Users/(user)/Library/Application Support/i2p (Mac), be sure to -->
<!-- edit the file in the configuration directory, NOT the install directory. --> <!-- edit the file in the configuration directory, NOT the install directory. -->
<!-- When running as a Linux daemon, the configuration directory is --> <!-- When running as a Linux daemon, the configuration directory is -->
@ -66,8 +66,8 @@
<!-- See https://wiki.eclipse.org/Jetty/Howto/Configure_SSL --> <!-- See https://wiki.eclipse.org/Jetty/Howto/Configure_SSL -->
<!-- for alternate methods. --> <!-- for alternate methods. -->
<!-- <!--
keytool -genkey -keystore ~/.i2p/eepsite/etc/keystore.ks -storepass changeit -alias b32 -dname CN=biglongkey.b32.i2p,OU=Eepsite,O=XX,L=XX,ST=XX,C=XX -validity 3652 -keyalg RSA -keysize 2048 -keypass myKeyPassword keytool -genkey -keystore ~/.i2p/eepsite/etc/keystore.ks -storepass changeit -alias b32 -dname CN=biglongkey.b32.i2p,OU=Eepsite,O=XX,L=XX,ST=XX,C=XX -validity 3652 -keyalg RSA -keysize 2048 -keypass myKeyPassword
keytool -genkey -keystore ~/.i2p/eepsite/etc/keystore.ks -storepass changeit -alias hostname -dname CN=example.i2p,OU=Eepsite,O=XX,L=XX,ST=XX,C=XX -validity 3652 -keyalg RSA -keysize 2048 -keypass myKeyPassword keytool -genkey -keystore ~/.i2p/eepsite/etc/keystore.ks -storepass changeit -alias hostname -dname CN=example.i2p,OU=Eepsite,O=XX,L=XX,ST=XX,C=XX -validity 3652 -keyalg RSA -keysize 2048 -keypass myKeyPassword
chmod 600 ~/.i2p/eepsite/etc/keystore.ks chmod 600 ~/.i2p/eepsite/etc/keystore.ks
--> -->
<!-- --> <!-- -->

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<!-- This configuration supports Jetty 9. Do not remove this line. --> <!-- This configuration supports Jetty 9. Do not remove this line. -->
@ -32,7 +32,7 @@
<!-- Note that the XML encoding for this file is UTF-8. --> <!-- Note that the XML encoding for this file is UTF-8. -->
<!-- --> <!-- -->
<!-- If you have a 'split' directory installation, with configuration --> <!-- If you have a 'split' directory installation, with configuration -->
<!-- files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), --> <!-- files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows), -->
<!-- or /Users/(user)/Library/Application Support/i2p (Mac), be sure to --> <!-- or /Users/(user)/Library/Application Support/i2p (Mac), be sure to -->
<!-- edit the file in the configuration directory, NOT the install directory. --> <!-- edit the file in the configuration directory, NOT the install directory. -->
<!-- When running as a Linux daemon, the configuration directory is --> <!-- When running as a Linux daemon, the configuration directory is -->
@ -103,7 +103,7 @@
SocketConnector below. SocketConnector below.
Do not use for gij or JamVM - comment this out, and uncomment the Do not use for gij or JamVM - comment this out, and uncomment the
SocketConnector below. SocketConnector below.
--> -->
<Call name="addConnector"> <Call name="addConnector">
<Arg> <Arg>
<New class="org.eclipse.jetty.server.ServerConnector"> <New class="org.eclipse.jetty.server.ServerConnector">
@ -152,7 +152,7 @@
--> -->
<!-- =========================================================== --> <!-- =========================================================== -->
<!-- Set handler Collection Structure --> <!-- Set handler Collection Structure -->
<!-- =========================================================== --> <!-- =========================================================== -->
<Set name="handler"> <Set name="handler">
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection"> <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">

View File

@ -1,7 +1,7 @@
# NOTE: This I2P config file must use UTF-8 encoding # NOTE: This I2P config file must use UTF-8 encoding
# #
# If you have a 'split' directory installation, with configuration # If you have a 'split' directory installation, with configuration
# files in ~/.i2p (Linux), %APPDATA%\I2P (Windows), # files in ~/.i2p (Linux), %LOCALAPPDATA%\I2P (Windows),
# or /Users/(user)/Library/Application Support/i2p (Mac), be sure to # or /Users/(user)/Library/Application Support/i2p (Mac), be sure to
# edit the file in the configuration directory, NOT the install directory. # edit the file in the configuration directory, NOT the install directory.
# When running as a Linux daemon, the configuration directory is /var/lib/i2p # When running as a Linux daemon, the configuration directory is /var/lib/i2p

View File

@ -19,7 +19,7 @@ import net.i2p.util.SystemVersion;
* Get a working directory for i2p. * Get a working directory for i2p.
* *
* For the location, first try the system property i2p.dir.config * For the location, first try the system property i2p.dir.config
* Next try $HOME/.i2p on linux or %APPDATA%\I2P on Windows. * Next try $HOME/.i2p on linux or %LOCALAPPDATA%\I2P on Windows.
* *
* If the dir exists, return it. * If the dir exists, return it.
* Otherwise, attempt to create it, and copy files from the base directory. * Otherwise, attempt to create it, and copy files from the base directory.
@ -80,14 +80,14 @@ public class WorkingDir {
} else { } else {
String home = System.getProperty("user.home"); String home = System.getProperty("user.home");
if (isWindows) { if (isWindows) {
String appdata = System.getenv("APPDATA"); String appdata = System.getenv("LOCALAPPDATA");
if (appdata != null) if (appdata != null)
home = appdata; home = appdata;
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT_WINDOWS); dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT_WINDOWS);
} else if (SystemVersion.isMac()) { } else if (SystemVersion.isMac()) {
String appdata = "/Library/Application Support/"; String appdata = "/Library/Application Support/";
File old = new File(home,WORKING_DIR_DEFAULT); File old = new File(home,WORKING_DIR_DEFAULT);
if (old.exists() && old.isDirectory()) if (old.exists() && old.isDirectory())
dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT); dirf = new SecureDirectory(home, WORKING_DIR_DEFAULT);
else { else {
home = home+appdata; home = home+appdata;
@ -418,7 +418,7 @@ public class WorkingDir {
/** /**
* Recursive copy a file or dir to a dir * Recursive copy a file or dir to a dir
* *
* @param src file or directory, need not exist * @param src file or directory, need not exist
* @param targetDir the directory to copy to, will be created if it doesn't exist * @param targetDir the directory to copy to, will be created if it doesn't exist
* @return true for success OR if src does not exist * @return true for success OR if src does not exist
@ -456,7 +456,7 @@ public class WorkingDir {
} }
return rv; return rv;
} }
/** /**
* @param src not a directory, must exist * @param src not a directory, must exist
* @param dst not a directory, will be overwritten if existing, will be mode 600 * @param dst not a directory, will be overwritten if existing, will be mode 600
@ -487,7 +487,7 @@ public class WorkingDir {
/** /**
* Recursive touch all files in a dir to a given time * Recursive touch all files in a dir to a given time
* *
* @param target the directory or file to touch, must exist * @param target the directory or file to touch, must exist
* @param time the timestamp * @param time the timestamp
* @since 0.8.13 * @since 0.8.13
@ -508,5 +508,5 @@ public class WorkingDir {
touchRecursive(children[i], time); touchRecursive(children[i], time);
} }
} }
} }