Ignore:
Timestamp:
Mar 7, 2014, 10:30:38 AM (10 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/MyPiwiShop/maintain.inc.php

    r27568 r27589  
    1212  function install($plugin_version, &$errors=array())
    1313  {
    14     global $conf, $prefixeTable;
     14    global $prefixeTable;
    1515
    16     // add a new table
    1716  $tables = mps_get_tables();
    1817
     
    4039        )
    4140      );
    42         }
    43        
     41 
    4442        pwg_query('
    4543        CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_product` (
     
    5250        ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    5351        ;');
    54        
     52
    5553        pwg_query('
    5654        CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_prod_img` (
     
    6058        ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    6159        ;');
    62        
     60
    6361        pwg_query('
    6462        CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_option` (
     
    9088        ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    9189        ;');
     90  } 
     91    $this->installed = true;
    9292       
    93     $this->installed = true;
    94   }
    95  
     93}
    9694  /**
    9795   * plugin activation
     
    9997  function activate($plugin_version, &$errors=array())
    10098  {
    101     if (!$this->installed)
     99
     100   if (!$this->installed)
    102101    {
    103102
     
    105104    }
    106105  }
    107 
    108   /**
    109    * plugin deactivation
    110    */
     106 
    111107  function deactivate()
    112108  {
    113109  }
     110
    114111
    115112  /**
     
    119116  {
    120117    global $prefixeTable;
    121 
     118        echo('ret'),
    122119    // delete table
    123120    pwg_query('DROP TABLE `'. $prefixeTable .'mps_conf`;');
     
    129126 }
    130127}
    131 
    132128
    133129function mps_get_tables()
     
    152148  return $tables;
    153149}
     150
Note: See TracChangeset for help on using the changeset viewer.