Changeset 15694 in spip-zone


Ignore:
Timestamp:
Oct 2, 2007, 10:49:46 PM (13 years ago)
Author:
pierre.andrews@…
Message:

on passe la base en auxiliaire, c'est plus mignon

Location:
_plugins_/_test_/honeypot/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/honeypot/base/honeypot_db.php

    r15666 r15694  
    2020
    2121
    22 $GLOBALS['honeypotdb_version'] = 1;
     22$GLOBALS['honeypotdb_version'] = 2;
    2323
    2424$spip_honeypot_cache = array(
     
    3131
    3232$spip_honeypot_cache_key = array(
    33                                                                  "UNIQUE" => "ip");
     33                                                                 "PRIMARY KEY" => "ip");
    3434
    35 global $tables_principales;
    36 $tables_principales['spip_honeypot_cache'] = array(
     35global $tables_auxiliaires;
     36$tables_auxiliaires['spip_honeypot_cache'] = array(
    3737                                                                                                   'field' => &$spip_honeypot_cache,
    3838                                                                                                   'key' => &$spip_honeypot_cache_key);
  • _plugins_/_test_/honeypot/base/honeypot_upgrade.php

    r15666 r15694  
    2626function honeypot_doupgrade() {
    2727  include_spip('base/honeypot_db');
    28   $installe = unserialize($GLOBALS['meta']['honeypot:installe']);
     28  $installe = $GLOBALS['meta']['honeypot:installe'];
    2929  $uptodate = $installe && ($installe == $GLOBALS['honeypotdb_version']);
    3030  if(!$uptodate) {
     31        honeypot_droptables();
    3132        include_spip('base/create');
    3233        include_spip('base/abstract_sql');
Note: See TracChangeset for help on using the changeset viewer.