Subversion Repositories Applications.papyrus

Rev

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

Rev 1688 Rev 1732
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: gallerie.php,v 1.2 2006-12-08 16:00:11 jp_milcent Exp $
24
// CVS : $Id: gallerie.php,v 1.2.4.1 2007-11-28 17:23:50 jp_milcent Exp $
25
/**
25
/**
26
* papyrus_bp - gallerie.php
26
* papyrus_bp - gallerie.php
27
*
27
*
28
* Le code provient de "Simple Image Gallery" (in content items) Plugin for Joomla 1.0.x - Version 1.0
28
* Le code provient de "Simple Image Gallery" (in content items) Plugin for Joomla 1.0.x - Version 1.0
29
* License: http://www.gnu.org/copyleft/gpl.html
29
* License: http://www.gnu.org/copyleft/gpl.html
Line 35... Line 35...
35
//Auteur original :
35
//Auteur original :
36
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
37
//Autres auteurs :
37
//Autres auteurs :
38
*@author        Aucun
38
*@author        Aucun
39
*@copyright     Tela-Botanica 1999-2006
39
*@copyright     Tela-Botanica 1999-2006
40
*@version       $Revision: 1.2 $ $Date: 2006-12-08 16:00:11 $
40
*@version       $Revision: 1.2.4.1 $ $Date: 2007-11-28 17:23:50 $
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
*/
42
*/
Line 43... Line 43...
43
 
43
 
44
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
Line 89... Line 89...
89
        $options['hauteur'] = 160;
89
        $options['hauteur'] = 160;
90
    }
90
    }
91
    if (!isset($options['qualite'])) {
91
    if (!isset($options['qualite'])) {
92
        $options['qualite'] = 70;
92
        $options['qualite'] = 70;
93
    }
93
    }
-
 
94
	if (!isset($options['img_largeur'])) {
-
 
95
        $options['img_largeur'] = 800;
-
 
96
    }
-
 
97
    if (!isset($options['img_hauteur'])) {
-
 
98
        $options['img_hauteur'] = 600;
94
 
99
    }
-
 
100
    if (!isset($options['img_qualite'])) {
-
 
101
        $options['img_qualite'] = 70;
-
 
102
    }    
95
    //+----------------------------------------------------------------------------------------------------------------+
103
    //+----------------------------------------------------------------------------------------------------------------+
96
    // Récupération des données	
104
    // Récupération des données	
97
	$noimage = 0;
105
	$noimage = 0;
98
	$GLOBALS['_GALLERIE_']['dossier'] = PAP_CHEMIN_RACINE.$options['dossier'];
106
	$GLOBALS['_GALLERIE_']['dossier'] = PAP_CHEMIN_RACINE.$options['dossier'];
99
	if (is_dir($GLOBALS['_GALLERIE_']['dossier'])) {
107
	if (is_dir($GLOBALS['_GALLERIE_']['dossier'])) {
Line 117... Line 125...
117
   		$GLOBALS['_GALLERIE_']['script']['chemin'] = GALL_CHEMIN_SCRIPTS;
125
   		$GLOBALS['_GALLERIE_']['script']['chemin'] = GALL_CHEMIN_SCRIPTS;
118
   		$GLOBALS['_GALLERIE_']['images'] = array();
126
   		$GLOBALS['_GALLERIE_']['images'] = array();
119
   		foreach($images as $image) {
127
   		foreach($images as $image) {
120
			if ($image['filename'] != '') {
128
			if ($image['filename'] != '') {
121
				$aso_img['fichier_nom'] = $image['filename'];
129
				$aso_img['fichier_nom'] = $image['filename'];
122
				$aso_img['url_img'] = $options['dossier'].'/'.$image['filename'];
130
				$aso_img['url_img'] = preg_replace('/papyrus\.php$/', '', PAP_URL).GALL_CHEMIN_SCRIPTS.'showthumb.php?img='.urlencode(PAP_CHEMIN_RACINE.$options['dossier'].'/'.$image['filename']).'&amp;width='.$options['img_largeur'].'&amp;height='.$options['img_hauteur'].'&amp;quality='.$options['img_qualite'];
123
				$aso_img['url_img_mini'] = preg_replace('/papyrus\.php$/', '', PAP_URL).GALL_CHEMIN_SCRIPTS.'showthumb.php?img='.urlencode(PAP_CHEMIN_RACINE.$options['dossier'].'/'.$image['filename']).'&amp;width='.$options['largeur'].'&amp;height='.$options['hauteur'].'&amp;quality='.$options['qualite']; 
131
				$aso_img['url_img_mini'] = preg_replace('/papyrus\.php$/', '', PAP_URL).GALL_CHEMIN_SCRIPTS.'showthumb.php?img='.urlencode(PAP_CHEMIN_RACINE.$options['dossier'].'/'.$image['filename']).'&amp;width='.$options['largeur'].'&amp;height='.$options['hauteur'].'&amp;quality='.$options['qualite']; 
124
				$GLOBALS['_GALLERIE_']['images'][] = $aso_img;
132
				$GLOBALS['_GALLERIE_']['images'][] = $aso_img;
125
			}
133
			}
126
     	}
134
     	}
127
	}
135
	}
Line 145... Line 153...
145
}
153
}
Line 146... Line 154...
146
 
154
 
147
/* +--Fin du code ----------------------------------------------------------------------------------------+
155
/* +--Fin du code ----------------------------------------------------------------------------------------+
148
*
156
*
-
 
157
* $Log: not supported by cvs2svn $
-
 
158
* Revision 1.2  2006-12-08 16:00:11  jp_milcent
-
 
159
* Correction bogue : variable indéfinie.
149
* $Log: not supported by cvs2svn $
160
*
150
* Revision 1.1  2006/12/07 17:29:20  jp_milcent
161
* Revision 1.1  2006/12/07 17:29:20  jp_milcent
151
* Ajout de l'applette Gallerie dans Client car elle n'a pas un rapport direct avec Papyrus.
162
* Ajout de l'applette Gallerie dans Client car elle n'a pas un rapport direct avec Papyrus.
152
*
163
*
153
* Revision 1.2  2006/12/07 16:25:23  jp_milcent
164
* Revision 1.2  2006/12/07 16:25:23  jp_milcent