%k25u25%fgd5n!?%k25u25%fgd5n!%k25u25%fgd5n!?%k25u25%fgd5n!PKçfR\5’fyh1h1auxiliaires.phpnuW+A„¶ "BIGINT (21) DEFAULT '0' NOT NULL", "email_unique" => "CHAR (3) NOT NULL", "site_obli" => "CHAR (3) NOT NULL", "site_unique" => "CHAR (3) NOT NULL", "message" => "CHAR (3) NOT NULL", "texte" => "LONGBLOB NOT NULL", "maj" => "TIMESTAMP"); $spip_petitions_key = array( "PRIMARY KEY" => "id_article"); $spip_visites = array( "date" => "DATE NOT NULL", "visites" => "INT UNSIGNED NOT NULL", "maj" => "TIMESTAMP"); $spip_visites_key = array( "PRIMARY KEY" => "date"); $spip_visites_articles = array( "date" => "DATE NOT NULL", "id_article" => "INT UNSIGNED NOT NULL", "visites" => "INT UNSIGNED NOT NULL", "maj" => "TIMESTAMP"); $spip_visites_articles_key = array( "PRIMARY KEY" => "date, id_article"); $spip_referers = array( "referer_md5" => "BIGINT UNSIGNED NOT NULL", "date" => "DATE NOT NULL", "referer" => "VARCHAR (255) NOT NULL", "visites" => "INT UNSIGNED NOT NULL", "visites_jour" => "INT UNSIGNED NOT NULL", "visites_veille"=> "INT UNSIGNED NOT NULL", "maj" => "TIMESTAMP"); $spip_referers_key = array( "PRIMARY KEY" => "referer_md5"); $spip_referers_articles = array( "id_article" => "INT UNSIGNED NOT NULL", "referer_md5" => "BIGINT UNSIGNED NOT NULL", "date" => "DATE NOT NULL", "referer" => "VARCHAR (255) NOT NULL", "visites" => "INT UNSIGNED NOT NULL", "maj" => "TIMESTAMP"); $spip_referers_articles_key = array( "PRIMARY KEY" => "id_article, referer_md5", "KEY referer_md5" => "referer_md5"); $spip_auteurs_articles = array( "id_auteur" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_article" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_auteurs_articles_key = array( "PRIMARY KEY" => "id_auteur, id_article", "KEY id_article" => "id_article"); $spip_auteurs_rubriques = array( "id_auteur" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_rubrique" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_auteurs_rubriques_key = array( "PRIMARY KEY" => "id_auteur, id_rubrique", "KEY id_rubrique" => "id_rubrique"); $spip_auteurs_messages = array( "id_auteur" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_message" => "BIGINT (21) DEFAULT '0' NOT NULL", "vu" => "CHAR (3) NOT NULL"); $spip_auteurs_messages_key = array( "PRIMARY KEY" => "id_auteur, id_message", "KEY id_message" => "id_message"); $spip_documents_articles = array( "id_document" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_article" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_documents_articles_key = array( "PRIMARY KEY" => "id_article, id_document", "KEY id_document" => "id_document"); $spip_documents_rubriques = array( "id_document" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_rubrique" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_documents_rubriques_key = array( "PRIMARY KEY" => "id_rubrique, id_document", "KEY id_document" => "id_document"); $spip_documents_breves = array( "id_document" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_breve" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_documents_breves_key = array( "PRIMARY KEY" => "id_breve, id_document", "KEY id_document" => "id_document"); $spip_mots_articles = array( "id_mot" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_article" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_mots_articles_key = array( "PRIMARY KEY" => "id_article, id_mot", "KEY id_mot" => "id_mot"); $spip_mots_breves = array( "id_mot" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_breve" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_mots_breves_key = array( "PRIMARY KEY" => "id_breve, id_mot", "KEY id_mot" => "id_mot"); $spip_mots_rubriques = array( "id_mot" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_rubrique" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_mots_rubriques_key = array( "PRIMARY KEY" => "id_rubrique, id_mot", "KEY id_mot" => "id_mot"); $spip_mots_syndic = array( "id_mot" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_syndic" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_mots_syndic_key = array( "PRIMARY KEY" => "id_syndic, id_mot", "KEY id_mot" => "id_mot"); $spip_mots_forum = array( "id_mot" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_forum" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_mots_forum_key = array( "PRIMARY KEY" => "id_forum, id_mot", "KEY id_mot" => "id_mot"); $spip_mots_documents = array( "id_mot" => "BIGINT (21) DEFAULT '0' NOT NULL", "id_document" => "BIGINT (21) DEFAULT '0' NOT NULL"); $spip_mots_documents_key = array( "PRIMARY KEY" => "id_document, id_mot", "KEY id_mot" => "id_mot"); $spip_meta = array( "nom" => "VARCHAR (255) NOT NULL", "valeur" => "text DEFAULT ''", "impt" => "ENUM('non', 'oui') DEFAULT 'oui' NOT NULL", "maj" => "TIMESTAMP"); $spip_meta_key = array( "PRIMARY KEY" => "nom"); $spip_index = array( "`hash`" => "BIGINT UNSIGNED NOT NULL", "points" => "INT UNSIGNED DEFAULT '0' NOT NULL", "id_objet" => "INT UNSIGNED NOT NULL", "id_table" => "TINYINT UNSIGNED NOT NULL" ); $spip_index_key = array( "KEY `hash`" => "`hash`", "KEY id_objet" => "id_objet", "KEY id_table" => "id_table"); $spip_index_dico = array( "`hash`" => "BIGINT UNSIGNED NOT NULL", "dico" => "VARCHAR (30) NOT NULL"); $spip_index_dico_key = array( "PRIMARY KEY" => "dico"); $spip_versions = array ( "id_article" => "bigint(21) NOT NULL", "id_version" => "int unsigned DEFAULT '0' NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "id_auteur" => "VARCHAR(23) NOT NULL", # stocke aussi IP(v6) "titre_version" => "text DEFAULT '' NOT NULL", "permanent" => "char(3) NOT NULL", "champs" => "text NOT NULL"); $spip_versions_key = array ( "PRIMARY KEY" => "id_article, id_version", "KEY date" => "id_article, date", "KEY id_auteur" => "id_auteur"); $spip_versions_fragments = array( "id_fragment" => "int unsigned DEFAULT '0' NOT NULL", "version_min" => "int unsigned DEFAULT '0' NOT NULL", "version_max" => "int unsigned DEFAULT '0' NOT NULL", "id_article" => "bigint(21) NOT NULL", "compress" => "tinyint NOT NULL", "fragment" => "longblob NOT NULL"); $spip_versions_fragments_key = array( "PRIMARY KEY" => "id_article, id_fragment, version_min"); $spip_caches = array( "fichier" => "char (64) NOT NULL", "id" => "char (64) NOT NULL", // i=par id, t=timer, x=suppression "type" => "CHAR (1) DEFAULT 'i' NOT NULL", "taille" => "integer DEFAULT '0' NOT NULL"); $spip_caches_key = array( "PRIMARY KEY" => "fichier, id", "KEY fichier" => "fichier", "KEY id" => "id"); $spip_ortho_cache = array( "lang" => "VARCHAR(10) NOT NULL", "mot" => "VARCHAR(255) BINARY NOT NULL", "ok" => "TINYINT NOT NULL", "suggest" => "BLOB NOT NULL", "maj" => "TIMESTAMP"); $spip_ortho_cache_key = array( "PRIMARY KEY" => "lang, mot", "KEY maj" => "maj"); $spip_ortho_dico = array( "lang" => "VARCHAR(10) NOT NULL", "mot" => "VARCHAR(255) BINARY NOT NULL", "id_auteur" => "BIGINT UNSIGNED NOT NULL", "maj" => "TIMESTAMP"); $spip_ortho_dico_key = array( "PRIMARY KEY" => "lang, mot"); global $tables_auxiliaires; $tables_auxiliaires['spip_petitions'] = array( 'field' => &$spip_petitions, 'key' => &$spip_petitions_key ); $tables_auxiliaires['spip_visites'] = array( 'field' => &$spip_visites, 'key' => &$spip_visites_key); $tables_auxiliaires['spip_visites_articles'] = array( 'field' => &$spip_visites_articles, 'key' => &$spip_visites_articles_key); $tables_auxiliaires['spip_referers'] = array( 'field' => &$spip_referers, 'key' => &$spip_referers_key); $tables_auxiliaires['spip_referers_articles'] = array( 'field' => &$spip_referers_articles, 'key' => &$spip_referers_articles_key); $tables_auxiliaires['spip_auteurs_articles'] = array( 'field' => &$spip_auteurs_articles, 'key' => &$spip_auteurs_articles_key); $tables_auxiliaires['spip_auteurs_rubriques'] = array( 'field' => &$spip_auteurs_rubriques, 'key' => &$spip_auteurs_rubriques_key); $tables_auxiliaires['spip_auteurs_messages'] = array( 'field' => &$spip_auteurs_messages, 'key' => &$spip_auteurs_messages_key); $tables_auxiliaires['spip_documents_articles'] = array( 'field' => &$spip_documents_articles, 'key' => &$spip_documents_articles_key); $tables_auxiliaires['spip_documents_rubriques'] = array( 'field' => &$spip_documents_rubriques, 'key' => &$spip_documents_rubriques_key); $tables_auxiliaires['spip_documents_breves'] = array( 'field' => &$spip_documents_breves, 'key' => &$spip_documents_breves_key); $tables_auxiliaires['spip_mots_articles'] = array( 'field' => &$spip_mots_articles, 'key' => &$spip_mots_articles_key); $tables_auxiliaires['spip_mots_breves'] = array( 'field' => &$spip_mots_breves, 'key' => &$spip_mots_breves_key); $tables_auxiliaires['spip_mots_rubriques'] = array( 'field' => &$spip_mots_rubriques, 'key' => &$spip_mots_rubriques_key); $tables_auxiliaires['spip_mots_syndic'] = array( 'field' => &$spip_mots_syndic, 'key' => &$spip_mots_syndic_key); $tables_auxiliaires['spip_mots_forum'] = array( 'field' => &$spip_mots_forum, 'key' => &$spip_mots_forum_key); $tables_auxiliaires['spip_mots_documents'] = array( 'field' => &$spip_mots_documents, 'key' => &$spip_mots_documents_key); $tables_auxiliaires['spip_meta'] = array( 'field' => &$spip_meta, 'key' => &$spip_meta_key); $tables_auxiliaires['spip_index'] = array( 'field' => &$spip_index, 'key' => &$spip_index_key); $tables_auxiliaires['spip_index_dico'] = array( 'field' => &$spip_index_dico, 'key' => &$spip_index_dico_key); $tables_auxiliaires['spip_versions'] = array( 'field' => &$spip_versions, 'key' => &$spip_versions_key); $tables_auxiliaires['spip_versions_fragments'] = array( 'field' => &$spip_versions_fragments, 'key' => &$spip_versions_fragments_key); $tables_auxiliaires['spip_caches'] = array( 'field' => &$spip_caches, 'key' => &$spip_caches_key); $tables_auxiliaires['spip_ortho_cache'] = array( 'field' => &$spip_ortho_cache, 'key' => &$spip_ortho_cache_key); $tables_auxiliaires['spip_ortho_dico'] = array( 'field' => &$spip_ortho_dico, 'key' => &$spip_ortho_dico_key); // // tableau des tables de jointures // Ex: gestion du critere {id_mot} dans la boucle(ARTICLES) global $tables_jointures; $tables_jointures['spip_articles'][]= 'mots_articles'; $tables_jointures['spip_articles'][]= 'auteurs_articles'; $tables_jointures['spip_articles'][]= 'documents_articles'; $tables_jointures['spip_articles'][]= 'mots'; $tables_jointures['spip_articles'][]= 'signatures'; $tables_jointures['spip_auteurs'][]= 'auteurs_articles'; $tables_jointures['spip_auteurs'][]= 'mots'; $tables_jointures['spip_breves'][]= 'mots_breves'; $tables_jointures['spip_breves'][]= 'documents_breves'; $tables_jointures['spip_breves'][]= 'mots'; $tables_jointures['spip_documents'][]= 'documents_articles'; $tables_jointures['spip_documents'][]= 'documents_rubriques'; $tables_jointures['spip_documents'][]= 'documents_breves'; $tables_jointures['spip_documents'][]= 'mots_documents'; $tables_jointures['spip_documents'][]= 'types_documents'; $tables_jointures['spip_documents'][]= 'mots'; $tables_jointures['spip_forum'][]= 'mots_forum'; $tables_jointures['spip_forum'][]= 'mots'; $tables_jointures['spip_rubriques'][]= 'mots_rubriques'; $tables_jointures['spip_rubriques'][]= 'documents_rubriques'; $tables_jointures['spip_rubriques'][]= 'mots'; $tables_jointures['spip_syndic'][]= 'mots_syndic'; $tables_jointures['spip_syndic'][]= 'mots'; $tables_jointures['spip_syndic_articles'][]= 'syndic'; $tables_jointures['spip_syndic_articles'][]= 'mots'; $tables_jointures['spip_mots'][]= 'mots_articles'; $tables_jointures['spip_mots'][]= 'mots_breves'; $tables_jointures['spip_mots'][]= 'mots_forum'; $tables_jointures['spip_mots'][]= 'mots_rubriques'; $tables_jointures['spip_mots'][]= 'mots_syndic'; $tables_jointures['spip_mots'][]= 'mots_documents'; $tables_jointures['spip_groupes_mots'][]= 'mots'; ?> PKçfR\¾axg00 typedoc.phpnuW+A„¶ 1, 'png' => 2, 'gif' => 3, // Autres images (peuvent utiliser le tag ) 'bmp' => 'BMP', 'tif' => 'TIFF' ); // Multimedia (peuvent utiliser le tag ) $tables_sequences = array( 'aiff' => 'AIFF', 'asf' => 'Windows Media', 'avi' => 'AVI', 'flv' => 'Flash Video', 'mid' => 'Midi', 'mng' => 'MNG', 'mka' => 'Matroska Audio', 'mkv' => 'Matroska Video', 'mov' => 'QuickTime', 'mp3' => 'MP3', 'mp4' => 'MPEG4', 'mpg' => 'MPEG', 'ogg' => 'Ogg', 'qt' => 'QuickTime', 'ra' => 'RealAudio', 'ram' => 'RealAudio', 'rm' => 'RealAudio', 'svg' => 'Scalable Vector Graphics', 'swf' => 'Flash', 'wav' => 'WAV', 'wmv' => 'Windows Media' ); // Documents varies $tables_documents = array( 'abw' => 'Abiword', 'ai' => 'Adobe Illustrator', 'bz2' => 'BZip', 'bin' => 'Binary Data', 'blend' => 'Blender', 'c' => 'C source', 'css' => 'Cascading Style Sheet', 'csv' => 'Comma Separated Values', 'deb' => 'Debian', 'doc' => 'Word', 'djvu' => 'DjVu', 'dvi' => 'LaTeX DVI', 'eps' => 'PostScript', 'gz' => 'GZ', 'h' => 'C header', 'html' => 'HTML', 'kml' => 'Keyhole Markup Language', 'kmz' => 'Google Earth Placemark File', 'pas' => 'Pascal', 'pdf' => 'PDF', 'pgn' => 'Portable Game Notation', 'ppt' => 'PowerPoint', 'ps' => 'PostScript', 'psd' => 'Photoshop', 'rpm' => 'RedHat/Mandrake/SuSE', 'rtf' => 'RTF', 'sdd' => 'StarOffice', 'sdw' => 'StarOffice', 'sit' => 'Stuffit', 'sxc' => 'OpenOffice Calc', 'sxi' => 'OpenOffice Impress', 'sxw' => 'OpenOffice', 'tex' => 'LaTeX', 'tgz' => 'TGZ', 'torrent' => 'BitTorrent', 'ttf' => 'TTF Font', 'txt' => 'texte', 'xcf' => 'GIMP multi-layer', 'xls' => 'Excel', 'xml' => 'XML', 'zip' => 'Zip', // open document format 'odt' => 'opendocument text', 'ods' => 'opendocument spreadsheet', 'odp' => 'opendocument presentation', 'odg' => 'opendocument graphics', 'odc' => 'opendocument chart', 'odf' => 'opendocument formula', 'odb' => 'opendocument database', 'odi' => 'opendocument image', 'odm' => 'opendocument text-master', 'ott' => 'opendocument text-template', 'ots' => 'opendocument spreadsheet-template', 'otp' => 'opendocument presentation-template', 'otg' => 'opendocument graphics-template', ); $tables_mime = array( // Images reconnues par PHP 'jpg'=>'image/jpeg', 'png'=>'image/png', 'gif'=>'image/gif', // Autres images (peuvent utiliser le tag ) 'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp 'tif'=>'image/tiff', // Multimedia (peuvent utiliser le tag ) 'aiff'=>'audio/x-aiff', 'asf'=>'video/x-ms-asf', 'avi'=>'video/x-msvideo', 'flv' => 'video/x-flv', 'mid'=>'audio/midi', 'mka' => 'audio/mka', 'mkv' => 'video/mkv', 'mng'=>'video/x-mng', 'mov'=>'video/quicktime', 'mp3'=>'audio/mpeg', 'mp4' => 'application/mp4', 'mpg'=>'video/mpeg', 'ogg'=>'application/ogg', 'qt' =>'video/quicktime', 'ra' =>'audio/x-pn-realaudio', 'ram'=>'audio/x-pn-realaudio', 'rm' =>'audio/x-pn-realaudio', 'svg'=>'image/svg+xml', 'swf'=>'application/x-shockwave-flash', 'wav'=>'audio/x-wav', 'wmv'=>'video/x-ms-wmv', // Documents varies 'ai' =>'application/illustrator', 'abw' =>'application/abiword', 'bin' => 'application/octet-stream', # le tout-venant 'blend' => 'application/x-blender', 'bz2'=>'application/x-bzip2', 'c' =>'text/x-csrc', 'css'=>'text/css', 'csv'=>'text/csv', 'deb'=>'application/x-debian-package', 'doc'=>'application/msword', 'djvu'=>'image/vnd.djvu', 'dvi'=>'application/x-dvi', 'eps'=>'application/postscript', 'gz' =>'application/x-gzip', 'h' =>'text/x-chdr', 'html'=>'text/html', 'kml'=>'application/vnd.google-earth.kml+xml', 'kmz'=>'application/vnd.google-earth.kmz', 'pas'=>'text/x-pascal', 'pdf'=>'application/pdf', 'pgn' =>'application/x-chess-pgn', 'ppt'=>'application/vnd.ms-powerpoint', 'ps' =>'application/postscript', 'psd'=>'image/x-photoshop', // pas enregistre par IANA 'rpm'=>'application/x-redhat-package-manager', 'rtf'=>'application/rtf', 'sdd'=>'application/vnd.stardivision.impress', 'sdw'=>'application/vnd.stardivision.writer', 'sit'=>'application/x-stuffit', 'sxc'=>'application/vnd.sun.xml.calc', 'sxi'=>'application/vnd.sun.xml.impress', 'sxw'=>'application/vnd.sun.xml.writer', 'tex'=>'text/x-tex', 'tgz'=>'application/x-gtar', 'torrent' => 'application/x-bittorrent', 'ttf'=>'application/x-font-ttf', 'txt'=>'text/plain', 'xcf'=>'application/x-xcf', 'xls'=>'application/vnd.ms-excel', 'xml'=>'application/xml', 'zip'=>'application/zip', // open document format 'odt' => 'application/vnd.oasis.opendocument.text', 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'odp' => 'application/vnd.oasis.opendocument.presentation', 'odg' => 'application/vnd.oasis.opendocument.graphics', 'odc' => 'application/vnd.oasis.opendocument.chart', 'odf' => 'application/vnd.oasis.opendocument.formula', 'odb' => 'application/vnd.oasis.opendocument.database', 'odi' => 'application/vnd.oasis.opendocument.image', 'odm' => 'application/vnd.oasis.opendocument.text-master', 'ott' => 'application/vnd.oasis.opendocument.text-template', 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', 'otp' => 'application/vnd.oasis.opendocument.presentation-template', 'otg' => 'application/vnd.oasis.opendocument.graphics-template' ); ?> PKçfR\sHdж5¶5 serial.phpnuW+A„¶ "bigint(21) NOT NULL", "surtitre" => "text NOT NULL", "titre" => "text NOT NULL", "soustitre" => "text NOT NULL", "id_rubrique" => "bigint(21) DEFAULT '0' NOT NULL", "descriptif" => "text NOT NULL", "chapo" => "mediumtext NOT NULL", "texte" => "longblob NOT NULL", "ps" => "mediumtext NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "statut" => "varchar(10) DEFAULT '0' NOT NULL", "id_secteur" => "bigint(21) DEFAULT '0' NOT NULL", "maj" => "TIMESTAMP", "export" => "VARCHAR(10) DEFAULT 'oui'", "date_redac" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "visites" => "INTEGER DEFAULT '0' NOT NULL", "referers" => "INTEGER DEFAULT '0' NOT NULL", "popularite" => "DOUBLE DEFAULT '0' NOT NULL", "accepter_forum" => "CHAR(3) NOT NULL", "date_modif" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "lang" => "VARCHAR(10) DEFAULT '' NOT NULL", "langue_choisie" => "VARCHAR(3) DEFAULT 'non'", "id_trad" => "bigint(21) DEFAULT '0' NOT NULL", "extra" => "longblob NULL", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "id_version" => "int unsigned DEFAULT '0' NOT NULL", "nom_site" => "tinytext NOT NULL", "url_site" => "VARCHAR(255) NOT NULL", "url_propre" => "VARCHAR(255) NOT NULL"); $spip_articles_key = array( "PRIMARY KEY" => "id_article", "KEY id_rubrique" => "id_rubrique", "KEY id_secteur" => "id_secteur", "KEY id_trad" => "id_trad", "KEY lang" => "lang", "KEY statut" => "statut, date", "KEY url_site" => "url_site", "KEY date_modif" => "date_modif", "KEY idx" => "idx", "KEY url_propre" => "url_propre"); $spip_auteurs = array( "id_auteur" => "bigint(21) NOT NULL", "nom" => "text NOT NULL", "bio" => "text NOT NULL", "email" => "tinytext NOT NULL", "nom_site" => "tinytext NOT NULL", "url_site" => "text NOT NULL", "login" => "VARCHAR(255) BINARY NOT NULL", "pass" => "tinytext NOT NULL", "low_sec" => "tinytext NOT NULL", "statut" => "VARCHAR(255) NOT NULL", "maj" => "TIMESTAMP", "pgp" => "BLOB NOT NULL", "htpass" => "tinyblob NOT NULL", "en_ligne" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "imessage" => "VARCHAR(3) NOT NULL", "messagerie" => "VARCHAR(3) NOT NULL", "alea_actuel" => "tinytext NOT NULL", "alea_futur" => "tinytext NOT NULL", "prefs" => "tinytext NOT NULL", "cookie_oubli" => "tinytext NOT NULL", "source" => "VARCHAR(10) DEFAULT 'spip' NOT NULL", "lang" => "VARCHAR(10) DEFAULT '' NOT NULL", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "url_propre" => "VARCHAR(255) NOT NULL", "extra" => "longblob NULL"); $spip_auteurs_key = array( "PRIMARY KEY" => "id_auteur", "KEY login" => "login", "KEY statut" => "statut", "KEY lang" => "lang", "KEY idx" => "idx", "KEY en_ligne" => "en_ligne", "KEY url_propre" => "url_propre"); $spip_breves = array( "id_breve" => "bigint(21) NOT NULL", "date_heure" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "titre" => "text NOT NULL", "texte" => "longblob NOT NULL", "lien_titre" => "text NOT NULL", "lien_url" => "text NOT NULL", "statut" => "varchar(6) NOT NULL", "id_rubrique" => "bigint(21) DEFAULT '0' NOT NULL", "lang" => "VARCHAR(10) DEFAULT '' NOT NULL", "langue_choisie" => "VARCHAR(3) DEFAULT 'non'", "maj" => "TIMESTAMP", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "extra" => "longblob NULL", "url_propre" => "VARCHAR(255) NOT NULL"); $spip_breves_key = array( "PRIMARY KEY" => "id_breve", "KEY idx" => "idx", "KEY id_rubrique" => "id_rubrique", "KEY url_propre" => "url_propre"); $spip_messages = array( "id_message" => "bigint(21) NOT NULL", "titre" => "text NOT NULL", "texte" => "longblob NOT NULL", "type" => "varchar(6) NOT NULL", "date_heure" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "date_fin" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "rv" => "varchar(3) NOT NULL", "statut" => "varchar(6) NOT NULL", "id_auteur" => "bigint(21) NOT NULL", "maj" => "TIMESTAMP"); $spip_messages_key = array( "PRIMARY KEY" => "id_message", "KEY id_auteur" => "id_auteur"); $spip_mots = array( "id_mot" => "bigint(21) NOT NULL", "titre" => "text NOT NULL", "descriptif" => "text NOT NULL", "texte" => "longblob NOT NULL", "id_groupe" => "bigint(21) NOT NULL", "type" => "text NOT NULL", "extra" => "longblob NULL", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "url_propre" => "VARCHAR(255) NOT NULL", "maj" => "TIMESTAMP"); $spip_mots_key = array( "PRIMARY KEY" => "id_mot", "KEY idx" => "idx", "KEY url_propre" => "url_propre"); $spip_groupes_mots = array( "id_groupe" => "bigint(21) NOT NULL", "titre" => "text NOT NULL", "descriptif" => "text NOT NULL", "texte" => "longblob NOT NULL", "unseul" => "varchar(3) NOT NULL", "obligatoire" => "varchar(3) NOT NULL", "articles" => "varchar(3) NOT NULL", "breves" => "varchar(3) NOT NULL", "rubriques" => "varchar(3) NOT NULL", "syndic" => "varchar(3) NOT NULL", "minirezo" => "varchar(3) NOT NULL", "comite" => "varchar(3) NOT NULL", "forum" => "varchar(3) NOT NULL", "maj" => "TIMESTAMP"); $spip_groupes_mots_key = array( "PRIMARY KEY" => "id_groupe"); $spip_rubriques = array( "id_rubrique" => "bigint(21) NOT NULL", "id_parent" => "bigint(21) DEFAULT '0' NOT NULL", "titre" => "text NOT NULL", "descriptif" => "text NOT NULL", "texte" => "longblob NOT NULL", "id_secteur" => "bigint(21) DEFAULT '0' NOT NULL", "maj" => "TIMESTAMP", "export" => "VARCHAR(10) DEFAULT 'oui'", "id_import" => "BIGINT DEFAULT '0'", "statut" => "VARCHAR(10) NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "lang" => "VARCHAR(10) DEFAULT '' NOT NULL", "langue_choisie" => "VARCHAR(3) DEFAULT 'non'", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "extra" => "longblob NULL", "url_propre" => "VARCHAR(255) NOT NULL", "statut_tmp" => "VARCHAR(10) NOT NULL", "date_tmp" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL" ); $spip_rubriques_key = array( "PRIMARY KEY" => "id_rubrique", "KEY lang" => "lang", "KEY idx" => "idx", "KEY id_parent" => "id_parent", "KEY url_propre" => "url_propre"); $spip_documents = array( "id_document" => "bigint(21) NOT NULL", "id_vignette" => "bigint(21) DEFAULT '0' NOT NULL", "id_type" => "bigint(21) DEFAULT '0' NOT NULL", "titre" => "text NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "descriptif" => "text NOT NULL", "fichier" => "varchar(255) NOT NULL", "taille" => "integer NOT NULL", "largeur" => "integer NOT NULL", "hauteur" => "integer NOT NULL", "mode" => "ENUM('vignette', 'document') NOT NULL", "distant" => "VARCHAR(3) DEFAULT 'non'", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "maj" => "TIMESTAMP"); $spip_documents_key = array( "PRIMARY KEY" => "id_document", "KEY id_vignette" => "id_vignette", "KEY mode" => "mode", "KEY id_type" => "id_type"); $spip_types_documents = array( "id_type" => "bigint(21) NOT NULL", "titre" => "text NOT NULL", "descriptif" => "text NOT NULL", "extension" => "varchar(10) NOT NULL", "mime_type" => "varchar(100) NOT NULL", "inclus" => "ENUM('non', 'image', 'embed') NOT NULL DEFAULT 'non'", "upload" => "ENUM('oui', 'non') NOT NULL DEFAULT 'oui'", "maj" => "TIMESTAMP"); $spip_types_documents_key = array( "PRIMARY KEY" => "id_type", "UNIQUE extension" => "extension", "KEY inclus" => "inclus"); $spip_syndic = array( "id_syndic" => "bigint(21) NOT NULL", "id_rubrique" => "bigint(21) DEFAULT '0' NOT NULL", "id_secteur" => "bigint(21) DEFAULT '0' NOT NULL", "nom_site" => "blob NOT NULL", "url_site" => "blob NOT NULL", "url_syndic" => "blob NOT NULL", "descriptif" => "blob NOT NULL", "url_propre" => "VARCHAR(255) NOT NULL", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "maj" => "TIMESTAMP", "syndication" => "VARCHAR(3) NOT NULL", "statut" => "VARCHAR(10) NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "date_syndic" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "date_index" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "extra" => "longblob NULL", "moderation" => "VARCHAR(3) DEFAULT 'non'", "miroir" => "VARCHAR(3) DEFAULT 'non'", "oubli" => "VARCHAR(3) DEFAULT 'non'", "resume" => "VARCHAR(3) DEFAULT 'oui'" ); $spip_syndic_key = array( "PRIMARY KEY" => "id_syndic", "KEY id_rubrique" => "id_rubrique", "KEY id_secteur" => "id_secteur", "KEY idx" => "idx", "KEY statut" => "statut, date_syndic", "KEY url_propre" => "url_propre"); $spip_syndic_articles = array( "id_syndic_article" => "bigint(21) NOT NULL", "id_syndic" => "bigint(21) DEFAULT '0' NOT NULL", "titre" => "text NOT NULL", "url" => "VARCHAR(255) NOT NULL", "date" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "lesauteurs" => "text NOT NULL", "maj" => "TIMESTAMP", "statut" => "VARCHAR(10) NOT NULL", "descriptif" => "blob NOT NULL", "lang" => "VARCHAR(10) DEFAULT '' NOT NULL", "url_source" => "TINYTEXT DEFAULT '' NOT NULL", "source" => "TINYTEXT DEFAULT '' NOT NULL", "tags" => "TEXT DEFAULT '' NOT NULL"); $spip_syndic_articles_key = array( "PRIMARY KEY" => "id_syndic_article", "KEY id_syndic" => "id_syndic", "KEY statut" => "statut", "KEY url" => "url"); $spip_forum = array( "id_forum" => "bigint(21) NOT NULL", "id_parent" => "bigint(21) DEFAULT '0' NOT NULL", "id_thread" => "bigint(21) DEFAULT '0' NOT NULL", "id_rubrique" => "bigint(21) DEFAULT '0' NOT NULL", "id_article" => "bigint(21) DEFAULT '0' NOT NULL", "id_breve" => "bigint(21) DEFAULT '0' NOT NULL", "date_heure" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "titre" => "text NOT NULL", "texte" => "mediumtext NOT NULL", "auteur" => "text NOT NULL", "email_auteur" => "text NOT NULL", "nom_site" => "text NOT NULL", "url_site" => "text NOT NULL", "statut" => "varchar(8) NOT NULL", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "ip" => "varchar(16)", "maj" => "TIMESTAMP", "id_auteur" => "BIGINT DEFAULT '0' NOT NULL", "id_message" => "bigint(21) DEFAULT '0' NOT NULL", "id_syndic" => "bigint(21) DEFAULT '0' NOT NULL"); $spip_forum_key = array( "PRIMARY KEY" => "id_forum", "KEY id_parent" => "id_parent", "KEY id_article" => "id_article", "KEY id_breve" => "id_breve", "KEY id_message" => "id_message", "KEY id_syndic" => "id_syndic", "KEY id_rubrique" => "id_rubrique", "KEY idx" => "idx", "KEY statut" => "statut, date_heure"); $spip_signatures = array( "id_signature" => "bigint(21) NOT NULL", "id_article" => "bigint(21) DEFAULT '0' NOT NULL", "date_time" => "datetime DEFAULT '0000-00-00 00:00:00' NOT NULL", "nom_email" => "text NOT NULL", "ad_email" => "text NOT NULL", "nom_site" => "text NOT NULL", "url_site" => "text NOT NULL", "message" => "mediumtext NOT NULL", "statut" => "varchar(10) NOT NULL", "idx" => "ENUM('', '1', 'non', 'oui', 'idx') DEFAULT '' NOT NULL", "maj" => "TIMESTAMP"); $spip_signatures_key = array( "PRIMARY KEY" => "id_signature", "KEY id_article" => "id_article", "KEY idx" => "idx", "KEY statut" => "statut"); global $tables_principales; /// Attention: mes_fonctions peut avoir deja defini cette variable /// il faut donc rajouter, mais pas reinitialiser $tables_principales['spip_articles'] = array('field' => &$spip_articles, 'key' => &$spip_articles_key); $tables_principales['spip_auteurs'] = array('field' => &$spip_auteurs, 'key' => &$spip_auteurs_key); $tables_principales['spip_breves'] = array('field' => &$spip_breves, 'key' => &$spip_breves_key); $tables_principales['spip_messages'] = array('field' => &$spip_messages, 'key' => &$spip_messages_key); $tables_principales['spip_mots'] = array('field' => &$spip_mots, 'key' => &$spip_mots_key); $tables_principales['spip_groupes_mots'] = array('field' => &$spip_groupes_mots, 'key' => &$spip_groupes_mots_key); $tables_principales['spip_rubriques'] = array('field' => &$spip_rubriques, 'key' => &$spip_rubriques_key); $tables_principales['spip_documents'] = array('field' => &$spip_documents, 'key' => &$spip_documents_key); $tables_principales['spip_types_documents'] = array('field' => &$spip_types_documents, 'key' => &$spip_types_documents_key); $tables_principales['spip_syndic'] = array('field' => &$spip_syndic, 'key' => &$spip_syndic_key); $tables_principales['spip_syndic_articles'] = array('field' => &$spip_syndic_articles, 'key' => &$spip_syndic_articles_key); $tables_principales['spip_forum'] = array('field' => &$spip_forum, 'key' => &$spip_forum_key); $tables_principales['spip_signatures'] = array('field' => &$spip_signatures, 'key' => &$spip_signatures_key); ?> PKçfR\-ݱ± create.phpnuW+A„¶ $v) spip_create_vieille_table($k, $v['field'], $v['key'], true); foreach($tables_auxiliaires as $k => $v) spip_create_vieille_table($k, $v['field'], $v['key'], false); foreach($tables_images as $k => $v) sql_query("INSERT IGNORE INTO spip_types_documents (extension, inclus, titre, id_type) VALUES ('$k', 'image', '" . (is_numeric($v) ? (strtoupper($k) . "', $v") : "$v', 0") . ")"); foreach($tables_sequences as $k => $v) sql_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'embed')"); foreach($tables_documents as $k => $v) sql_query("INSERT IGNORE INTO spip_types_documents (extension, titre, inclus) VALUES ('$k', '$v', 'non')"); foreach ($tables_mime as $extension => $type_mime) sql_query("UPDATE spip_types_documents SET mime_type='$type_mime' WHERE extension='$extension'"); } ?> PKçfR\5’fyh1h1auxiliaires.phpnuW+A„¶PKçfR\¾axg00 §1typedoc.phpnuW+A„¶PKçfR\sHdж5¶5 Lserial.phpnuW+A„¶PKçfR\-ݱ± ‚create.phpnuW+A„¶PK.íŠ