90,7 → 90,9 |
if (!isset($options['img_qualite'])) { |
$options['img_qualite'] = 70; |
} |
|
if (!isset($options['squelette'])) { |
$options['squelette'] = GAL_SQUELETTE_LISTE; |
} |
// +------------------------------------------------------------------------------------------------------+ |
// | CORPS du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
116,14 → 118,14 |
|
if($noimage) { |
$GLOBALS['_GALERIE_']['css']['chemin'] = GAL_CHEMIN_STYLES_RELATIF; |
$GLOBALS['_GALERIE_']['css']['largeur'] = $options['largeur']+10; |
$GLOBALS['_GALERIE_']['css']['largeur'] = $options['largeur']; |
$GLOBALS['_GALERIE_']['script']['chemin'] = GAL_CHEMIN_SCRIPTS_RELATIF; |
$GLOBALS['_GALERIE_']['images'] = array(); |
foreach($images as $image) { |
if ($image['filename'] != '') { |
$aso_img['fichier_nom'] = $image['filename']; |
$aso_img['url_img'] = 'http://'.$_SERVER['HTTP_HOST'].GAL_CHEMIN_SCRIPTS_RELATIF.'showthumb.php?img='.urlencode(GAL_CHEMIN_RACINE.$options['dossier'].DS.$image['filename']).'&width='.$options['img_largeur'].'&height='.$options['img_hauteur'].'&quality='.$options['img_qualite']; |
$aso_img['url_img_mini'] = 'http://'.$_SERVER['HTTP_HOST'].GAL_CHEMIN_SCRIPTS_RELATIF.'showthumb.php?img='.urlencode(GAL_CHEMIN_RACINE.$options['dossier'].DS.$image['filename']).'&width='.$options['largeur'].'&height='.$options['hauteur'].'&quality='.$options['qualite']; |
$aso_img['url_img'] = 'http://'.$_SERVER['HTTP_HOST'].GAL_CHEMIN_SCRIPTS_RELATIF.'showthumb.php?img='.urlencode(GAL_CHEMIN_RACINE.$options['dossier'].DS.$image['filename']).'&width='.$options['img_largeur'].'&height='.$options['img_hauteur'].'&quality='.$options['img_qualite'].'&centrage=0'; |
$aso_img['url_img_mini'] = 'http://'.$_SERVER['HTTP_HOST'].GAL_CHEMIN_SCRIPTS_RELATIF.'showthumb.php?img='.urlencode(GAL_CHEMIN_RACINE.$options['dossier'].DS.$image['filename']).'&width='.$options['largeur'].'&height='.$options['hauteur'].'&quality='.$options['qualite'].'&centrage=1'; |
$GLOBALS['_GALERIE_']['images'][] = $aso_img; |
} |
} |
136,7 → 138,7 |
// Démarre le buffer |
ob_start(); |
// Inclusion du fichier |
include GAL_CHEMIN_SQUELETTE.GAL_SQUELETTE_LISTE; |
include GAL_CHEMIN_SQUELETTE.$options['squelette']; |
// Récupérer le contenu du buffer |
$sortie = ob_get_contents(); |
// Arrête et détruit le buffer |