Branch: Tag:

2001-03-08

2001-03-08 14:35:49 by Per Hedbor <ph@opera.com>

The module level security patterns now use the new authentication API. Placed a lot of modules in groups

Rev: server/base_server/configuration.pike:1.420
Rev: server/base_server/module.pike:1.111
Rev: server/base_server/roxen.pike:1.644
Rev: server/config_interface/dbs/browser.pike:1.10
Rev: server/config_interface/sites/config_left_item.pike:1.50
Rev: server/etc/modules/Roxen.pmod:1.72
Rev: server/modules/configuration/config_tags.pike:1.141
Rev: server/modules/database/sqltag.pike:1.76
Rev: server/modules/filesystems/filesystem.pike:1.96
Rev: server/modules/graphics/atlas.pike:1.4
Rev: server/modules/graphics/business.pike:1.140
Rev: server/modules/graphics/cimg.pike:1.38
Rev: server/modules/graphics/counter.pike:1.40
Rev: server/modules/graphics/gbutton.pike:1.78
Rev: server/modules/graphics/graphic_text.pike:1.260
Rev: server/modules/graphics/pimage.pike:1.25
Rev: server/modules/graphics/tablist.pike:1.52
Rev: server/modules/graphics/wiretap.pike:1.24
Rev: server/modules/scripting/piketag.pike:2.31
Rev: server/modules/security/auth_httpbasic.pike:1.5
Rev: server/modules/security/auth_httpcookie.pike:1.5
Rev: server/modules/security/userdb_system.pike:1.6
Rev: server/modules/tags/accessed.pike:1.41
Rev: server/modules/tags/additional_rxml.pike:1.11
Rev: server/modules/tags/awizard.pike:1.22
Rev: server/modules/tags/check_spelling.pike:1.16
Rev: server/modules/tags/countdown.pike:1.42
Rev: server/modules/tags/diremit.pike:1.7
Rev: server/modules/tags/email.pike:1.6
Rev: server/modules/tags/foldlist.pike:1.29
Rev: server/modules/tags/html_wash.pike:1.15
Rev: server/modules/tags/indirect_href.pike:1.26
Rev: server/modules/tags/killframe.pike:1.33
Rev: server/modules/tags/obox.pike:1.35
Rev: server/modules/tags/rxmlparse.pike:1.54
Rev: server/modules/tags/rxmltags.pike:1.208
Rev: server/modules/tags/sed.pike:1.11
Rev: server/modules/tags/ssi.pike:1.38
Rev: server/modules/tags/tablify.pike:1.63
Rev: server/modules/tags/translation_mod.pike:1.10
Rev: server/modules/tags/vform.pike:1.22
Rev: server/modules/tags/wizard_tag.pike:1.29
Rev: server/modules/tags/wizz.pike:1.2
Rev: server/protocols/http.pike:1.307

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.306 2001/02/27 02:54:17 per Exp $"; + constant cvs_version = "$Id: http.pike,v 1.307 2001/03/08 14:35:49 per Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
40:   #ifdef FD_DEBUG   #define MARK_FD(X) catch{REQUEST_WERR(X); mark_fd(my_fd->query_fd(), (X)+" "+remoteaddr);}   #else - #define MARK_FD(X) REQUEST_WERR(X) + #define MARK_FD(X)   #endif      #ifdef THROTTLING_DEBUG
67:      int time;    - int do_set_cookie; -  +    string raw_url;   int do_not_disconnect;   
682:    if(!supports->cookies)    config = prestate;    else -  if( do_set_cookie +  if( port_obj->set_cookie    && !cookies->RoxenUserID && strlen(not_query)    && not_query[0]=='/' && method!="PUT")    {
984:    MARK_FD("HTTP closed");    catch    { +  my_fd->set_blocking();    my_fd->close();    destruct(my_fd);    };
1885:    if(!raw) raw = s; else raw += s;       -  // The port has been closed, but old (probably keep-alive +  // The port has been closed, but old (probably keep-alive)    // connections remain. Close those connections.    if( !port_obj )    {    catch // paranoia    { -  +  my_fd->set_blocking();    my_fd->close();    destruct( my_fd );    destruct( );
2070:    })    {    report_error("Internal server error: " + describe_backtrace(err)); +  my_fd->set_blocking();    my_fd->close();    destruct( my_fd );    disconnect();
2145:    if(f)    {   // f->set_blocking(); -  do_set_cookie = c->set_cookie; +     MARK_FD("HTTP connection");    f->set_read_callback(got_data);    f->set_close_callback(end);
2162:   void chain(object f, object c, string le)   {    my_fd = f; +  f->set_read_callback(0); +  f->set_close_callback(end);    port_obj = c; -  do_set_cookie = c->set_cookie; +     processed = 0;    do_not_disconnect=-1; // Block destruction until we return.    MARK_FD("Kept alive");
2192:    do_not_disconnect = 0;    if(!processed)    { -  f->set_nonblocking(got_data, 0, end); +  f->set_read_callback(got_data); +  f->set_close_callback(end);    }    }   }