Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.24 1997/09/27 13:24:52 grubba Exp $ */ + /* $Id: module.pike,v 1.25 1997/10/20 15:16:59 grubba Exp $ */      #include <module.h>      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;   string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));
Roxen.git/server/base_server/module.pike:466:    } else {    report_error(sprintf("Syntax error in Security:Patterns directive: "    "line=\"%s\"\n", sl));    }    }    return patterns;   }      mixed stat_file(string f, object id){}   mixed find_dir(string f, object id){} + mapping(string:array(mixed)) find_dir_stat(string f, object id) + { +  array(string) files = find_dir(f, id); +  mapping(string:array(mixed)) res = ([]); +  +  foreach(files || ({}), string f) { +  array(mixed) st = stat_file(f, id); +  if (st) { +  res[f] = st; +  } +  } +  return(res); + }   mixed real_file(string f, object id){}      object get_font_from_var(string base)   {    int weight, slant;    switch(query(base+"_weight"))    {    case "light": weight=-1; break;    default: weight=0; break;    case "bold": weight=1; break;    case "black": weight=2; break;    }    switch(query(base+"_slant"))    {    case "obligue": slant=-1; break;    default: slant=0; break;    case "italic": slant=1; break;    }    return get_font(query(base+"_font"), 32, weight, slant, "left", 0, 0);   }