Roxen.git / server / config_interface / actions / debug_summary.pike

version» Context lines:

Roxen.git/server/config_interface/actions/debug_summary.pike:1:   /* -  * $Id: debug_summary.pike,v 1.12 2006/05/11 13:30:40 mast Exp $ +  * $Id: debug_summary.pike,v 1.13 2006/09/11 14:30:38 wellhard Exp $    */   #include <stat.h>   #include <roxen.h>   //<locale-token project="admin_tasks">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("admin_tasks",X,Y)      constant action = "debug_info";      LocaleString name= LOCALE(163,"Debug summary");   LocaleString doc = LOCALE(164,
Roxen.git/server/config_interface/actions/debug_summary.pike:157:    {    res+=make_headline("Configuration: "+configuration)+"\n";    res+=indent(make_configuration_summary(configuration),1);    }    return res;   }      mixed parse( RequestID id )   {    string res; -  string debuglog = roxen_path("$LOGDIR/debug/default.1"); +  string debuglog = roxen_path("$LOGFILE");       if (id->variables->download &&    id->variables->download == "summary") {    res = make_headline(LOCALE(163,"Debug summary"))+"\n";    res += make_summary();    mapping ret = Roxen.http_string_answer(res, "application/octet-stream");    ret["extra_heads"] = ([]);    Roxen.add_http_header(ret["extra_heads"], "Content-Disposition",    "attachment; filename=debug-summary.txt");    return ret;