Changeset 27589 for extensions/MyPiwiShop/maintain.inc.php
- Timestamp:
- Mar 7, 2014, 10:30:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/MyPiwiShop/maintain.inc.php
r27568 r27589 12 12 function install($plugin_version, &$errors=array()) 13 13 { 14 global $ conf, $prefixeTable;14 global $prefixeTable; 15 15 16 // add a new table17 16 $tables = mps_get_tables(); 18 17 … … 40 39 ) 41 40 ); 42 } 43 41 44 42 pwg_query(' 45 43 CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_product` ( … … 52 50 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 53 51 ;'); 54 52 55 53 pwg_query(' 56 54 CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_prod_img` ( … … 60 58 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 61 59 ;'); 62 60 63 61 pwg_query(' 64 62 CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_option` ( … … 90 88 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 91 89 ;'); 90 } 91 $this->installed = true; 92 92 93 $this->installed = true; 94 } 95 93 } 96 94 /** 97 95 * plugin activation … … 99 97 function activate($plugin_version, &$errors=array()) 100 98 { 101 if (!$this->installed) 99 100 if (!$this->installed) 102 101 { 103 102 … … 105 104 } 106 105 } 107 108 /** 109 * plugin deactivation 110 */ 106 111 107 function deactivate() 112 108 { 113 109 } 110 114 111 115 112 /** … … 119 116 { 120 117 global $prefixeTable; 121 118 echo('ret'), 122 119 // delete table 123 120 pwg_query('DROP TABLE `'. $prefixeTable .'mps_conf`;'); … … 129 126 } 130 127 } 131 132 128 133 129 function mps_get_tables() … … 152 148 return $tables; 153 149 } 150
Note: See TracChangeset
for help on using the changeset viewer.