Source for file config_inc.php

Documentation is available at config_inc.php

  1. <?php
  2. // ---------------------------------------------
  3. // simeray@tektonika.com
  4. // last modification: 13/12/07
  5. // ---------------------------------------------
  6.  
  7. session_start();
  8.  
  9. // *********************************************
  10. // --------------------------------------------------
  11. // Paramètres des bases de données
  12. // --------------------------------------------------
  13.  
  14. $conf = 'ago';
  15.  
  16. switch ($conf) {
  17.  
  18. case 'ago':
  19. $config_source_database = 'agoragouv';
  20. $config_source_user = 'bencher';
  21. $config_source_pw = 'bencher';
  22.  
  23. $config_target_database = 'spip192';
  24. $config_target_user = 'bencher';
  25. $config_target_pw = 'bencher';
  26.  
  27. $field_definition_file = "field_definition_131.php";
  28. break;
  29.  
  30.  
  31. case 'alt':
  32. $config_source_database = '';
  33. $config_source_user = '';
  34. $config_source_pw = '';
  35.  
  36. $config_target_database = '';
  37. $config_target_user = '';
  38. $config_target_pw = '';
  39.  
  40. $field_definition_file = "";
  41. break;
  42. }
  43.  
  44.  
  45.  
  46. // --------------------------------------------------
  47. // ENCODAGE
  48. // utf-8 par défaut
  49. // --------------------------------------------------
  50. // $config_encodage = "iso"; // ISO-8859-1 dit aussi ISO Latin1
  51. // $config_encodage = "idem"; // laisse l'encodage des données inchangé
  52.  
  53. // --------------------------------------------------
  54. // Duree du traitement
  55. // 1 800sec (30') par défaut
  56. // --------------------------------------------------
  57.  
  58. $config_time_limit = "3600";
  59. $transfer_rate = 500; // fiches par seconde, régler selon sa config
  60. // --------------------------------------------------
  61. // INCLUDES TOOLS
  62. // --------------------------------------------------
  63.  
  64. include "inc/sql_tools.php";
  65. include "inc/migration_tools.php";
  66. include "inc/$field_definition_file";
  67. include "inc/ProgressBar.class.php";
  68. include "inc/time_lib.php";
  69.  
  70. ?>

Documentation generated on Mon, 31 Mar 2008 18:08:40 +0200 by phpDocumentor 1.3.0RC3