StringTokenizer st = new StringTokenizer(ar1, ";");
int idf = Integer.parseInt(st.nextToken());
int idt = Integer.parseInt(st.nextToken());
int idp = Integer.parseInt(st.nextToken());
Forum f = ForumsBBSManager.getInstance().getForumByID(idf);
if(f == null)
{
ShowBoard sb = new ShowBoard("<html><body><br><br><center>the forum: "+idf+" does not exist !</center><br><br></body></html>","101");
activeChar.sendPacket(sb);
activeChar.sendPacket(new ShowBoard(null,"102"));
activeChar.sendPacket(new ShowBoard(null,"103"));
}
else
{
Topic t = f.gettopic(idt);
if(t == null)
{
ShowBoard sb = new ShowBoard("<html><body><br><br><center>the topic: "+idt+" does not exist !</center><br><br></body></html>","101");
activeChar.sendPacket(sb);
activeChar.sendPacket(new ShowBoard(null,"102"));
activeChar.sendPacket(new ShowBoard(null,"103"));
}
else
{
CPost cp = null;
Post p = getGPosttByTopic(t);
if(p != null)
{
cp = p.getCPost(idp);
}
if(cp == null)
{
ShowBoard sb = new ShowBoard("<html><body><br><br><center>the post: "+idp+" does not exist !</center><br><br></body></html>","101");
activeChar.sendPacket(sb);
activeChar.sendPacket(new ShowBoard(null,"102"));
activeChar.sendPacket(new ShowBoard(null,"103"));
}
else
{
p.getCPost(idp).postTxt = ar4;
p.updatetxt(idp);
parsecmd("_bbsposts;read;"+ f.getID() +";"+ t.getID(),activeChar);
}
}
}
}