pike.git / lib / modules / Tools.pmod / Standalone.pmod / httpserver.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/httpserver.pike:22:    switch (argv[-1])    {    case "--version":    exit(0, version);    case "--help":    exit(0, doc);    default:    my_port=(int)argv[-1];    }    Protocols.HTTP.Server.Port(handle_request, my_port); -  write("Listening on " + my_port + "\n"); +  write("%s is now accessible on port %d through http, " +  "without password.\n", getcwd(), my_port);    return -1;   }      string dirlist( string dir )   {    string res =    "<html><head>\n"    "<style>a { text-decoration: none; }\n"    ".odd { background-color:#efefef; }\n"    ".even { background-color:#fefefe; }\n"