size_t s = filename.length();
WxConsole* C = mWxConsole; //::GetInstance();
- if (C != 0)
+ // MessageManager::SetMessageLevel("All",9);
+ Interpreter* I = new Interpreter;
+
+ if ((s>3) && (filename[s-1]=='s')
+ && (filename[s-2]=='b')
+ && (filename[s-3]=='b')
+ && (filename[s-4]=='.'))
+ {
+ if (C!=0) C->SetStatusText(_T("Executing ")+mwxURL->GetValue());
+ I->InterpretFile(filename);
+ }
+ else
{
- if ((s>3) && (filename[s-1]=='s')
- && (filename[s-2]=='b')
- && (filename[s-3]=='b')
- && (filename[s-4]=='.'))
- {
- C->SetStatusText(_T("Executing ")+mwxURL->GetValue());
- C->InterpretFile(filename);
- }
- else
- {
- C->SetStatusText(_T("The current page is not a bbs file : cannot execute it"));
- }
+ if (C!=0) C->SetStatusText(_T("The current page is not a bbs file : cannot execute it"));
}
+
+ delete I;
/*
std::string bbdoc = ConfigurationFile::GetInstance().Get_url();
bbdoc += "/bbdoc";