Skip to content

Commit

Permalink
allow Creation of gettext only with password, because it causes high …
Browse files Browse the repository at this point in the history
…cpu-usage.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2227 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Jun 21, 2006
1 parent d083b15 commit 032b3fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions htroot/Gettext.html → htroot/Gettext_p.html
Expand Up @@ -8,8 +8,8 @@
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
#%env/templates/header.template%#
<h2>Gettext Locales</h2>
<a href="Gettext.html?mode=1">Get empty gettext file</a>
<form action="Gettext.html" method="GET">
<a href="Gettext_p.html?mode=1">Get empty gettext file</a>
<form action="Gettext_p.html" method="GET">
<input type="hidden" name="mode" value="1">
old file: <input type="text" name="oldfile" value="DATA/LOCALE">
<input type="submit" value="get updated file">
Expand Down
28 changes: 15 additions & 13 deletions htroot/Gettext.java → htroot/Gettext_p.java
@@ -1,15 +1,4 @@
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;

//Gettext.java
//Gettext_p.java
//------------
// part of YACY
//
Expand All @@ -32,7 +21,20 @@
// along with this program; if not, write to the Free Software
// 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) {
serverObjects prop = new serverObjects();

Expand Down

0 comments on commit 032b3fd

Please sign in to comment.