allow Creation of gettext only with password, because it causes high cpu-usage.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2227 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent d083b15c4b
commit 032b3fdd94

@ -8,8 +8,8 @@
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0"> <body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#%env/templates/header.template%# #%env/templates/header.template%#
<h2>Gettext Locales</h2> <h2>Gettext Locales</h2>
<a href="Gettext.html?mode=1">Get empty gettext file</a> <a href="Gettext_p.html?mode=1">Get empty gettext file</a>
<form action="Gettext.html" method="GET"> <form action="Gettext_p.html" method="GET">
<input type="hidden" name="mode" value="1"> <input type="hidden" name="mode" value="1">
old file: <input type="text" name="oldfile" value="DATA/LOCALE"> old file: <input type="text" name="oldfile" value="DATA/LOCALE">
<input type="submit" value="get updated file"> <input type="submit" value="get updated file">

@ -1,15 +1,4 @@
import java.io.File; //Gettext_p.java
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import de.anomic.data.gettext;
import de.anomic.http.httpHeader;
import de.anomic.server.serverObjects;
import de.anomic.server.serverSwitch;
//Gettext.java
//------------ //------------
// part of YACY // part of YACY
// //
@ -32,7 +21,20 @@ import de.anomic.server.serverSwitch;
// along with this program; if not, write to the Free Software // along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
public class Gettext{ import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import de.anomic.data.gettext;
import de.anomic.http.httpHeader;
import de.anomic.server.serverObjects;
import de.anomic.server.serverSwitch;
public class Gettext_p{
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
serverObjects prop = new serverObjects(); serverObjects prop = new serverObjects();
Loading…
Cancel
Save