[198] | 1 | <?php |
---|
| 2 | /***************************************************************************\ |
---|
| 3 | Plugin : magusine |
---|
| 4 | Licence : GPL |
---|
| 5 | Auteurs : Stéphane Noël, Philippe Vanderlinden |
---|
| 6 | Infos : http://www.spip-contrib.net/Le-plugin-Magusine |
---|
| 7 | http://www.magunews.net/spip.php?rubrique645 |
---|
| 8 | |
---|
| 9 | $LastChangedRevision: 12345 $ |
---|
| 10 | $LastChangedBy: bubu $ |
---|
| 11 | $LastChangedDate: 2008-03-21 15:50:47 +0100 (ven, 21 mar 2008) $ |
---|
| 12 | \***************************************************************************/ |
---|
| 13 | |
---|
| 14 | //include_spip('base/serial'); // pour eviter une reinit posterieure des tables modifiees |
---|
| 15 | |
---|
| 16 | global $tables_principales; |
---|
| 17 | global $tables_auxiliaires; |
---|
| 18 | |
---|
| 19 | // déclaration de toutes les tables |
---|
| 20 | |
---|
| 21 | // bloclibre |
---|
| 22 | $spip_arty_bloclibre = array( |
---|
| 23 | "id_bloc_libre" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 24 | "titre" => "VARCHAR(255) NOT NULL", |
---|
| 25 | "contenu" => "TEXT", |
---|
| 26 | "lien" => "VARCHAR(255) NOT NULL", |
---|
| 27 | ); |
---|
| 28 | |
---|
| 29 | $spip_arty_bloclibre_key = array( |
---|
| 30 | "PRIMARY KEY" => "id_bloc_libre" |
---|
| 31 | ); |
---|
| 32 | |
---|
| 33 | $tables_principales['spip_arty_bloclibre'] = array('field' => &$spip_arty_bloclibre, 'key' => &$spip_arty_bloclibre_key); |
---|
| 34 | |
---|
| 35 | // bloclibreassoc |
---|
| 36 | $spip_arty_bloclibreassoc = array( |
---|
| 37 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 38 | "type" => "VARCHAR(255) NOT NULL", |
---|
| 39 | "id_bloc_libre" => "bigint(21)", |
---|
| 40 | "id" => "bigint(21)", |
---|
| 41 | "lang" => "VARCHAR(32)", |
---|
| 42 | ); |
---|
| 43 | |
---|
| 44 | $spip_arty_bloclibreassoc_key = array( |
---|
| 45 | "PRIMARY KEY" => "id_assoc" |
---|
| 46 | ); |
---|
| 47 | |
---|
| 48 | $tables_principales['spip_arty_bloclibreassoc'] = array('field' => &$spip_arty_bloclibreassoc, 'key' => &$spip_arty_bloclibreassoc_key); |
---|
| 49 | |
---|
| 50 | // gabarit_ordre |
---|
| 51 | $spip_arty_gabarit_ordre = array( |
---|
| 52 | "id_bloc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 53 | "nom" => "VARCHAR(255) NOT NULL", |
---|
| 54 | "ordre" => "bigint(21)", |
---|
| 55 | "conteneur" => "bigint(21)", |
---|
| 56 | "gabarit" => "VARCHAR(255) NOT NULL", |
---|
| 57 | "param" => "TEXT NOT NULL", |
---|
| 58 | ); |
---|
| 59 | |
---|
| 60 | $spip_arty_gabarit_ordre_key = array( |
---|
| 61 | "PRIMARY KEY" => "id_bloc" |
---|
| 62 | ); |
---|
| 63 | |
---|
| 64 | $tables_principales['spip_arty_gabarit_ordre'] = array('field' => &$spip_arty_gabarit_ordre, 'key' => &$spip_arty_gabarit_ordre_key); |
---|
| 65 | |
---|
| 66 | // gabarit perso |
---|
| 67 | $spip_arty_gabarit_perso = array( |
---|
| 68 | "id" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 69 | "nom" => "VARCHAR(255)", |
---|
| 70 | "type" => "VARCHAR(255)", |
---|
| 71 | "donnees" => "TEXT", |
---|
| 72 | ); |
---|
| 73 | |
---|
| 74 | $spip_arty_gabarit_perso_key = array( |
---|
| 75 | "PRIMARY KEY" => "id" |
---|
| 76 | ); |
---|
| 77 | |
---|
| 78 | $tables_principales['spip_arty_gabarit_perso'] = array('field' => &$spip_arty_gabarit_perso, 'key' => &$spip_arty_gabarit_perso_key); |
---|
| 79 | |
---|
| 80 | // gabarit assoc |
---|
| 81 | $spip_arty_gabaritassoc = array( |
---|
| 82 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 83 | "gabarit" => "VARCHAR(255) NOT NULL", |
---|
| 84 | "id" => "bigint(21)", |
---|
| 85 | "type" => "VARCHAR(255)", |
---|
| 86 | ); |
---|
| 87 | |
---|
| 88 | $spip_arty_gabaritassoc_key = array( |
---|
| 89 | "PRIMARY KEY" => "id_assoc" |
---|
| 90 | ); |
---|
| 91 | |
---|
| 92 | $tables_principales['spip_arty_gabaritassoc'] = array('field' => &$spip_arty_gabaritassoc, 'key' => &$spip_arty_gabaritassoc_key); |
---|
| 93 | |
---|
| 94 | // menu |
---|
| 95 | $spip_arty_menu = array( |
---|
| 96 | "id_menu" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 97 | "ordre" => "bigint(21)", |
---|
| 98 | "type" => "VARCHAR(255) NOT NULL", |
---|
| 99 | "id" => "bigint(21)", |
---|
| 100 | "langue" => "VARCHAR(255)", |
---|
| 101 | "id_parent" => "bigint(21)", |
---|
| 102 | "type_parent" => "VARCHAR(255)", |
---|
| 103 | "nom" => "VARCHAR(255)", |
---|
| 104 | "url" => "TEXT", |
---|
| 105 | ); |
---|
| 106 | |
---|
| 107 | $spip_arty_menu_key = array( |
---|
| 108 | "PRIMARY KEY" => "id_menu" |
---|
| 109 | ); |
---|
| 110 | |
---|
| 111 | $tables_principales['spip_arty_menu'] = array('field' => &$spip_arty_menu, 'key' => &$spip_arty_menu_key); |
---|
| 112 | |
---|
| 113 | // paramassoc |
---|
| 114 | $spip_arty_paramassoc = array( |
---|
| 115 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 116 | "param" => "VARCHAR(255) NOT NULL", |
---|
| 117 | "id_article" => "bigint(21)", |
---|
| 118 | "id_rubrique" => "bigint(21)", |
---|
| 119 | ); |
---|
| 120 | |
---|
| 121 | $spip_arty_paramassoc_key = array( |
---|
| 122 | "PRIMARY KEY" => "id_assoc" |
---|
| 123 | ); |
---|
| 124 | |
---|
| 125 | $tables_principales['spip_arty_paramassoc'] = array('field' => &$spip_arty_paramassoc, 'key' => &$spip_arty_paramassoc_key); |
---|
| 126 | |
---|
| 127 | // parametres |
---|
| 128 | $spip_arty_parametres = array( |
---|
| 129 | "id_parametre" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 130 | "parametre" => "VARCHAR(255) UNIQUE NOT NULL", |
---|
| 131 | "valeur" => "TEXT", |
---|
| 132 | "valeur2" => "TEXT", |
---|
| 133 | "valeur3" => "TEXT" |
---|
| 134 | ); |
---|
| 135 | |
---|
| 136 | $spip_arty_parametres_key = array( |
---|
| 137 | "PRIMARY KEY" => "id_parametre" |
---|
| 138 | ); |
---|
| 139 | |
---|
| 140 | $tables_principales['spip_arty_parametres'] = array('field' => &$spip_arty_parametres, 'key' => &$spip_arty_parametres_key); |
---|
| 141 | |
---|
| 142 | // themeassoc |
---|
| 143 | $spip_arty_themeassoc = array( |
---|
| 144 | "id_assoc" => "bigint(21) NOT NULL AUTO_INCREMENT", |
---|
| 145 | "theme" => "VARCHAR(255) NOT NULL", |
---|
| 146 | "id" => "bigint(21)", |
---|
| 147 | "type" => "VARCHAR(255) NOT NULL" |
---|
| 148 | ); |
---|
| 149 | |
---|
| 150 | $spip_arty_themeassoc_key = array( |
---|
| 151 | "PRIMARY KEY" => "id_assoc" |
---|
| 152 | ); |
---|
| 153 | |
---|
| 154 | $tables_principales['spip_arty_themeassoc'] = array('field' => &$spip_arty_themeassoc, 'key' => &$spip_arty_themeassoc_key); |
---|
| 155 | |
---|
| 156 | |
---|
| 157 | // association aux tables spip |
---|
| 158 | global $table_des_tables; |
---|
| 159 | $table_des_tables['arty_bloclibre'] = 'arty_bloclibre'; |
---|
| 160 | $table_des_tables['arty_bloclibreassoc'] = 'arty_bloclibreassoc'; |
---|
| 161 | $table_des_tables['arty_gabarit_ordre'] = 'arty_gabarit_ordre'; |
---|
| 162 | $table_des_tables['arty_gabarit_perso'] = 'arty_gabarit_perso'; |
---|
| 163 | $table_des_tables['arty_gabaritassoc'] = 'arty_gabaritassoc'; |
---|
| 164 | $table_des_tables['arty_menu'] = 'arty_menu'; |
---|
| 165 | $table_des_tables['arty_paramassoc'] = 'arty_paramassoc'; |
---|
| 166 | $table_des_tables['arty_parametres'] = 'arty_parametres'; |
---|
| 167 | $table_des_tables['arty_themeassoc'] = 'arty_themeassoc'; |
---|
| 168 | |
---|
| 169 | ?> |
---|