Branch: Tag:

1997-02-07

1997-02-07 23:33:21 by Per Hedbor <ph@opera.com>

Fixes (pike .2 - .4)

Rev: server/base_server/db.pike:1.3
Rev: server/base_server/persistent.pike:1.4
Rev: server/etc/roxen_master.pike:1.19
Rev: server/modules/graphics/graphic_text.pike:1.25
Rev: server/protocols/http.pike:1.17

1: - string cvs_version="$Id: graphic_text.pike,v 1.24 1997/01/29 04:59:41 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.25 1997/02/07 23:33:20 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";
881:      #define FIX(Y,Z,X) do{if(!args->Y){if(cols){defines->X=Z;args->Y=Z;changed=1;}}else{defines->X=args->Y;if(args->Y[0]!='#'){args->Y=ns_color(parse_color(args->Y));changed=1;}}}while(0)    +  if(!search(id->client*"","Mosaic")) +  { +  FIX(bgcolor,"#bfbfbf",bg); +  FIX(text, "#000000",fg); +  FIX(link, "#0000b0",link); +  FIX(alink, "#3f0f7b",alink); +  FIX(vlink, "#ff0000",vlink); +  } else {    FIX(bgcolor,"#c0c0c0",bg); -  FIX(text,"#000000",fg); -  FIX(link,"#0000ff",link); -  FIX(alink,"#00ffff",alink); -  FIX(vlink,"#2000ee",vlink); -  if(changed) -  return ("<body "+make_args(args)+">"); +  FIX(text, "#000000",fg); +  FIX(link, "#0000ee",link); +  FIX(alink, "#ff0000",alink); +  FIX(vlink, "#551a8b",vlink);    } -  +  if(changed) return ("<body "+make_args(args)+">"); + }      string tag_fix_color(string tagname, mapping args, object id, object file,    mapping defines)