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.13 2006/09/11 14:30:38 wellhard Exp $ +  * $Id: debug_summary.pike,v 1.14 2010/01/27 10:01:06 mast 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:76: Inside #if defined(__NT__)
  #ifdef __NT__    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 += make_headline("Autoconfigured environment settings (local/environment)");   #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("Local environment settings (local/environment2)"); + #ifdef __NT__ +  res += indent(Stdio.read_file("../local/environment2.ini")||"", 1); + #else +  res += indent(Stdio.read_file("../local/environment2")||"", 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)   {    string res="";