Roxen.git / server / etc / modules / Roxen.pmod

version» Context lines:

Roxen.git/server/etc/modules/Roxen.pmod:1:   // This is a roxen pike module. Copyright © 1999 - 2000, Roxen IS.   // - // $Id: Roxen.pmod,v 1.91 2001/05/22 20:41:37 nilsson Exp $ + // $Id: Roxen.pmod,v 1.92 2001/05/30 17:27:10 nilsson Exp $      #include <roxen.h>   #include <config.h>   #include <version.h>   #include <module.h>   #include <variables.h>   #include <stat.h>   #define roxen roxenp()      #ifdef HTTP_DEBUG
Roxen.git/server/etc/modules/Roxen.pmod:2686:    case "filesize": return ENCODE_RXML_INT(c->id->misc->defines[" _stat"]?    c->id->misc->defines[" _stat"][1]:-4, type);    case "self": return ENCODE_RXML_TEXT( (c->id->not_query/"/")[-1], type);    case "ssl-strength":    c->id->misc->cacheable = 0;    if (!c->id->my_fd || !c->id->my_fd->session) return ENCODE_RXML_INT(0, type);    return ENCODE_RXML_INT(c->id->my_fd->session->cipher_spec->key_bits, type);    case "dir":    array parts = c->id->not_query/"/";    return ENCODE_RXML_TEXT( parts[..sizeof(parts)-2]*"/"+"/", type); +  case "counter": +  return ENCODE_RXML_INT(c->id->misc->internal_counter++, type);    }    mixed val;    if(converter[var])    val = c->id->misc->defines[converter[var]];    else    val = c->id->misc->scope_page[var];    if( zero_type(val) ) return RXML.nil;    if (objectp (val) && val->rxml_var_eval) return val;    return ENCODE_RXML_TEXT(val, type);    }