1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
#include <roxen.h> 
//<locale-token project="roxen_config">LOCALE</locale-token> 
#define LOCALE(X,Y)   _STR_LOCALE("roxen_config",X,Y) 
 
mapping parse( RequestID id ) 
{ 
  User u = id->conf->authenticate( id, roxen.config_userdb_module ); 
  roxen->error_log = ([]); 
  report_notice(sprintf(LOCALE(298, 
                               "Event log cleared by %s from %s")+"\n", 
                        u?u->name():"a user", 
                        (gethostbyaddr(id->remoteaddr)    ? 
                         gethostbyaddr(id->remoteaddr)[0] : id->remoteaddr)) 
                ); 
  string wizid = Roxen.parse_rxml("&usr.set-wiz-id;", id); 
  return Roxen.http_redirect( "../global_settings/?section=event_log&" + wizid, id ); 
}