{'dl_title_telechargement'|@translate}
+-
+ {foreach from=$errors item=error}
+
- {$error} + {/foreach} +
Index: /extensions/Download_Multi/admin/admin.php
===================================================================
--- /extensions/Download_Multi/admin/admin.php (revision 3986)
+++ /extensions/Download_Multi/admin/admin.php (revision 3986)
@@ -0,0 +1,164 @@
+ |
+// | Mod description : |
+// | Ce module est base sur le module existant pour le telechargement, |
+// | cette version permet le telechargement sur plusieurs pages. |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify |
+// | it under the terms of the GNU General Public License as published by |
+// | the Free Software Foundation |
+// | |
+// | This program is distributed in the hope that it will be useful, but |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
+// | General Public License for more details. |
+// | |
+// | You should have received a copy of the GNU General Public License |
+// | along with this program; if not, write to the Free Software |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA. |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+check_status(ACCESS_ADMINISTRATOR);
+
+$DownloadMulti = get_plugin_data($plugin_id);
+global $template, $lang, $page;
+
+// Si le formulaire est posté
+// alors on écrit la configuration
+if (isset($_POST['downloadmulti_post_form']) == 1) {
+ if (empty($_POST['downloadmulti_group'])) {
+ array_push($page['errors'], $lang['dl_error_group_id']);
+ }
+
+ if (empty($_POST['downloadmulti_archive_size'])) {
+ array_push($page['errors'], $lang['dl_error_file_size']);
+ }
+
+ if(preg_match('/[^0-9]/', $_POST['downloadmulti_archive_size'])) {
+ array_push($page['errors'], $lang['dl_error_file_size_car']);
+ }
+
+ if(preg_match('/[^a-z0-9\-_]/', $_POST['downloadmulti_prefix'])) {
+ array_push($page['errors'], $lang['dl_zip_prefix_car']);
+ }
+
+ if(preg_match('/[^a-z0-9\-_\[\]]/', $_POST['downloadmulti_pattern_name'])) {
+ array_push($page['errors'], $lang['dl_zip_pattern_name_car']);
+ }
+
+ if (empty($_POST['downloadmulti_pattern_name'])) {
+ array_push($page['errors'], $lang['dl_error_pattern_name']);
+ }
+
+ if(preg_match('/[^a-z0-9\-_]/', $_POST['downloadmulti_prefix_dir'])) {
+ array_push($page['errors'], $lang['dl_zip_dir_prefix_car']);
+ }
+ // Si il n'y a pas d'erreurs
+ if (count($page['errors']) == 0) {
+ if(isset($_POST['downloadmulti_active_comment'])) {
+ $downloadmulti_active_comment = 'on';
+ } else {
+ $downloadmulti_active_comment = '';
+ }
+
+ if(isset($_POST['downloadmulti_create_category'])) {
+ $downloadmulti_create_category = 'on';
+ } else {
+ $downloadmulti_create_category = '';
+ }
+
+ $DownloadMulti->my_config['active_comment'] = $downloadmulti_active_comment;
+ $DownloadMulti->my_config['comment'] = $_POST['downloadmulti_comment'];
+ $DownloadMulti->my_config['group_id'] = $_POST['downloadmulti_group'];
+ $DownloadMulti->my_config['archive_size'] = $_POST['downloadmulti_archive_size'];
+ $DownloadMulti->my_config['prefix'] = $_POST['downloadmulti_prefix'];
+ $DownloadMulti->my_config['prefix_dir'] = $_POST['downloadmulti_prefix_dir'];
+ $DownloadMulti->my_config['pattern_name'] = $_POST['downloadmulti_pattern_name'];
+ $DownloadMulti->my_config['select_dl'] = $_POST['downloadmulti_select_dl'];
+ $DownloadMulti->my_config['create_category'] = $downloadmulti_create_category;
+ $DownloadMulti->save_config();
+
+ array_push($page['infos'], $lang['dl_backup_config']);
+ }
+}
+
+if(isset($DownloadMulti->my_config['active_comment'])) { $active_comment = $DownloadMulti->my_config['active_comment']; }
+if(isset($DownloadMulti->my_config['comment'])) { $comment = $DownloadMulti->my_config['comment']; }
+if(isset($DownloadMulti->my_config['archive_size'])) { $archive_size = $DownloadMulti->my_config['archive_size']; }
+if(isset($DownloadMulti->my_config['prefix'])) { $prefix = $DownloadMulti->my_config['prefix']; }
+if(isset($DownloadMulti->my_config['prefix_dir'])) { $prefix_dir = $DownloadMulti->my_config['prefix_dir']; }
+if(isset($DownloadMulti->my_config['pattern_name'])) { $pattern_name = $DownloadMulti->my_config['pattern_name']; }
+if(isset($DownloadMulti->my_config['select_dl'])) { $select_dl = $DownloadMulti->my_config['select_dl']; }
+if(isset($DownloadMulti->my_config['group_id'])) { $group_id = $DownloadMulti->my_config['group_id']; }
+if(isset($DownloadMulti->my_config['create_category'])) { $create_category = $DownloadMulti->my_config['create_category']; }
+
+if(!isset($active_comment)) { $active_comment = ''; }
+if(!isset($comment)) { $comment = ''; }
+if(!isset($archive_size)) { $archive_size = ''; }
+if(!isset($prefix)) { $prefix = ''; }
+if(!isset($prefix_dir)) { $prefix_dir = ''; }
+if(!isset($pattern_name)) { $pattern_name = ''; }
+if(!isset($select_dl)) { $select_dl = ''; }
+if(!isset($group_id)) { $group_id = ''; }
+if(!isset($create_category)) { $create_category = ''; }
+
+// +-----------------------------------------------------------------------+
+// | template initialization
+// +-----------------------------------------------------------------------+
+$template->set_filenames(array('plugin_admin_content' => $DownloadMulti->plugin_path.'template/admin.tpl'));
+
+if(!class_exists('zipArchive')) {
+ array_push($page['errors'], $lang['dl_class_exist']);
+}
+
+$template->assign(array(
+ 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=download_multi%2Fadmin%2Fadmin.php',
+ 'DOWNLOADMULTI_ACTIVECOMMENT' => $active_comment ? 'checked="checked"' : '',
+ 'DOWNLOADMULTI_COMMENT' => $comment,
+ 'DOWNLOADMULTI_ARCHIVE_SIZE' => $archive_size,
+ 'DOWNLOADMULTI_PREFIX' => $prefix,
+ 'DOWNLOADMULTI_PREFIX_DIR' => $prefix_dir,
+ 'DOWNLOADMULTI_PATTERN_NAME' => $pattern_name,
+ 'DOWNLOADMULTI_CREATECATEGORY' => $create_category ? 'checked="checked"' : '',
+));
+
+// Gestion des groupes
+$query = '
+SELECT id, name
+ FROM '.$prefixeTable.'groups
+ ORDER BY name ASC
+;';
+$result = pwg_query($query);
+
+while ($row = mysql_fetch_array($result)) {
+ $groupe_id[] = $row['id'];
+ $groupe_name[] = $row['name'];
+}
+
+$template->assign('downloadmulti_group_id', $groupe_id);
+$template->assign('downloadmulti_group_name', $groupe_name);
+$template->assign('downloadmulti_group_select', $group_id);
+
+// Gestion des formats de téléchargement par défaut
+$template->assign('downloadmulti_select_dl',
+ array(
+ 'thumbnail' => $lang['dl_thumbnail'],
+ 'normal' => $lang['dl_normal'],
+ 'high' => $lang['dl_high']
+ )
+ );
+$template->assign('select_dl', $select_dl);
+
+// Chargement de la configuration du serveur
+$DownloadMulti->DmServeurConfiguration();
+
+$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+?>
Index: /extensions/Download_Multi/admin/index.php
===================================================================
--- /extensions/Download_Multi/admin/index.php (revision 3986)
+++ /extensions/Download_Multi/admin/index.php (revision 3986)
@@ -0,0 +1,35 @@
+
Index: /extensions/Download_Multi/include/DmPanier.php
===================================================================
--- /extensions/Download_Multi/include/DmPanier.php (revision 3986)
+++ /extensions/Download_Multi/include/DmPanier.php (revision 3986)
@@ -0,0 +1,110 @@
+ |
+// | Mod description : |
+// | Ce module est base sur le module existant pour le telechargement, |
+// | cette version permet le telechargement sur plusieurs pages. |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify |
+// | it under the terms of the GNU General Public License as published by |
+// | the Free Software Foundation |
+// | |
+// | This program is distributed in the hope that it will be useful, but |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
+// | General Public License for more details. |
+// | |
+// | You should have received a copy of the GNU General Public License |
+// | along with this program; if not, write to the Free Software |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA. |
+// +-----------------------------------------------------------------------+
+
+//--------------------------------------------------------------------- include
+define('PHPWG_ROOT_PATH','../../../');
+include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
+
+check_status(ACCESS_CLASSIC);
+
+// Récupération de la class du plugin
+$DownloadMulti = get_plugin_data('download_multi');
+
+$title = ' Download Multi : Panier';
+$page['body_id'] = 'DownloadMulti';
+$page['section'] = '';
+include(PHPWG_ROOT_PATH.'include/page_header.php');
+
+// include menubar
+include(PHPWG_ROOT_PATH.'include/menubar.inc.php');
+
+$template->set_filenames(
+ array('DownloadMulti_panier' => $DownloadMulti->plugin_path.'/template/DmPanier.tpl')
+);
+
+if(isset($_GET['DmAction'])) {
+ $DmAction = $_GET['DmAction'];
+}
+
+if(isset($_POST['DmPanier'])) {
+ $url = get_root_url().$_POST['DmPanier'];
+}
+
+$template->assign('preview',
+ array(
+ 'U_HOME' => duplicate_index_URL(),
+ 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=download_multi'
+ )
+);
+
+if(isset($DmAction)) {
+ switch($DmAction) {
+ // Formulaire pour choisir
+ // un préfix différent que
+ // celui par défaut
+ case 'name':
+ $DownloadMulti->DmPanierPrefixZip();
+ break;
+
+ // Génération des fichiers zip
+ case 'genfic':
+ if(isset($_POST['nom'])) {
+ $prefix = $_POST['nom'];
+ }
+ $DownloadMulti->DmPanierGenZip($prefix);
+ break;
+
+ // Liste le répertoire utilisateur
+ case 'liste':
+ $DownloadMulti->DmPanierListeDir();
+ break;
+
+ // Vide les archives
+ case 'del':
+ if(isset($_POST['fic'])) {
+ $fic = $_POST['fic'];
+ }
+ $DownloadMulti->DmPanierDelUserDir($fic);
+ $DownloadMulti->DmPanierListeDir();
+ break;
+
+ // Vide le panier
+ case 'delcart':
+ $DownloadMulti->DmPanierDelete();
+ break;
+
+ default:
+ $DownloadMulti->DmPanierListeDir();
+ break;
+ }
+} else {
+ $DownloadMulti->DmPanierListeDir();
+}
+
+$template->parse('DownloadMulti_panier');
+
+include(PHPWG_ROOT_PATH.'include/page_tail.php');
+?>
Index: /extensions/Download_Multi/include/DmPreview.php
===================================================================
--- /extensions/Download_Multi/include/DmPreview.php (revision 3986)
+++ /extensions/Download_Multi/include/DmPreview.php (revision 3986)
@@ -0,0 +1,88 @@
+ |
+// | Mod description : |
+// | Ce module est base sur le module existant pour le telechargement, |
+// | cette version permet le telechargement sur plusieurs pages. |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify |
+// | it under the terms of the GNU General Public License as published by |
+// | the Free Software Foundation |
+// | |
+// | This program is distributed in the hope that it will be useful, but |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
+// | General Public License for more details. |
+// | |
+// | You should have received a copy of the GNU General Public License |
+// | along with this program; if not, write to the Free Software |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA. |
+// +-----------------------------------------------------------------------+
+
+//--------------------------------------------------------------------- include
+define('PHPWG_ROOT_PATH','../../../');
+include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
+
+check_status(ACCESS_CLASSIC);
+
+//----------------------------------------------------- template initialization
+//
+// Start output of page
+//
+$title = ' Download Multi : Panier';
+$page['body_id'] = 'DownloadMulti';
+$page['section'] = '';
+include(PHPWG_ROOT_PATH.'include/page_header.php');
+
+// Récupération de la class du plugin
+$DownloadMulti = get_plugin_data('download_multi');
+
+$template->set_filenames(
+ array('DownloadMulti_preview' => $DownloadMulti->plugin_path.'/template/DmPreview.tpl')
+);
+
+if(isset($_POST['action'])) {
+ $action = $_POST['action'];
+} else {
+ $action = '';
+}
+
+if(isset($_POST['DmCategory'])) {
+ $url = get_root_url().$_POST['DmCategory'];
+}
+
+$template->assign(
+ 'preview',
+ array(
+ 'U_HOME' => make_index_url(),
+ 'U_HELP' => get_root_url().'popuphelp.php?page=download_multi',
+ )
+ );
+
+switch($action) {
+ case 'del':
+ // Supprime une image du panier
+ $id_image = $_POST['id_image'];
+ $type = $_POST['type'];
+ $DownloadMulti->DmPreviewDel($id_image, $type);
+ $DownloadMulti->DmPreviewList();
+ break;
+
+ default:
+ // Affiche la liste des images
+ // dans le panier de l'utilisateur
+ $DownloadMulti->DmPreviewList();
+ break;
+}
+
+// include menubar
+include(PHPWG_ROOT_PATH.'include/menubar.inc.php');
+
+$template->parse('DownloadMulti_preview');
+include(PHPWG_ROOT_PATH.'include/page_tail.php');
+?>
Index: /extensions/Download_Multi/include/DownloadMulti.css
===================================================================
--- /extensions/Download_Multi/include/DownloadMulti.css (revision 3986)
+++ /extensions/Download_Multi/include/DownloadMulti.css (revision 3986)
@@ -0,0 +1,8 @@
+.content-progress {
+ background-color: transparent;
+ margin: 21px 7px 0 290px;
+}
+
+.dl p {
+ text-align: left;
+}
Index: /extensions/Download_Multi/include/DownloadMulti.js
===================================================================
--- /extensions/Download_Multi/include/DownloadMulti.js (revision 3986)
+++ /extensions/Download_Multi/include/DownloadMulti.js (revision 3986)
@@ -0,0 +1,36 @@
+/*
+// +-----------------------------------------------------------------------+
+// | Mod Name : Download_multi |
+// | Mod Version : 0.9-1 |
+// | Mod Orignal author: Tboris |
+// | Mod Second author : Cestlodovic |
+// | Mod Version author : FlipFlip
Pour voir le contenu de votre panier, cliquer sur le bouton Voir le panier. +Depuis cet écran vous pouvez connaitre le type d'images dans votre panier et en supprimer (une à une) en +cliquant sur la croix rouge.
+ +Pour télécharger votre panier, cliquer sur le bouton Télécharger le panier. +Il vous est demandez de préciser un préfixe pour les fichiers zip, vous pouvez laissé celui par défaut. +Pour passer à l'étape suivante cliquer sur le bouton Envoyer. Une liste de fichier +apparait. Pour récupérer les fichiers archives il suffit de cliquer sur le nom des fichiers, votre navigateur +vous proposera une action. Depuis cet écran vous pouvez supprimer les archives zip. Soit vous sélectionner toute +les archives en cliquant sur le bouton Sélectioner, ou alors fichier par fichier en +cochant la case à côté du nom du fichier. Ensuite cliquer sur le bouton Supprimer pour +supprimer les fichiers sélectionner.
Index: /extensions/Download_Multi/language/en_UK/help/index.php =================================================================== --- /extensions/Download_Multi/language/en_UK/help/index.php (revision 3986) +++ /extensions/Download_Multi/language/en_UK/help/index.php (revision 3986) @@ -0,0 +1,35 @@ + Index: /extensions/Download_Multi/language/en_UK/index.php =================================================================== --- /extensions/Download_Multi/language/en_UK/index.php (revision 3986) +++ /extensions/Download_Multi/language/en_UK/index.php (revision 3986) @@ -0,0 +1,35 @@ + Index: /extensions/Download_Multi/language/en_UK/plugin.lang.php =================================================================== --- /extensions/Download_Multi/language/en_UK/plugin.lang.php (revision 3986) +++ /extensions/Download_Multi/language/en_UK/plugin.lang.php (revision 3986) @@ -0,0 +1,94 @@ + | +// | Mod description : | +// | Ce module est base sur le module existant pour le telechargement, | +// | cette version permet le telechargement sur plusieurs pages. | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +$lang['dl_select_all'] = 'Select all'; +$lang['dl_start'] = 'Download your cart'; +$lang['dl_preview'] = 'View your cart'; +$lang['dl_uncheck'] = 'Unselect all'; +$lang['dl_select'] = 'Add in cart'; +$lang['dl_title'] = 'Download the images'; +$lang['dl_thumbnail'] = 'Download the thumbnails'; +$lang['dl_normal'] = 'Download the normal pictures'; +$lang['dl_high'] = 'Download the high resolution pictures'; +$lang['dl_legend_select'] = 'Select the pictures'; +$lang['dl_message_cart'] = 'You have %s pictures'; +$lang['dl_trash'] = 'Empty the cart'; +$lang['dl_archive'] = 'View archives'; +$lang['dl_choice_image'] = 'You must choose at least one picture.'; +$lang['dl_dir_zip'] = 'Impossible to create directory'; +$lang['dl_title_erreur'] = 'Error'; +$lang['dl_title_telechargement'] = 'Files list'; +$lang['dl_empty_cart'] = 'Empty cart'; +$lang['dl_bt_select'] = 'Select'; +$lang['dl_bt_unselect'] = 'Unselect'; +$lang['dl_bt_delete'] = 'Delete'; +$lang['dl_th_file'] = 'Files'; +$lang['dl_th_date'] = 'Create Date'; +$lang['dl_th_action'] = 'Action'; +$lang['dl_no_file'] = 'No files'; +$lang['dl_prefix_file'] = 'File Prefix'; +$lang['dl_prefix_button'] = 'Send'; +$lang['dl_type_thumbnail'] = 'Thumbnail'; +$lang['dl_type_normal'] = 'Normal'; +$lang['dl_type_high'] = 'High definition'; +$lang['dl_cart'] = 'Cart'; +$lang['dl_no_download_title'] = 'Les images suivantes ne peuvent pas être téléchargées en haute définition'; +$lang['dl_no_download_high'] = ' est indisponible en haut définition;'; +$lang['dl_no_download_http'] = ' est indisponible au téléchargement;'; +$lang['dl_no_file'] = 'Aucuns fichiers à télécharger.'; + +/* ----------- Administration ------------ */ +$lang['dl_title'] = 'Download Multi'; +$lang['dl_title_config'] = 'Download Multi configuration'; +$lang['dl_zip_active_comment'] = 'Activer les commentaires dans le fichier zip.Télécharger les images sur plusieurs pages
+ +Pour pouvoir fonctionner correctement javascript doit être activé sur +votre navigateur.
+ +Pour télécharger les images de votre choix il faut les séléctionner en cochant +la case sous la vignette, ou bien cliquer sur le bouton Tout cocher. +Ensuite il faut cliquer sur le bouton Ajouter au panier. Un message +apparait en bas de la page : +
Vous avez actuelement 10 image(s) dans votre panier. +Merci de vider le panier avant de commencer une nouvelle sélection.+ +
Pour voir le contenu de votre panier, cliquer sur le bouton Voir le panier. +Depuis cet écran vous pouvez connaitre le type d'images dans votre panier et en supprimer (une à une) en +cliquant sur la croix rouge.
+ +Pour télécharger votre panier, cliquer sur le bouton Télécharger le panier. +Il vous est demandez de préciser un préfixe pour les fichiers zip, vous pouvez laissé celui par défaut. +Pour passer à l'étape suivante cliquer sur le bouton Envoyer. Une liste de fichier +apparait. Pour récupérer les fichiers archives il suffit de cliquer sur le nom des fichiers, votre navigateur +vous proposera une action. Depuis cet écran vous pouvez supprimer les archives zip. Soit vous sélectionner toute +les archives en cliquant sur le bouton Sélectioner, ou alors fichier par fichier en +cochant la case à côté du nom du fichier. Ensuite cliquer sur le bouton Supprimer pour +supprimer les fichiers sélectionner.
Index: /extensions/Download_Multi/language/fr_FR/help/index.php =================================================================== --- /extensions/Download_Multi/language/fr_FR/help/index.php (revision 3986) +++ /extensions/Download_Multi/language/fr_FR/help/index.php (revision 3986) @@ -0,0 +1,35 @@ + Index: /extensions/Download_Multi/language/fr_FR/index.php =================================================================== --- /extensions/Download_Multi/language/fr_FR/index.php (revision 3986) +++ /extensions/Download_Multi/language/fr_FR/index.php (revision 3986) @@ -0,0 +1,35 @@ + Index: /extensions/Download_Multi/language/fr_FR/plugin.lang.php =================================================================== --- /extensions/Download_Multi/language/fr_FR/plugin.lang.php (revision 3986) +++ /extensions/Download_Multi/language/fr_FR/plugin.lang.php (revision 3986) @@ -0,0 +1,94 @@ + | +// | Mod description : | +// | Ce module est base sur le module existant pour le telechargement, | +// | cette version permet le telechargement sur plusieurs pages. | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +$lang['dl_select_all'] = 'Tout cocher'; +$lang['dl_start'] = 'Télécharger le panier'; +$lang['dl_preview'] = 'Voir le panier'; +$lang['dl_uncheck'] = 'Tout décocher'; +$lang['dl_select'] = 'Ajouter au panier'; +$lang['dl_title'] = 'Télécharger les images'; +$lang['dl_thumbnail'] = 'Télécharger les vignettes'; +$lang['dl_normal'] = 'Télécharger les visualisations écran'; +$lang['dl_high'] = 'Télécharger les hautes définitions'; +$lang['dl_legend_select'] = 'Sélectionner les images'; +$lang['dl_message_cart'] = 'Vous avez %s images'; +$lang['dl_trash'] = 'Vider le panier'; +$lang['dl_archive'] = 'Voir les archives'; +$lang['dl_choice_image'] = 'Vous devez choisir au moins une image.'; +$lang['dl_dir_zip'] = 'Création du répertoire impossible'; +$lang['dl_title_erreur'] = 'Erreur'; +$lang['dl_title_telechargement'] = 'Liste des fichiers'; +$lang['dl_empty_cart'] = 'Panier vide'; +$lang['dl_bt_select'] = 'Sélectionner'; +$lang['dl_bt_unselect'] = 'Désélectionner'; +$lang['dl_bt_delete'] = 'Supprimer'; +$lang['dl_th_file'] = 'Fichiers'; +$lang['dl_th_date'] = 'Date de création'; +$lang['dl_th_action'] = 'Action'; +$lang['dl_no_file'] = 'Pas de fichiers'; +$lang['dl_prefix_file'] = 'Préfixe du fichier'; +$lang['dl_prefix_button'] = 'Envoyer'; +$lang['dl_type_thumbnail'] = 'Vignette'; +$lang['dl_type_normal'] = 'Normal'; +$lang['dl_type_high'] = 'Haute définition'; +$lang['dl_cart'] = 'Panier'; +$lang['dl_no_download_high'] = ' est indisponible en haut définition;'; +$lang['dl_no_download_http'] = ' est indisponible au téléchargement;'; +$lang['dl_no_prefix'] = 'Le prefix ne peut pas contenir de caractères spéciaux sauf le - ou le _'; +$lang['dl_no_file'] = 'Aucuns fichiers à télécharger.'; + +/* ----------- Administration ------------ */ +$lang['dl_title'] = 'Download Multi'; +$lang['dl_title_config'] = 'Download Multi configuration'; +$lang['dl_zip_active_comment'] = 'Activer les commentaires dans le fichier zip, ne fonctionne pas chez free.fr'; +$lang['dl_zip_comment'] = 'Commentaire qui sera affiché dans le fichier zip'; +$lang['dl_group_id'] = 'Groupe autorisé à télécharger les images. Utiliser la touche ctrl pour en sélectionner plusieurs'; +$lang['dl_max_size'] = 'Taille maximal des archives en octets'; +$lang['dl_zip_prefix'] = 'Préfixe par défaut des nom de fichiers zip télécharger'; +$lang['dl_zip_prefix_car'] = 'Le champ Préfixe par défaut des nom de fichiers zip télécharger ne peut contenir que des chiffres et des lettres sans accents'; +$lang['dl_zip_dir_prefix'] = 'Préfixe du répertoire utiliser lors de la décompression'; +$lang['dl_zip_dir_prefix_car'] = 'Le champ Préfixe du répertoire utiliser lors de la décompression ne peut contenir que des chiffres et des lettres sans accents'; +$lang['dl_backup_config'] = 'Configuration de Download Multi sauvegardée'; +$lang['dl_converter'] = 'Convertisseur'; +$lang['dl_zip_pattern_name'] = 'Génération du nom de vos archives, utilisez [date] pour insérer la date sous la forme : YYYYMMDD et [rand] pour générer un chiffre aléatoire'; +$lang['dl_select_dl'] = 'Type de téléchargement par défaut'; + +$lang['dl_error_group_id'] = 'Vous devez indiquer le groupe authorisé à télécharger les images.'; +$lang['dl_error_file_size'] = 'Vous devez indiquer la taille des archives.'; +$lang['dl_error_file_size_car'] = 'Le champ Taille maximal des archives en octets ne peut contenir que des chiffres.'; +$lang['dl_zip_pattern_name_car'] = 'Le champ Génération du nom de vos archives ne peut contenir que des chiffres et des lettres sans accents.'; +$lang['dl_error_pattern_name'] = 'Le champ Génération du nom de vos archives ne peut être vide.'; +$lang['dl_create_category'] = 'Re-créer la structure des catégories dans les archives générées'; + +$lang['dl_title_information'] = 'Information sur votre configuration'; +$lang['dl_class_zip'] = 'Vous utilisez : '; + +/* ----------- Installation -------------- */ +$lang['dl_mysql_version'] = 'Version de mysql incompatible. Vous devez avoir au minimum la version 4.1'; +$lang['dl_php_version'] = 'Version de php inférieur à 5, installation impossible'; +$lang['dl_install_ok'] = 'Installation ok'; +$lang['dl_class_exist'] = 'Pour fonctionner correctement votre serveur doit utiliser la class php ZipArchive, contacter votre administrateur pour qu\'il l\'active'; +?> Index: /extensions/Download_Multi/language/index.php =================================================================== --- /extensions/Download_Multi/language/index.php (revision 3986) +++ /extensions/Download_Multi/language/index.php (revision 3986) @@ -0,0 +1,35 @@ + Index: /extensions/Download_Multi/main.inc.php =================================================================== --- /extensions/Download_Multi/main.inc.php (revision 3986) +++ /extensions/Download_Multi/main.inc.php (revision 3986) @@ -0,0 +1,41 @@ + | +// | Mod description : | +// | Ce module est base sur le module existant pour le telechargement, | +// | cette version permet le telechargement sur plusieurs pages. | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +/* +Plugin Name: Download Multi +Version: 0.9-1 +Description: Permet le téléchargement d'images sur plusieurs pages dans une archive zip. +Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=31 +Author: FlipFlip +Author URI: http://phpwebgallery.net/ext/extension_view.php?eid=31 +*/ + +if (!defined('PHPWG_ROOT_PATH')) { + die('Hacking attempt!'); +} + +include_once(dirname(__FILE__).'/initialize.inc.php'); +?> Index: /extensions/Download_Multi/maintain.inc.php =================================================================== --- /extensions/Download_Multi/maintain.inc.php (revision 3986) +++ /extensions/Download_Multi/maintain.inc.php (revision 3986) @@ -0,0 +1,88 @@ + | +// | Mod description : | +// | Ce module est base sur le module existant pour le telechargement, | +// | cette version permet le telechargement sur plusieurs pages. | +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + + +if (!defined('PHPWG_ROOT_PATH')) { die('Hacking attempt!'); } +defined('DM_DIR') || define('DM_DIR' , basename(dirname(__FILE__))); +defined('DM_PATH') || define('DM_PATH' , PHPWG_PLUGINS_PATH . DM_DIR . '/'); + +global $lang; + +load_language('plugin.lang', DM_PATH); + +function plugin_install($plugin_id, $plugin_version, &$errors) { + global $prefixeTable; + + if(!class_exists('zipArchive')) { + array_push($errors, l10n('dl_class_exist')); + } + + list($mysql_version) = mysql_fetch_row(pwg_query('SELECT VERSION();')); + + if (version_compare($mysql_version, '4.1', '<')) { + array_push($errors, l10n('dl_mysql_version')); + } else if (version_compare(phpversion(), '5.0.0', '<')) { + array_push($errors, l10n('dl_php_version')); + } else { + $query = ' + CREATE TABLE IF NOT EXISTS `'.$prefixeTable.'download_multi` ( + `id_image` mediumint(8) NOT NULL default \'0\', + `id_user` smallint(5) NOT NULL default \'0\', + `type` enum(\'t\',\'n\',\'h\') NOT NULL default \'t\', + `filesize` int(10) unsigned NOT NULL default \'0\', + UNIQUE KEY Index_1 (`id_image`,`id_user`,`type`) + ) ENGINE=MyISAM COMMENT=\'Gestion des telechargement sur plusieurs pages\'; + '; + pwg_query($query); + } +} + +function plugin_activate($plugin_id, $plugin_version, &$errors) { +} + +function plugin_deactivate($plugin_id) { + global $prefixeTable; + + $query = ' + DELETE FROM '.CONFIG_TABLE.' + WHERE param=\'downloadmulti_config\''; + + pwg_query($query); +} + +function plugin_uninstall($plugin_id) { + global $prefixeTable; + + $query = ' + DELETE FROM '.CONFIG_TABLE.' + WHERE param=\'downloadmulti_config\''; + + pwg_query($query); + + $query = 'DROP TABLE IF EXISTS `'.$prefixeTable.'download_multi`;'; + pwg_query($query); +} +?> Index: /extensions/Download_Multi/template/DmCategory.tpl =================================================================== --- /extensions/Download_Multi/template/DmCategory.tpl (revision 3986) +++ /extensions/Download_Multi/template/DmCategory.tpl (revision 3986) @@ -0,0 +1,27 @@ +{$NBIMAGES}
+ +