Branch: Tag:

2001-08-22

2001-08-22 19:23:08 by Per Hedbor <ph@opera.com>

New feature in the database browser: Database groups.

Rev: server/base_server/roxen.pike:1.708
Rev: server/config_interface/dbs/browser.pike:1.20
Rev: server/config_interface/dbs/db_matrix.pike:1.15
Rev: server/config_interface/dbs/edit_group.pike:1.1
Rev: server/config_interface/dbs/index.html:1.7
Rev: server/config_interface/dbs/new_db.pike:1.5
Rev: server/config_interface/dbs/new_group.pike:1.1
Rev: server/config_interface/dbs/subtabs.pike:1.10
Rev: server/etc/modules/DBManager.pmod:1.25

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.707 2001/08/22 15:41:24 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.708 2001/08/22 19:23:07 per Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
3029:    if(catch(QUERY("SELECT md5 FROM "+name+" WHERE id=0")))    {    master()->resolv("DBManager.is_module_table") -  ( 0, "shared", name, +  ( 0, "local", name,    "The argument cache, used to map between "    "a short unique string and an argument "    "mapping" );
3049:    // compiled.    cache = ([]);    function f = master()->resolv( "DBManager.cached_get" ); -  get_db = lambda() { return f("shared"); }; +  get_db = lambda() { return f("local"); };    setup_table( );    }   
3153:    ensure_secret();    object crypto = Crypto.arcfour();    crypto->set_encrypt_key( secret ); -  a = Gmp.mpz( a, 36 )->digits( 256 ); +  if( catch( a = Gmp.mpz( a, 36 )->digits( 256 ) ) ) +  return 0; // Not very likely to work...    a = crypto->crypt( a );    int i, j;    if( sscanf( a, "%d\327%d", i, j ) != 2 )