Index: /trunk/catalog/install/includes/content/core.modes.php
===================================================================
--- /trunk/catalog/install/includes/content/core.modes.php (revision 4314)
+++ /trunk/catalog/install/includes/content/core.modes.php (revision 4358)
@@ -16,5 +16,5 @@
 
 /**
-	TODO UTiliser le fichier de version pour les chemin 
+	TODO UTiliser le fichier de version pour les chemin
 */
 define('URL_OSCSS_ORG_TRAC', 'http://sourceforge.net/apps/trac/oscss/changeset/?format=zip&new=SVN_REV_MAX&old=SVN_REV&new_path=trunk%2Fcatalog&old_path=trunk%2Fcatalog');
@@ -34,5 +34,5 @@
 
 	public static function GetSort(){
-		// sort in process 
+		// sort in process
 		return 20;
 	}
@@ -145,5 +145,5 @@
           .'</p>'."\n";
 
-// TODO A finaliser 
+// TODO A finaliser
 //     echo '<p class="smallDesc">'."\n"
 //         .'<label>'.core::l10n("Type d'installation :").'</label>'."\n"
@@ -425,5 +425,6 @@
   */
   private function get_info_core($file,$name='svn'){
-    if(!file_exists($file)) return $this->PileMessage('alert', core::l10n("Erreur rÃ©cupÃ©ration fichier") );
+    if(!file_exists($file))
+				return $this->PileMessage('alert', core::l10n("Erreur rÃ©cupÃ©ration fichier") );
     $SimpleParser = simplexml_load_file($file);
     if(!isset($SimpleParser->$name)) $this->PileMessage('alert', core::l10n("Erreur rÃ©cupÃ©ration nÂ° rÃ©vision courant") );
@@ -485,7 +486,8 @@
       // recup version svn core
       $core_rev=$this->get_info_core($this->fs_document_root.FILEPATH_SVN_CORE);
+
       // version current svn
-      $c_v=$this->get_current_rev(URL_OSCSS_GET_REV);
-      $curent_rev=((isset($_POST['CURENT_REV']) && $c_v != $_POST['CURENT_REV'])? $_POST['CURENT_REV']: $c_v);
+      $curent_rev=$this->get_current_rev(URL_OSCSS_GET_REV);
+
 
       if((int)$core_rev>=(int)$curent_rev) {
@@ -497,5 +499,5 @@
       $oscss_zip = @fopen($file,'wb');
       // recup zip
-
+// var_dump(__FILE__);
 /**
 	Utiliser methode fetchRemote
@@ -542,11 +544,11 @@
       $saveXml = $doc->saveXML();
 
-      $file_vers= @fopen($this->fs_document_root.FILEPATH_SVN_CORE,'w');
-      fputs( $file_vers,$saveXml);
+		$r=unlink($this->fs_document_root.FILEPATH_SVN_CORE	);
+		$file_vers= fopen($this->fs_document_root.FILEPATH_SVN_CORE,'w+');
+     $res =  fputs( $file_vers,$saveXml);
       fclose($file_vers);
 
-
 /**
-	TODO Chemin en dur , a revoir 
+	TODO Chemin en dur , a revoir
 */
       // report branche dans le core
Index: /trunk/catalog/install/includes/content/core.installdb.php
===================================================================
--- /trunk/catalog/install/includes/content/core.installdb.php (revision 4271)
+++ /trunk/catalog/install/includes/content/core.installdb.php (revision 4358)
@@ -36,5 +36,5 @@
 		$driver = ( (strtolower( $this->db['DBMOTOR']) == 'mysqli')? 'mysql' : strtolower( $this->db['DBMOTOR']) );
 
-
+$i=0;
 		// creation des tables
 		foreach(core::browse_rep($this->fs_document_root . 'install/includes/sql/'.$driver.'/tables/') as $file){
@@ -42,8 +42,12 @@
 				osc_db_upgrade($this->db['DB_DATABASE'],  $this->fs_document_root . 'install/includes/sql/'.$driver.'/tables/'.$file['file']  , $this->db['DB_TABLE_PREFIX']);
 			}
-		}
-
-
-
+
+				$i++;
+				if($i>200)
+						continue;
+		}
+
+
+$i=0;
 		//  add key
 		if($this->db['DBMOTOR_TYPE'] =='InnoDB')
@@ -53,6 +57,11 @@
 					osc_db_upgrade($this->db['DB_DATABASE'],  $this->fs_document_root . 'install/includes/sql/'.$driver.'/tables/'.$file['file']  , $this->db['DB_TABLE_PREFIX']);
 				}
-			}
-
+
+				$i++;
+				if($i>200)
+						continue;
+			}
+
+$i=0;
 		// add data config
 		if ( ($db_error == false) ) {
@@ -61,9 +70,12 @@
 				osc_db_install($this->db['DB_DATABASE'],  $this->fs_document_root . 'install/includes/sql/'.$driver.'/data/'.$file['file']  , $this->db['DB_TABLE_PREFIX']);
 			}
-		}
-
-
-		// copy in document
-		parent::recurse_copy($this->fs_document_root . 'install/includes/sql/'.$driver.'/', $this->fs_document_root. 'Documents/admin/origin/db/install/');
+
+				$i++;
+				if($i>200)
+						continue;
+		}
+
+
+
 
 
@@ -112,4 +124,5 @@
   */
   function exe_prev(){
+
     // conf
     $this->get_server_conf();
@@ -128,4 +141,8 @@
     osc_db_query($sql="update ".$this->db['DB_TABLE_PREFIX']."configuration set configuration_value='".$this->www_location."images/oscss_logo.jpg' where  configuration_key='STORE_LOGO_PRINT'" );
     osc_db_query($sql="update ".$this->db['DB_TABLE_PREFIX']."configuration set configuration_value='".$this->www_location."images/noscreenshot.png' where  configuration_key='IMAGE_NONEXISTENT'" );
+
+		$driver = ( (strtolower( $this->db['DBMOTOR']) == 'mysqli')? 'mysql' : strtolower( $this->db['DBMOTOR']) );
+		// copy in document
+		parent::recurse_copy($this->fs_document_root . 'install/includes/sql/'.$driver.'/', $this->fs_document_root. 'Documents/admin/origin/db/install/');
 
     $this->PileMessage('succes', core::l10n("La configuration est terminÃ©e" )  ) ;
@@ -191,5 +208,5 @@
 			echo $this->draw_button(true, false);
 		}
-		else 
+		else
 			echo $this->draw_button(false, true);
 
