Branch: Tag:

1999-11-05

1999-11-05 07:17:06 by Per Hedbor <ph@opera.com>

Ok, now the configuration interface works.

Rev: server/base_server/configuration.pike:1.217
Rev: server/base_server/module.pike:1.51
Rev: server/base_server/module_support.pike:1.32
Rev: server/base_server/roxen.pike:1.344
Rev: server/config_interface/standard/index.html:1.4
Rev: server/config_interface/standard/sites/add_module.inc:1.2
Rev: server/config_interface/standard/sites/create_site.pike:1.2
Rev: server/config_interface/standard/sites/global_module_page.inc:1.2
Rev: server/etc/include/module.h:1.25
Rev: server/modules/configuration/config_tags.pike:1.12

1:   /* -  * $Id: roxen.pike,v 1.343 1999/11/02 10:12:26 per Exp $ +  * $Id: roxen.pike,v 1.344 1999/11/05 07:17:05 per Exp $    *    * The Roxen Challenger main program.    *
7:    */      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.343 1999/11/02 10:12:26 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.344 1999/11/05 07:17:05 per Exp $";      object backend_thread;   object argcache;
1162:      void unregister_url( string url )   { +  report_debug("Unregister "+url+"\n");    if( urls[ url ] && urls[ url ]->port )    {    urls[ url ]->port->unref(url);
1557:    if( args["true-alpha"] )    true_alpha = 1;    -  if( args["background"] ) -  bgcolor = Image.Color( args["background"] ); +  if( args["background"] || args["background-color"]) +  bgcolor = Image.Color( (args["background"]||args["background-color"]) );       if( args["opaque-value"] )    {
1597:    }    }    -  if( args->maxwidth || args->maxheight ) +  if( args->maxwidth || args->maxheight || +  args["max-width"] || args["max-height"])    { -  int x = (int)args->maxwidth, y = (int)args->maxheight; +  int x = (int)args->maxwidth||(int)args["max-width"]; +  int y = (int)args->maxheight||(int)args["max-height"];    if( x && reply->xsize() > x )    {    reply = reply->scale( x, 0 );
1614:    }    }    +  if( bgcolor && alpha ) +  { +  reply = Image.Image( reply->xsize(), +  reply->ysize(), bgcolor ) +  ->paste_mask( reply, alpha ); +  } +     if( quant || (format=="gif") )    {    int ncols = quant||id->misc->defquant||32;
1637:    if( alpha )    enc_args->alpha = alpha;    -  if( bgcolor && alpha ) -  { -  reply = Image.Image( reply->xsize(), -  reply->ysize(), bgcolor ) -  ->paste_mask( reply, alpha ); -  } -  +     foreach( glob( "*-*", indices(args)), string n )    if(sscanf(n, "%*[^-]-%s", string opt ) == 2)    enc_args[opt] = (int)args[n];