Branch: Tag:

2001-08-28

2001-08-28 15:48:01 by Per Hedbor <ph@opera.com>

Fixed a replicate variable. Got rid of the 'shared' database, since it was more or less a clone of the 'replicate' database anyway (in it's intentions). Fixed [Bug 2075 (#2075)]

Rev: server/arg_cache_plugins/replicate.pike:1.4
Rev: server/base_server/global_variables.pike:1.82
Rev: server/base_server/module.pike:1.129
Rev: server/base_server/prototypes.pike:1.36
Rev: server/base_server/roxen.pike:1.718
Rev: server/config_interface/dbs/browser.pike:1.22
Rev: server/config_interface/dbs/index.html:1.9
Rev: server/config_interface/dbs/new_db.pike:1.7
Rev: server/config_interface/sites/create_site.pike:1.8
Rev: server/config_interface/sites/create_site_with_template.pike:1.20
Rev: server/etc/modules/DBManager.pmod:1.26
Rev: server/etc/test/tests/db/RoxenTest_dbmanager.pike:1.5
Rev: server/modules/configuration/config_tags.pike:1.161
Rev: server/modules/security/auth_httpcookie.pike:1.8
Rev: server/modules/tags/accessed.pike:1.45

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.717 2001/08/27 13:49:23 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.718 2001/08/28 15:47:59 per Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
3004:    name = id;    draw_function = draw_func;    init_db(); -  // Support that the 'shared' database moves. +  // Support that the 'local' database moves.    master()->resolv( "DBManager.add_dblist_changed_callback" )( init_db );       // Always remove entries that are older than one week.
3596:    }    function sp = master()->resolv("DBManager.set_permission");    catch(sp( "docs", conf, 1 )); // the docs db can be non-existant -  sp( "shared", conf, 2 ); +     sp( "local", conf, 2 );    }    if(err = catch
3994:       restore_global_variables(); // restore settings...    +  if( query("replicate" ) ) +  { +  report_notice( "Enabling replication support\n" +  "Please note that this is very much work in progress\n"); +  add_constant( "REPLICATE", 1 ); +  } +     // Dangerous...    mixed tmp_root;    if(tmp_root = Getopt.find_option(argv, "r", "root")) fix_root(tmp_root);