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.4 2002/04/22 11:32:39 anders Exp $ +  * $Id: debug_summary.pike,v 1.5 2002/05/15 14:43:32 anders 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(0,"Debug Summary");   LocaleString doc = LOCALE(0,
Roxen.git/server/config_interface/actions/debug_summary.pike:75:    res+=sprintf(" %-30s %s\n", "Platform:", "NT");   #else    res+=sprintf(" %-30s %s %s %s\n", "Platform:",    uname()->sysname||"",    uname()->release||"",    uname()->machine);   #endif       res += "\n";    res += make_headline("Local environment variables"); -  res += indent(Stdio.read_file("../local/environment"), 1); + #ifdef __NT__ +  res += indent(Stdio.read_file("../local/environment.ini")||"", 1); + #else +  res += indent(Stdio.read_file("../local/environment")||"", 1); + #endif       res += "\n";    res += make_headline("System environment variables");    foreach(sort(indices(getenv())), string envvar)    res+=sprintf(" %-30s %s\n", envvar+":", getenv(envvar));       return res;   }      string make_variables_summary(mapping vars)