forked from I2P_Developers/i2p.i2p
Console: Support stuffing form from params on /configplugins
This commit is contained in:
@ -45,10 +45,10 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
|
|||||||
} // pluginUpdateEnabled
|
} // pluginUpdateEnabled
|
||||||
if (clientshelper.isPluginInstallEnabled()) {
|
if (clientshelper.isPluginInstallEnabled()) {
|
||||||
%>
|
%>
|
||||||
<h3 id="pluginmanage"><a name="plugin"></a><%=intl._t("Plugin Installation")%></h3><p>
|
<h3 id="pluginmanage"><%=intl._t("Plugin Installation")%></h3><p>
|
||||||
<form action="configplugins" method="POST">
|
<form action="configplugins" method="POST">
|
||||||
<table id="plugininstall" class="configtable">
|
<table id="plugininstall" class="configtable">
|
||||||
<tr><td class="infohelp" colspan="2">
|
<tr id="url"><td class="infohelp" colspan="2">
|
||||||
<%=intl._t("Look for available plugins on {0}.", "<a href=\"http://i2pwiki.i2p/index.php?title=Plugins\" target=\"_blank\">i2pwiki.i2p</a>")%>
|
<%=intl._t("Look for available plugins on {0}.", "<a href=\"http://i2pwiki.i2p/index.php?title=Plugins\" target=\"_blank\">i2pwiki.i2p</a>")%>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><th colspan="2">
|
<tr><th colspan="2">
|
||||||
@ -58,7 +58,11 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
|
|||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||||
<b>URL:</b>
|
<b>URL:</b>
|
||||||
<input type="text" size="60" name="pluginURL" title="<%=intl._t("To install a plugin, enter the download URL:")%>" >
|
<%
|
||||||
|
String url = request.getParameter("pluginURL");
|
||||||
|
String value = url != null ? "value=\"" + url + '"' : "";
|
||||||
|
%>
|
||||||
|
<input type="text" size="60" name="pluginURL" title="<%=intl._t("To install a plugin, enter the download URL:")%>" <%=value%>>
|
||||||
</td>
|
</td>
|
||||||
<td class="optionsave" align="right">
|
<td class="optionsave" align="right">
|
||||||
<input type="submit" name="action" class="default hideme" value="<%=intl._t("Install Plugin")%>" />
|
<input type="submit" name="action" class="default hideme" value="<%=intl._t("Install Plugin")%>" />
|
||||||
@ -69,14 +73,25 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
|
|||||||
</table></form>
|
</table></form>
|
||||||
<form action="configplugins" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
|
<form action="configplugins" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
|
||||||
<table id="plugininstall2" class="configtable">
|
<table id="plugininstall2" class="configtable">
|
||||||
<tr><th colspan="2">
|
<tr id="file"><th colspan="2">
|
||||||
<a name="plugin"></a><%=intl._t("Installation from File")%>
|
<%=intl._t("Installation from File")%>
|
||||||
</th></tr>
|
</th></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||||
<b><%=intl._t("Select xpi2p or su3 file")%>:</b>
|
<b><%=intl._t("Select xpi2p or su3 file")%>:</b>
|
||||||
|
<%
|
||||||
|
String file = request.getParameter("pluginFile");
|
||||||
|
if (file != null) {
|
||||||
|
%>
|
||||||
|
<input type="text" size="60" name="pluginFile" value="<%=file%>">
|
||||||
|
<%
|
||||||
|
} else {
|
||||||
|
%>
|
||||||
<input type="file" name="pluginFile" accept=".xpi2p,.su3" >
|
<input type="file" name="pluginFile" accept=".xpi2p,.su3" >
|
||||||
|
<%
|
||||||
|
}
|
||||||
|
%>
|
||||||
</td>
|
</td>
|
||||||
<td class="optionsave" align="right">
|
<td class="optionsave" align="right">
|
||||||
<input type="submit" name="action" class="download" value="<%=intl._t("Install Plugin from File")%>" />
|
<input type="submit" name="action" class="download" value="<%=intl._t("Install Plugin from File")%>" />
|
||||||
@ -88,7 +103,7 @@ input.default { width: 1px; height: 1px; visibility: hidden; }
|
|||||||
} // pluginInstallEnabled
|
} // pluginInstallEnabled
|
||||||
if (clientshelper.isPluginUpdateEnabled()) {
|
if (clientshelper.isPluginUpdateEnabled()) {
|
||||||
%>
|
%>
|
||||||
<h4 id="updateplugins" class="embeddedtitle"><a name="plugin"></a><%=intl._t("Update All Plugins")%></h4>
|
<h4 id="updateplugins" class="embeddedtitle"><%=intl._t("Update All Plugins")%></h4>
|
||||||
<div class="formaction" id="pluginupdater">
|
<div class="formaction" id="pluginupdater">
|
||||||
<form action="configplugins" method="POST">
|
<form action="configplugins" method="POST">
|
||||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||||
|
Reference in New Issue
Block a user