|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
//Frankfurt, Germany, 2004, 2005
|
|
|
|
|
//
|
|
|
|
|
//This File is contributed by Alexander Schier
|
|
|
|
|
//last change: 27.02.2005
|
|
|
|
|
//last change: 29.06.2005 by Marc Nause
|
|
|
|
|
//
|
|
|
|
|
//This program is free software; you can redistribute it and/or modify
|
|
|
|
|
//it under the terms of the GNU General Public License as published by
|
|
|
|
@ -54,6 +54,7 @@ import java.util.Properties;
|
|
|
|
|
import de.anomic.http.httpHeader;
|
|
|
|
|
import de.anomic.server.serverObjects;
|
|
|
|
|
import de.anomic.server.serverSwitch;
|
|
|
|
|
import de.anomic.tools.unHtml;
|
|
|
|
|
|
|
|
|
|
public class EditProfile_p {
|
|
|
|
|
|
|
|
|
@ -69,7 +70,7 @@ public class EditProfile_p {
|
|
|
|
|
} finally {
|
|
|
|
|
if (fileIn != null) try { fileIn.close(); } catch (Exception e) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(post != null && post.containsKey("set")){
|
|
|
|
|
profile.setProperty("name", (String)post.get("name"));
|
|
|
|
|
profile.setProperty("nickname", (String)post.get("nickname"));
|
|
|
|
@ -83,18 +84,18 @@ public class EditProfile_p {
|
|
|
|
|
|
|
|
|
|
profile.setProperty("comment", (String)post.get("comment"));
|
|
|
|
|
}
|
|
|
|
|
prop.put("name", profile.getProperty("name", ""));
|
|
|
|
|
prop.put("nickname", profile.getProperty("nickname", ""));
|
|
|
|
|
prop.put("homepage", profile.getProperty("homepage", ""));
|
|
|
|
|
prop.put("email", profile.getProperty("email", ""));
|
|
|
|
|
|
|
|
|
|
prop.put("icq", profile.getProperty("icq", ""));
|
|
|
|
|
prop.put("jabber", profile.getProperty("jabber", ""));
|
|
|
|
|
prop.put("yahoo", profile.getProperty("yahoo", ""));
|
|
|
|
|
prop.put("msn", profile.getProperty("msn", ""));
|
|
|
|
|
prop.put("name", (new unHtml(profile.getProperty("name", ""))).un());
|
|
|
|
|
prop.put("nickname", (new unHtml(profile.getProperty("nickname", ""))).un());
|
|
|
|
|
prop.put("homepage", (new unHtml(profile.getProperty("homepage", ""))).un());
|
|
|
|
|
prop.put("email", (new unHtml(profile.getProperty("email", ""))).un());
|
|
|
|
|
|
|
|
|
|
prop.put("comment", profile.getProperty("comment", ""));
|
|
|
|
|
prop.put("icq", (new unHtml(profile.getProperty("icq", ""))).un());
|
|
|
|
|
prop.put("jabber", (new unHtml(profile.getProperty("jabber", ""))).un());
|
|
|
|
|
prop.put("yahoo", (new unHtml(profile.getProperty("yahoo", ""))).un());
|
|
|
|
|
prop.put("msn", (new unHtml(profile.getProperty("msn", ""))).un());
|
|
|
|
|
|
|
|
|
|
prop.put("comment", (new unHtml(profile.getProperty("comment", ""))).un());
|
|
|
|
|
|
|
|
|
|
FileOutputStream fileOut = null;
|
|
|
|
|
try{
|
|
|
|
|
fileOut = new FileOutputStream(new File("DATA/SETTINGS/profile.txt"));
|
|
|
|
|