"; // definitions define('INDEX_GLOBAL' , 1); define('INDEX_NOTICES' , 2); define('CLEAN_AUTHORS' , 4); define('CLEAN_PUBLISHERS' , 8); define('CLEAN_COLLECTIONS' , 16); define('CLEAN_SUBCOLLECTIONS' , 32); define('CLEAN_CATEGORIES' , 64); define('CLEAN_SERIES' , 128); define('CLEAN_RELATIONS' , 256); define('CLEAN_NOTICES' , 512); define('INDEX_ACQUISITIONS' , 1024); define('GEN_SIGNATURE_NOTICE' , 2048); define('NETTOYAGE_CLEAN_TAGS' , 4096); define('CLEAN_CATEGORIES_PATH' , 8192); define('GEN_DATE_PUBLICATION_ARTICLE' , 16384); define('GEN_DATE_TRI' , 32768); define('INDEX_DOCNUM' , 65536); define('CLEAN_OPAC_SEARCH_CACHE' , 131072); define('CLEAN_CACHE_AMENDE' , 262144); define('CLEAN_TITRES_UNIFORMES' , 524288); if(!$spec) { $spec += $index_global; $spec += $index_notices; $spec += $clean_authors; $spec += $clean_editeurs; $spec += $clean_collections; $spec += $clean_subcollections; $spec += $clean_categories; $spec += $clean_series; $spec += $clean_relations; $spec += $clean_notices; $spec += $index_acquisitions; $spec += $gen_signature_notice; $spec += $nettoyage_clean_tags; $spec += $clean_categories_path; $spec += $gen_date_publication_article; $spec += $gen_date_tri; $spec += $reindex_docnum; $spec += $clean_opac_search_cache; $spec += $clean_cache_amende; $spec += $clean_titres_uniformes; } if($spec) { if($spec & CLEAN_NOTICES) { include('./clean_expl.inc.php'); } elseif($spec & INDEX_NOTICES) { include('./reindex.inc.php'); } elseif($spec & INDEX_GLOBAL) { include('./reindex_global.inc.php'); } elseif($spec & CLEAN_SUBCOLLECTIONS) { include('./subcollections.inc.php'); } elseif($spec & CLEAN_COLLECTIONS) { include('./collections.inc.php'); } elseif($spec & CLEAN_PUBLISHERS) { include('./publishers.inc.php'); } elseif($spec & CLEAN_AUTHORS) { if(!$pass2) include('./aut_pass1.inc.php'); // 1ère passe : auteurs non utilisés elseif ($pass2==1) include('./aut_pass2.inc.php'); // 2nde passe : renvois vers auteur inexistant elseif ($pass2==2) include('./aut_pass3.inc.php'); // 3eme passe : nettoyage des responsabilités sans notices else include('./aut_pass4.inc.php'); // 4eme passe : nettoyage des responsabilités sans auteurs } elseif($spec & CLEAN_CATEGORIES) { include('./category.inc.php');; } elseif($spec & CLEAN_SERIES) { include('./series.inc.php'); } elseif ($spec & CLEAN_RELATIONS) { if(!$pass2) $pass2=1; include('./relations'.$pass2.'.inc.php'); } elseif ($spec & INDEX_ACQUISITIONS) { include('./acquisitions.inc.php'); } elseif ($spec & GEN_SIGNATURE_NOTICE) { include('./gen_signature_notice.inc.php'); } elseif ($spec & NETTOYAGE_CLEAN_TAGS) { include('./nettoyage_clean_tags.inc.php'); } elseif ($spec & CLEAN_CATEGORIES_PATH) { include('./clean_categories_path.inc.php'); } elseif ($spec & GEN_DATE_PUBLICATION_ARTICLE) { include('./gen_date_publication_article.inc.php'); } elseif ($spec & GEN_DATE_TRI) { include('./gen_date_tri.inc.php'); } elseif ($spec & INDEX_DOCNUM) { include('./reindex_docnum.inc.php'); } elseif ($spec & CLEAN_OPAC_SEARCH_CACHE) { include('./clean_opac_search_cache.inc.php'); } elseif ($spec & CLEAN_CACHE_AMENDE) { include('./clean_cache_amende.inc.php'); } elseif ($spec & CLEAN_TITRES_UNIFORMES) { include('./titres_uniformes.inc.php'); } } else { if($v_state) { print "

".htmlentities($msg["nettoyage_termine"], ENT_QUOTES, $charset)."

"; print urldecode($v_state); } else include_once('./form.inc.php'); } // fermeture du lien MySQL mysql_close($dbh); echo ""; print '';