Subversion Repositories eFlore/Applications.cel

Rev

Rev 2106 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2106 Rev 2107
Line 109... Line 109...
109
		$image_meta_ratees = 0;
109
		$image_meta_ratees = 0;
110
		$images_inexistantes = 0;
110
		$images_inexistantes = 0;
Line 111... Line 111...
111
		
111
		
112
		foreach($res as $image) {
112
		foreach($res as $image) {
113
			$chemin = $this->getCheminImage($image['id_image']); 
-
 
114
			echo $chemin."\n";
113
			$chemin = $this->getCheminImage($image['id_image']); 
115
			if(file_exists($chemin)) {
114
			if(file_exists($chemin)) {
116
				list($largeur, $hauteur) = @getimagesize($chemin);
115
				list($largeur, $hauteur) = @getimagesize($chemin);
117
				if(is_numeric($largeur) && is_numeric($hauteur)) {
116
				if(is_numeric($largeur) && is_numeric($hauteur)) {
118
					$req_maj = "UPDATE cel_images SET hauteur = '".$hauteur."', largeur = '".$largeur."' ".
117
					$req_maj = "UPDATE cel_images SET hauteur = '".$hauteur."', largeur = '".$largeur."' ".
Line 142... Line 141...
142
		$id = sprintf('%09s', $id);
141
		$id = sprintf('%09s', $id);
143
		$id = wordwrap($id, 3 , '_', true);
142
		$id = wordwrap($id, 3 , '_', true);
Line 144... Line 143...
144
		
143
		
Line 145... Line 144...
145
		list($dossierNiveau1, $dossierNiveau2) = explode('_', $id);
144
		list($dossierNiveau1, $dossierNiveau2) = explode('_', $id);
Line 146... Line 145...
146
		
145
		
147
		$chemin = $chemin_base.$dossierNiveau1.'/'.$dossierNiveau2.'/O/'.$id.'_O.jpg';
146
		$chemin = $chemin_base.'/'.$dossierNiveau1.'/'.$dossierNiveau2.'/O/'.$id.'_O.jpg';
Line 148... Line 147...
148
		
147