Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 996 Rev 1391
Line 34... Line 34...
34
			$limite = $uid[]
34
			$limite = $uid[]
35
        }*/
35
        }*/
Line 36... Line 36...
36
 
36
 
37
       	$taille_archive_courante = 0;
37
       	$taille_archive_courante = 0;
38
		$index_archive_courante = 0;
38
		$index_archive_courante = 0;
39
		$taille_max_archive = $this->config['cel_db']['taille_max_archive'];
39
		$taille_max_archive = $this->config['cel']['taille_max_archive'];
Line 40... Line 40...
40
		$liens_archives = array();
40
		$liens_archives = array();
Line 41... Line 41...
41
 
41
 
Line 42... Line 42...
42
        $DB=$this->connectDB($this->config,'cel_db');
42
        $DB=$this->connectDB($this->config,'cel');
Line 113... Line 113...
113
			    	$nom_fichier_image = preg_replace('/\.(?:jpg|jpeg)$/i','_'.$id.'.jpg', $image['ci_nom_original']);
113
			    	$nom_fichier_image = preg_replace('/\.(?:jpg|jpeg)$/i','_'.$id.'.jpg', $image['ci_nom_original']);
114
			    } else {
114
			    } else {
115
			    	$nom_fichier_image = $image['ci_nom_original'].'_'.$id.'.jpg';
115
			    	$nom_fichier_image = $image['ci_nom_original'].'_'.$id.'.jpg';
116
			    }
116
			    }
Line 117... Line 117...
117
			    
117
			    
Line 118... Line 118...
118
			    $chemin_sur_serveur = $this->config['cel_db']['url_images'];
118
			    $chemin_sur_serveur = $this->config['cel']['url_images'];
119
			    
119
			    
120
			    $id = sprintf('%09s', $id) ;
120
			    $id = sprintf('%09s', $id) ;
Line 268... Line 268...
268
    }
268
    }
Line 269... Line 269...
269
 
269
 
Line 270... Line 270...
270
    private function renvoyerCheminSurServeur($id,$url = true) {
270
    private function renvoyerCheminSurServeur($id,$url = true) {
271
 
271
 
272
		if($url) {
272
		if($url) {
273
			$chemin_sur_serveur = $this->config['cel_db']['url_images'];
273
			$chemin_sur_serveur = $this->config['cel']['url_images'];
274
		} else {
274
		} else {
Line 275... Line 275...
275
			$chemin_sur_serveur = $this->config['cel_db']['chemin_images'];
275
			$chemin_sur_serveur = $this->config['cel']['chemin_images'];
276
		}
276
		}
Line 292... Line 292...
292
        return $chemin_fichier;
292
        return $chemin_fichier;
293
    }
293
    }
Line 294... Line 294...
294
 
294
 
295
    private function renvoyerCheminExport($url = true) {
295
    private function renvoyerCheminExport($url = true) {
296
    	if($url) {
296
    	if($url) {
297
    		return $this->config['cel_db']['url_export'];
297
    		return $this->config['cel']['url_export'];
298
    	} else {
298
    	} else {
299
			return $this->config['cel_db']['chemin_export'];
299
			return $this->config['cel']['chemin_export'];
300
    	}
300
    	}
Line 301... Line 301...
301
    }
301
    }