Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.826 2003/03/26 15:27:04 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.827 2003/03/26 15:38:50 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:5056:    {    line = String.trim_all_whites( line );    code += sprintf( " realm = %O;\n", line );    }    else    m->report_notice( LOC_M( 60,"Syntax error in security patterns: "    "Expected 'allow' or 'deny'\n" ));    shorted = sscanf( line, "%s return", line );       +  // Notes on the state variable: +  // +  // It has several potential entries (currently "ip", "user", "group", +  // "time", "date", "referer", "language" and "luck"). +  // An entry exists in the mapping if a corresponding accept directive +  // has been executed. +  // The value in the mapping is 0 (zero) if a successful match against +  // the directive has been executed. +  // The value in the mapping is a mapping if authentication is required. +  // Otherwise the value in the mapping is 1 (one). +  // +  // If any entry in the state mapping contains a mapping, that entry +  // will be returned on exit. Otherwise, if there is any non-zero +  // entry in the state mapping it will be returned. If the state +  // mapping only contains zero's zero will be returned. +     foreach(security_checks, array(string|int|array) check)    {    array args;    if (sizeof(args = array_sscanf(line, check[0])) == check[1])    {    patterns++;    string thr_code = "1";    // run instructions.    foreach(check[2], mixed instr )    {