PEEL Shopping
Open source ecommerce : PEEL Shopping
sites.php
Go to the documentation of this file.
1 <?php
2 // This file should be in UTF8 without BOM - Accents examples: éèê
3 // +----------------------------------------------------------------------+
4 // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr |
5 // +----------------------------------------------------------------------+
6 // | This file is part of PEEL Shopping 8.0.0, which is subject to an |
7 // | opensource GPL license: you are allowed to customize the code |
8 // | for your own needs, but must keep your changes under GPL |
9 // | More information: https://www.peel.fr/lire/licence-gpl-70.html |
10 // +----------------------------------------------------------------------+
11 // | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/ |
12 // +----------------------------------------------------------------------+
13 // $Id: sites.php 47327 2015-10-12 14:36:00Z gboussin $
14 define('IN_PEEL_ADMIN', true);
15 include("../configuration.inc.php");
17 necessite_priv("admin_manage", true, true);
18 
19 $GLOBALS['DOC_TITLE'] = $GLOBALS['STR_ADMIN_SITES_TITLE'];
20 $output = '';
21 
22 $frm = $_POST;
24 
25 if (!empty($frm['logo']) && strpos($frm['logo'], 'http') === false) {
26  if (String::substr($frm['logo'], 0, 1) != '/') {
27  $frm['logo'] = '/' . $frm['logo'];
28  }
29  $frm['logo'] = $GLOBALS['wwwroot'] . $frm['logo'];
30 }
31 if (!empty($_GET['mode']) && in_array($_GET['mode'], array('insere', 'ajout', 'duplicate', 'suppr')) && $_SESSION['session_utilisateur']['site_id']>0) {
32  // La création/duplication/suppression de nouveau site est réservée aux administrateurs multisite. Dans le cas de l'affichage du formulaire ou de l'insertion de données et si l'administrateur n'a pas les droits, on modifie le GET['mode'] pour afficher affiche_liste_site
33  // Le lien de création de site ne s'affiche pas aux administrateurs multisite.
34  $_GET['mode'] = 'default';
35 }
36 
37 switch (vb($_GET['mode'])) {
38  case "siteid_to_SET" :
39  // pour le mode multisite où l'on peut spécifier une liste de site différent pour un élément. Il faut passer pour cela site_id à SET de 32 possibilités
40  // pour lancer la requête il faut appeler cette page avec mode=siteid_to_SET.
41  // Fonction expérimentale , à n'utiliser vous maitriser le sujet.
42  query("ALTER TABLE `peel_admins_actions` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
43  ALTER TABLE `peel_articles` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
44  ALTER TABLE `peel_categories` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
45  ALTER TABLE `peel_codes_promos` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
46  ALTER TABLE `peel_commandes` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
47  ALTER TABLE `peel_commandes_cadeaux` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
48  ALTER TABLE `peel_configuration` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
49  ALTER TABLE `peel_devises` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
50  ALTER TABLE `peel_html` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
51  ALTER TABLE `peel_langues` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
52  ALTER TABLE `peel_marques` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
53  ALTER TABLE `peel_meta` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
54  ALTER TABLE `peel_produits` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
55  ALTER TABLE `peel_rubriques` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
56  ALTER TABLE `peel_societe` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
57  ALTER TABLE `peel_tarifs` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
58  ALTER TABLE `peel_utilisateurs` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
59  ALTER TABLE `peel_utilisateur_connexions` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
60  ALTER TABLE `peel_vignettes_carrousels` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';
61  ALTER TABLE `peel_zones` CHANGE `site_id` `site_id` SET('0','1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31') NOT NULL DEFAULT '1';");
62  break;
63 
64  case "ajout" :
65  // Affiche le formulaire d'ajout de site
67  break;
68 
69  case "modif" :
70  // Affiche le formulaire d'ajout de site si POST est vide, sinon modifie les valeurs en BDD avec la fonction create_or_update_site
71  if (!empty($frm)) {
72  // $_POST est défini
73  $frm['favicon'] = upload('favicon', false, 'image_or_ico', $GLOBALS['site_parameters']['image_max_width'], $GLOBALS['site_parameters']['image_max_height'], null, null, vb($frm['favicon']));
74  $frm['default_picture'] = upload('default_picture', false, 'image_or_ico', $GLOBALS['site_parameters']['image_max_width'], $GLOBALS['site_parameters']['image_max_height'], null, null, vb($frm['default_picture']));
75 
76  if (!verify_token($_SERVER['PHP_SELF'] . vb($_GET['mode']))) {
77  // Contrôle du token
78  $form_error_object->add('token', $GLOBALS['STR_INVALID_TOKEN']);
79  }
80 
81  // Vérification de la présence d'information indispensable pour configurer un site
82  // - email du webmaster
83  // - URL
84  // - nom du site
85  $form_error_object->valide_form($frm, array('email_webmaster' => $GLOBALS['STR_ADMIN_SITES_ERR_EMPTY_EMAIL'] . ' "' . $GLOBALS["STR_MODULE_WEBMAIL_ADMIN_WEBMASTER_EMAIL"] . '".',
86  'nom_'.$_SESSION['session_langue'] => sprintf($GLOBALS['STR_MISSED_ATTRIBUT_MANDATORY'], $GLOBALS['STR_ADMIN_SITES_SITE_NAME']) . '.',
87  'wwwroot' => sprintf($GLOBALS['STR_MISSED_ATTRIBUT_MANDATORY'], $GLOBALS['STR_ADMIN_WWWROOT']) . '.'));
88 
89  if (!$form_error_object->count()) {
90  // => Pas d'erreur lors du contrôle du formulaire, on peut faire les modifications en BDD
91 
92  if(!empty($frm['install'])) {
93  // Gestion de l'installation ou la désinstallation d'un module
94  foreach($frm['install'] as $this_module => $install_or_uninstall) {
95  if(class_exists(String::ucfirst($this_module)) && method_exists(String::ucfirst($this_module), 'check_install')) {
96  // Module complet avec classe permettant de gérer proprement l'installation
97  $class_name = String::ucfirst($this_module);
98  if($install_or_uninstall != $class_name::check_install()) {
99  if(!isset($GLOBALS[$class_name])) {
100  $GLOBALS[$class_name] = new $class_name();
101  }
102  if($install_or_uninstall) {
103  $installed = $GLOBALS[$class_name]->install();
104  } else {
105  $uninstalled = $GLOBALS[$class_name]->uninstall();
106  }
107  $output .= $GLOBALS[$class_name]->get_messages();
108  }
109  } else {
110  // Module light, sans classe.
111  // Ici on ne fait rien, l'installation est gérée dans la fonction affiche_formulaire_site
112  }
113  }
114  }
115  $frm['site_id'] = $_GET['id'];
116  $output .= create_or_update_site($frm, true, $_GET['mode']);
117  $output .= $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => $GLOBALS['STR_ADMIN_SITES_MSG_UPDATED_OK']))->fetch();
119  } else {
120  // Au moins une erreur est présente dans les valeurs envoyées par le formulaire
121  foreach ($form_error_object->error as $name => $text) {
122  $output .= $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => $text))->fetch();
123  }
124  $output .= affiche_formulaire_modif_site($_GET['id'], $frm);
125  }
126  } else {
127  $output .= affiche_formulaire_modif_site($_GET['id'], null);
128  }
129  break;
130 
131  case "suppr" :
132  // Suppression d'un site
133  $output .= supprime_site($_GET['id']);
135  break;
136 
137  case "duplicate" :
138  // Duplication d'un site existant.
139  if (check_if_module_active('duplicate') && isset($_GET['id'])) {
140  // Il faut que l'administrateur possède les droits d'administration pour tous les sites pour faire la duplication, sinon il ne pourra pas accéder aux informations du site en cours de création
141  if($_SESSION['session_utilisateur']['site_id'] == 0) {
142  $_SESSION['session_admin_multisite'] = 0;
143  }
144  // Exécute la duplication
145  duplicate_site(intval($_GET['id']));
146  // Redirection vers la page de liste de site, afin d'éviter une nouvelle duplication en faisant F5
148  } else {
149  // Affiche la liste des sites configurés
151  }
152  break;
153 
154  case "insere" :
155  // Fait l'insertion d'un nouveau site (vient après mode=ajout)
156  if (!verify_token($_SERVER['PHP_SELF'] . vb($_GET['mode']))) {
157  // Contrôle du token
158  $form_error_object->add('token', $GLOBALS['STR_INVALID_TOKEN']);
159  }
160  // Vérification de la présence d'information indispensable pour configurer un site
161  // - email du webmaster
162  // - URL
163  // - nom du site
164  $form_error_object->valide_form($frm, array('email_webmaster' => $GLOBALS['STR_ADMIN_SITES_ERR_EMPTY_EMAIL'] . ' "' . $GLOBALS["STR_MODULE_WEBMAIL_ADMIN_WEBMASTER_EMAIL"] . '".',
165  'nom_'.$_SESSION['session_langue'] => sprintf($GLOBALS['STR_MISSED_ATTRIBUT_MANDATORY'], '"'.$GLOBALS['STR_ADMIN_SITES_SITE_NAME'].'"') . '.',
166  'wwwroot' => sprintf($GLOBALS['STR_MISSED_ATTRIBUT_MANDATORY'], '"'.$GLOBALS['STR_ADMIN_WWWROOT'].'"'). '.'));
167  if (!$form_error_object->count()) {
168  // Récupération du l'id de site la plus élevée pour attribuer un nouvel id au nouveau site.
169  $query = query('SELECT MAX( site_id ) as site_id
170  FROM peel_configuration');
171  $new_site_id = fetch_assoc($query);
172  $frm['site_id'] = $new_site_id['site_id']+1;
173  $frm['favicon'] = upload('favicon', false, 'image_or_ico', $GLOBALS['site_parameters']['image_max_width'], $GLOBALS['site_parameters']['image_max_height'], null, null, vb($frm['favicon']));
174  $frm['default_picture'] = upload('default_picture', false, 'image_or_ico', $GLOBALS['site_parameters']['image_max_width'], $GLOBALS['site_parameters']['image_max_height'], null, null, vb($frm['default_picture']));
175 
176  // => Pas d'erreur lors du contrôle du formulaire, on peut faire les modifications en BDD
177  // Il faut que l'administrateur possède les droits d'administration pour tous les sites pour faire la duplication, sinon il ne pourra pas accéder aux informations du site en cours de création
178  if($_SESSION['session_utilisateur']['site_id'] == 0) {
179  $_SESSION['session_admin_multisite'] = 0;
180  }
181  $output .= create_or_update_site($frm, false, $_GET['mode'], $GLOBALS['lang_codes']);
182  $output .= $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => sprintf($GLOBALS['STR_ADMIN_SITES_MSG_INSERTED_OK'], $frm['nom_' . $_SESSION['session_langue']])))->fetch();
184  } else {
185  // Au moins une erreur est présente dans les valeurs envoyées par le formulaire
186  foreach ($form_error_object->error as $name => $text) {
187  $output .= $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => $text))->fetch();
188  }
190  }
191  break;
192 
193  case "supprfavicon" :
194  // Suppression du favicon depuis le formulaire de modification de site (mode=modif)
195  supprime_favicon(vn($_GET['id']), $_GET['favicon']);
196  $output .= affiche_formulaire_modif_site($_GET['id'], $frm);
197  break;
198 
199  case "supprdefault_picture" :
200  // Suppression de l'image par défaut du produit depuis le formulaire de modification de site (mode=modif)
201  supprime_default_picture(vn($_GET['id']), $_GET['default_picture']);
202  $output .= affiche_formulaire_modif_site($_GET['id'], $frm);
203  break;
204 
205  default :
206  // Affichage de la liste des sites (si il y a plus d'un site configuré)
208  break;
209 }
210 include($GLOBALS['repertoire_modele'] . "/admin_haut.php");
211 echo $output;
212 include($GLOBALS['repertoire_modele'] . "/admin_bas.php");
213 
225 {
226  // Default values
227  $urlsite = 'http://' . $_SERVER['HTTP_HOST'];
228  $urlscript = dirname($_SERVER['PHP_SELF']);
229  $url = ($urlscript == '/') ? trim($urlsite) : trim($urlsite . $urlscript);
230 
231  if(empty($frm)) {
232  $frm['default_country_id'] = vn($GLOBALS['site_parameters']['default_country_id']);
233  foreach($GLOBALS['admin_lang_codes'] as $lng) {
234  $frm['nom_' . $lng] = "";
235  $frm['logo_' . $lng] = "";
236  }
237  $frm['pays_exoneration_tva'] = "";
238  $frm['css'] = "";
239  $frm['template_directory'] = "";
240  $frm['template_multipage'] = "";
241  $frm['url'] = str_replace(array("/administrer", '/' . $GLOBALS['site_parameters']['backoffice_directory_name']), "", $url);
242  $frm['on_logo'] = 1;
243  $frm['favicon'] = "";
244  $frm['timemax'] = 1800;
245  $frm['seuil'] = 5;
246  $frm['seuil_total'] = 100;
247  $frm['seuil_total_reve'] = 100;
248  $frm['module_retail'] = 1;
249  $frm['module_affilie'] = 1;
250  $frm['commission_affilie'] = 5;
251  $frm['module_lot'] = 1;
252  $frm['module_parrain'] = 1;
253  $frm['module_cadeau'] = 1;
254  $frm['module_devise'] = 1;
255  // Il ne faut pas définir la devise par défaut en dur, puisque l'id de la devise dépend du site.
256  $frm['devise_defaut'] = '';
257  $frm['module_nuage'] = 1;
258  $frm['module_flash'] = 1;
259  $frm['module_captcha'] = 1;
260  $frm['module_cart_preservation'] = 1;
261  $frm['module_pub'] = 1;
262  $frm['module_faq'] = 1;
263  $frm['module_vacances'] = 1;
264  $frm['module_vacances_type'] = 0;
265  $frm['facebook_connect'] = 0;
266  $frm['fb_appid'] = "";
267  $frm['fb_secret'] = "";
268  $frm['fb_baseurl'] = "";
269  foreach ($GLOBALS['admin_lang_codes'] as $lng) {
270  $frm['module_vacances_client_msg_' . $lng] = "";
271  }
272  $frm['module_precedent_suivant'] = 1;
273  $frm['in_category'] = 1;
274  $frm['module_forum'] = 1;
275  $frm['module_conditionnement'] = 1;
276  $frm['module_giftlist'] = 1;
277  $frm['module_rss'] = 1;
278  $frm['module_ecotaxe'] = 1;
279  $frm['module_url_rewriting'] = 1;
280  $frm['module_entreprise'] = 0;
281  $frm['display_prices_with_taxes'] = 1;
282  $frm['display_prices_with_taxes_in_admin'] = 1;
283  $frm['html_editor'] = 0;
284  $frm['avoir'] = 10;
285  $frm['email_paypal'] = "";
286  $frm['email_commande'] = "";
287  $frm['email_webmaster'] = "";
288  $frm['nom_expediteur'] = "";
289  $frm['email_client'] = "";
290  $frm['sips'] = "";
291  $frm['spplus'] = "";
292  $frm['systempay_payment_count'] = "";
293  $frm['systempay_payment_period'] = "";
294  $frm['systempay_cle_test'] = "";
295  $frm['systempay_cle_prod'] = "";
296  $frm['systempay_test_mode'] = "";
297  $frm['systempay_code_societe'] = "";
298  $frm['paybox_cgi'] = "";
299  $frm['paybox_site'] = "";
300  $frm['paybox_rang'] = "";
301  $frm['paybox_identifiant'] = "";
302  $frm['email_moneybookers'] = "";
303  $frm['secret_word'] = "";
304  $frm['module_rollover'] = 1;
305  $frm['type_rollover'] = 1;
306  $frm['logo_affiliation'] = "";
307  $frm['small_order_overcost_limit'] = "";
308  $frm['small_order_overcost_amount'] = "";
309  $frm['small_order_overcost_tva_percent'] = "";
310  $frm['minimal_amount_to_order'] = "";
311  $frm['minimal_amount_to_order_reve'] = "";
312  $frm['mode_transport'] = 1;
313  $frm['format_numero_facture'] = "[id]";
314  $frm['module_socolissimo'] = 1;
315  $frm['module_icirelais'] = 1;
316  $frm['module_autosend'] = 0;
317  $frm['module_autosend_delay'] = 5;
318  $frm['fb_admins'] = '';
319  $frm['facebook_page_link'] = '';
320  $frm['socolissimo_foid'] = "";
321  $frm['socolissimo_sha1_key'] = "";
322  $frm['socolissimo_urlok'] = "";
323  $frm['socolissimo_urlko'] = "";
324  $frm['socolissimo_preparationtime'] = "";
325  $frm['socolissimo_forwardingcharges'] = "";
326  $frm['socolissimo_firstorder'] = "";
327  $frm['socolissimo_pointrelais'] = "";
328  $frm['socolissimo_dyForwardingChargesCMT'] = "";
329  $frm['tag_analytics'] = "";
330  $frm['availability_of_carrier'] = 0;
331  $frm['allow_add_product_with_no_stock_in_cart'] = "0";
332  $frm['zoom'] = "jqzoom";
333  $frm['enable_prototype'] = "";
334  $frm['enable_jquery'] = 1;
335  $frm['send_email_active'] = 1;
336  $frm['display_errors_for_ips'] = "";
337  $frm['display_nb_product'] = "0";
338  $frm['module_tnt'] = 0;
339  $frm['module_filtre'] = 1;
340  $frm['tnt_username'] = 0;
341  $frm['tnt_password'] = 0;
342  $frm['tnt_account_number'] = 0;
343  $frm['expedition_delay'] = 0;
344  $frm['expedition_delay'] = 0;
345  $frm['export_encoding'] = 0;
346  $frm['category_count_method'] = 0;
347  $frm['sessions_duration'] = 180;
348  $frm['nb_produit_page'] = 10;
349  $frm['small_width'] = 160;
350  $frm['small_height'] = 160;
351  $frm['medium_width'] = 300;
352  $frm['medium_height'] = 300;
353  $frm['anim_prod'] = 1;
354  // attribut pour l'image par défaut
355  $frm['default_picture'] = "";
356  // On prend les valeurs par défaut : site_id = 0 en base de données
357  // get_filter_site_cond('configuration') => Ne pas utiliser le paramètre $use_admin_rights, les configurations à récupérer sont uniquement celles communes à tous les sites (id=0). Les droits de l'administrateur qui fait la demande ne sont pas à prendre en compte.
358  $sql = 'SELECT *
359  FROM peel_configuration
360  WHERE ' . get_filter_site_cond('configuration', null, false, 0, true) . '
361  ORDER BY site_id ASC';
362  $q = query($sql);
363  while($result = fetch_assoc($q)) {
364  if(!in_array($result['technical_code'], array('wwwroot'))) {
365  $frm[$result['technical_code']] = $result['string'];
366  }
367  }
368  }
369  $frm['nouveau_mode'] = "insere";
370  $frm['id'] = "";
371  $frm['titre_bouton'] = $GLOBALS['STR_ADMIN_ADD'];
372  $frm_modules = get_modules_array(false, null, null, true);
373  return affiche_formulaire_site($frm, $frm_modules);
374 }
375 
384 {
385  if (empty($frm)) {
386  // On charge le tableau de configuration commune aux sites, puis spécifique au site en cours de modification
387  // Si les tableaux d'entrées ont des clés en commun, alors, la valeur finale pour cette clé écrasera la précédente.
388  // get_filter_site_cond('configuration') => Ne pas utiliser le paramètre $use_admin_rights, les configurations à récupérer sont celles de $id + celles publiques avec id=0, même si l'administrateur ne pourra pas modifier celles-ci.
389  // Les droits de l'administrateur qui fait la demande ne sont pas à prendre en compte ici, mais plus tard à l'insert/update
390  $frm = array();
391  $sql = 'SELECT *
392  FROM peel_configuration
393  WHERE ' . get_filter_site_cond('configuration', null, false, $id, false) . '
394  ORDER BY site_id ASC';
395  $q = query($sql);
396  while($result = fetch_assoc($q)) {
397  $frm[$result['technical_code']] = $result['string'];
398  }
399  }
400  if (!empty($frm)) {
401  // Les modules ne sont pas concerné par le multi-site
402  $frm_modules = get_modules_array(false, null, null, true, $id, false);
403  $frm['id'] = $id;
404  $frm["nouveau_mode"] = "modif";
405  $frm["titre_bouton"] = $GLOBALS['STR_ADMIN_FORM_SAVE_CHANGES'];
406  return affiche_formulaire_site($frm, $frm_modules);
407  } elseif($_SESSION['session_utilisateur']['site_id'] == 0) {
408  // Si pas de site avec l'id demandé et que l'administrateur est multisite => on redirige vers le formulaire de création de site.
409  redirect_and_die(get_current_url(false).'?mode=ajout');
410  } else {
411  // Redirection vers la liste des sites administrables.
413  }
414 }
415 
423 function affiche_formulaire_site(&$frm, $frm_modules)
424 {
425  $output = '';
426  // Correction gestion variables de configuration booléennes
427  foreach(array('site_suspended', 'systempay_test_mode') as $this_field) {
428  if(isset($frm[$this_field])) {
429  if($frm[$this_field] === 'false') {
430  $frm[$this_field] = false;
431  } elseif($frm[$this_field] === 'true') {
432  $frm[$this_field] = true;
433  }
434  }
435  }
436  $tpl = $GLOBALS['tplEngine']->createTemplate('admin_formulaire_site.tpl');
437 
438  // Liste des modules installés
439 
440  $premium_modules_array = array('affiliation', 'birthday', 'cart_preservation', 'category_promotion', 'comparateur', 'download', 'duplicate',
441  'facture_advanced', 'faq', 'gift_check', 'gifts', 'good_clients', 'groups', 'lexique', 'lot', 'marges', 'marques_promotion', 'micro_entreprise',
442  'parrainage', 'picking', 'reseller', 'statistiques', 'stock_advanced', 'url_rewriting', 'welcome_ad');
443  $modules_light_default_names = array('expeditor' => $GLOBALS['STR_ADMIN_SITES_EXPEDITOR_MODULE'], 'facebook' => $GLOBALS['STR_ADMIN_SITES_FACEBOOK_MODULE'],
444  'icirelais' => $GLOBALS['STR_ADMIN_SITES_ICI_RELAIS_MODULE'], 'sips' => $GLOBALS['STR_ADMIN_SITES_SIPS_MODULE'],
445  'spplus' => $GLOBALS['STR_ADMIN_SITES_SPPLUS_MODULE'], 'paybox' => $GLOBALS['STR_ADMIN_SITES_PAYBOX_MODULE'],
446  'systempay' => $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY'], 'partenaires' => $GLOBALS['STR_ADMIN_SITES_PARTNERS_MODULE'],
447  'ecotaxe' => $GLOBALS['STR_ADMIN_SITES_ECOTAX_MODULE'], 'devises' => $GLOBALS['STR_ADMIN_SITES_CURRENCIES_MODULE'],
448  'paypal' => $GLOBALS['STR_ADMIN_SITES_PAYPAL_MODULE'], 'moneybookers' => $GLOBALS['STR_ADMIN_SITES_MONEYBOOKERS_MODULE'],
449  'kekoli' => $GLOBALS['STR_ADMIN_SITES_KEKOLI_MODULE'], 'tag_cloud' => $GLOBALS['STR_ADMIN_SITES_TAG_CLOUD_MODULE'],
450  'flash' => $GLOBALS['STR_ADMIN_SITES_FLASH_SALES_MODULE'], 'rss' => $GLOBALS['STR_ADMIN_SITES_RSS_MODULE'],
451  'avis' => $GLOBALS['STR_ADMIN_SITES_OPINIONS_MODULE'], 'stock_advanced' => $GLOBALS['STR_ADMIN_SITES_STOCKS_MODULE'],
452  'cart_preservation' => $GLOBALS['STR_ADMIN_SITES_CART_SAVE_MODULE'], 'affiliation' => $GLOBALS['STR_ADMIN_SITES_AFFILIATION_MODULE'],
453  'lots' => $GLOBALS['STR_ADMIN_SITES_PRODUCT_LOTS_MODULE'], 'parrainage' => $GLOBALS['STR_ADMIN_SITES_SPONSOR_MODULE'],
454  'url_rewriting' => $GLOBALS['STR_ADMIN_SITES_URL_REWRITING_MODULE'], 'micro_entreprise' => $GLOBALS['STR_ADMIN_SITES_MICROBUSINESS_MODULE'],
455  'birthday' => $GLOBALS['STR_ADMIN_SITES_BIRTHDAY_MODULE'], 'faq' => $GLOBALS['STR_ADMIN_SITES_FAQ_MODULE'],
456  'category_promotion' => $GLOBALS['STR_ADMIN_SITES_CATEGORIES_PROMOTION'], 'marques_promotion' => $GLOBALS['STR_ADMIN_SITES_TRADEMARK_PROMOTION'],
457  'conditionnement' => $GLOBALS['STR_ADMIN_SITES_PRODUCT_CONDITIONING_MODULE'], 'friends_connect' => $GLOBALS['STR_ADMIN_SITES_GOOGLE_FRIENDS_CONNECT_MODULE'],
458  'vacances' => $GLOBALS['STR_ADMIN_SITES_VACANCY_MODULE'], 'forum' => $GLOBALS['STR_ADMIN_SITES_FORUM_MODULE'],
459  'gifts_list' => $GLOBALS['STR_ADMIN_SITES_GIFTS_LIST'], 'so_colissimo' => $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_MODULE'],
460  'vatlayer' => $GLOBALS['STR_ADMIN_SITES_VATLAYER_MODULE'],
461  );
462 
463  $modules_dir = $GLOBALS['dirroot'] . "/modules";
464  if ($handle = opendir($modules_dir)) {
465  while ($file = readdir($handle)) {
466  if ($file != "." && $file != ".." && is_dir($modules_dir . '/' . $file)) {
467  $modules_on_disk[$file] = $modules_dir . '/' . $file;
468  }
469  }
470  }
471  $tpl_modules_infos = array();
472  $i=0;
473  foreach($modules_on_disk as $this_module => $folder_path) {
474  unset($file_path);
475  unset($installed);
476  unset($to_install);
477  if(!empty($GLOBALS['site_parameters']['modules_front_office_functions_files_array'][$this_module])) {
478  $installed = true;
479  foreach(explode(',', $GLOBALS['site_parameters']['modules_front_office_functions_files_array'][$this_module]) as $this_file) {
480  $file_path = $GLOBALS['dirroot'] . $this_file;
481  if(String::strpos($file_path, '.php') !== false && !in_array($this_file, $GLOBALS['modules_loaded_functions']) && (empty($GLOBALS['site_parameters']['modules_no_library_load_array']) || !in_array($this_module, $GLOBALS['site_parameters']['modules_no_library_load_array']))) {
482  // Fichier pas déjà chargé car module non activé => là on charge le fichier pour savoir si une classe est dedans
483  include($file_path);
484  }
485  }
486  } else {
487  // Module pas installé et inconnu
488  foreach(array('fonctions.php', 'functions.php', String::ucfirst($this_module) . '.php') as $this_filename) {
489  if(!in_array(String::strtolower(str_replace($GLOBALS['dirroot'], '', $folder_path . '/' . $this_filename)), array('/modules/calc/calc.php')) && file_exists($folder_path . '/' . $this_filename)) {
490  // Fichier de classe ou de fonctions du module
491  $file_path = $folder_path . '/' . $this_filename;
492  if(!in_array(str_replace($GLOBALS['dirroot'], '', $file_path), $GLOBALS['site_parameters']['load_site_specific_files_before_others']) && !in_array(str_replace($GLOBALS['dirroot'], '', $file_path), $GLOBALS['site_parameters']['load_site_specific_files_after_others'])) {
493  @include($file_path);
494  }
495  if($this_filename != String::ucfirst($this_module) . '.php' || (class_exists(String::ucfirst($this_module) && method_exists(String::ucfirst($this_module), 'check_install')))) {
496  // Soit il s'agit d'un fichier de fonctions, soit d'un fichier de classe
497  // Mais par exemple modules/calc/calc.php qui n'est pas un fichier de classe ne doit pas être installé
498  $to_install = $file_path;
499  }
500  break;
501  }
502  }
503  }
504  if(empty($file_path)) {
505  // Si rien de trouvé dans les fichiers standards, on cherche un fichier PHP quelconque pour connaître la version en regardant dans le code plus loin
506  $file_path = $folder_path . '/';
507  $temp = explode(',', $file_path);
508  $file_path = $temp[0];
509  foreach(array($file_path, $file_path . 'administrer', $file_path . 'admin') as $this_folder) {
510  if(String::strpos($this_folder, '.php') === false && file_exists($this_folder)) {
511  if ($handle = opendir($this_folder)) {
512  while ($file = readdir($handle)) {
513  if ($file != "." && $file != ".." && String::strpos($file, '.php') !== false) {
514  $file_path = $this_folder . '/' . $file;
515  break;
516  }
517  }
518  }
519  }
520  }
521  }
522  if(class_exists(String::ucfirst($this_module)) && method_exists(String::ucfirst($this_module), 'check_install')) {
523  // Une classe est détectée, c'est un module complet avec une méthode d'installation
524  $class_name = String::ucfirst($this_module);
525  if(!isset($GLOBALS[$class_name])) {
526  $GLOBALS[$class_name] = new $class_name();
527  }
528  $type = 'full';
529  $installed = $class_name::check_install();
530  $version = $GLOBALS[$class_name]->version;
531  $name = $GLOBALS[$class_name]->name;
532  } else {
533  // Module léger sans classe - sa présence sur le disque suffit à considérer qu'il est installé
534  $type = 'light';
535  $name = vb($modules_light_default_names[$this_module], String::ucfirst($this_module));
536  if(empty($installed)) {
537  if(!empty($to_install)) {
538  foreach(array('peel_' . $this_module . '.sql', '' . $this_module . '.sql') as $this_filename) {
539  if (file_exists($modules_dir . '/' . $this_module . '/' . $this_filename)) {
540  // Exécution du SQL d'installation d'un module qui n'a pas de méthode d'installation
541  $error_msg = execute_sql($GLOBALS['dirroot'] . '/modules/' . $this_module . '/' . $this_filename, null, true);
542  $output .= $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => 'SQL OK '. $GLOBALS['STR_BEFORE_TWO_POINTS'].': ' . $GLOBALS['dirroot'] . '/modules/' . $this_module . '/' . $this_filename))->fetch();
543  if(!empty($error_msg)) {
544  $output .= $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message_to_escape' => $error_msg))->fetch();
545  }
546  }
547  }
548  }
549  // Intallation Express automatique, exécutée une seule fois :
550  if(!empty($to_install) && !in_array(str_replace($GLOBALS['dirroot'], '', $to_install), $GLOBALS['site_parameters']['load_site_specific_files_before_others']) && !in_array(str_replace($GLOBALS['dirroot'], '', $to_install), $GLOBALS['site_parameters']['load_site_specific_files_after_others'])) {
551  // on ajoute la configuration du fichier de fonctions à modules_front_office_functions_files_array pour que le module puisse être chargé (et pas forcément activé)
552  $GLOBALS['site_parameters']['modules_front_office_functions_files_array'][$this_module] = str_replace($GLOBALS['dirroot'], '', $to_install);
553  set_configuration_variable(array('technical_code' => 'modules_front_office_functions_files_array', 'string' => $GLOBALS['site_parameters']['modules_front_office_functions_files_array'], 'type' => 'array', 'origin' => 'sites.php', 'site_id' => 0), true);
554  }
555  // On cherche si il y a un fichier de fonctions d'administration à installer
556  foreach(array('administrer/fonctions.php', 'admin/fonctions.php', 'administrer/functions.php', 'admin/functions.php') as $this_filename) {
557  if(file_exists($folder_path . '/' . $this_filename)) {
558  // Fichier d'administration, de classe ou de fonctions du module
559  $file_path = $folder_path . '/' . $this_filename;
560  if(String::strpos($file_path, '.php') !== false && !in_array(vb($GLOBALS['site_parameters']['modules_admin_functions_array'][$this_module]), $GLOBALS['modules_loaded_functions']) && (empty($GLOBALS['site_parameters']['modules_no_library_load_array']) || !in_array($this_module, $GLOBALS['site_parameters']['modules_no_library_load_array']))) {
561  include($file_path);
562  if(!in_array(str_replace($GLOBALS['dirroot'], '', $file_path), $GLOBALS['site_parameters']['modules_admin_functions_array'])) {
563  $GLOBALS['site_parameters']['modules_admin_functions_array'][$this_module] = str_replace($GLOBALS['dirroot'], '', $file_path);
564  set_configuration_variable(array('technical_code' => 'modules_admin_functions_array', 'string' => $GLOBALS['site_parameters']['modules_admin_functions_array'], 'type' => 'array', 'origin' => 'sites.php', 'site_id' => 0), true);
565  }
566  }
567  break;
568  }
569  }
570  }
571  // Détection de la version
572  $version = '';
573  // On cherche dans le fichier de référence le numéro de version dans une ligne de commentaire d'entête du type
574  // PEEL Modules X.X.X
575  if($fp = String::fopen_utf8($file_path, "r")) {
576  while ($line = fgets($fp, 1024)) {
577  if(String::substr($line, 0, 2) == '//' && preg_match("/PEEL (Shopping|Modules) ([0-9.]*)/i", $line, $matches)) {
578  $version = $matches[2];
579  break;
580  }
581  }
582  fclose($fp);
583  }
584  }
585  if(!empty($GLOBALS['modules_installed'][$this_module]) || (empty($GLOBALS['site_parameters']['modules_front_office_functions_files_array'][$this_module]) && empty($GLOBALS['site_parameters']['modules_admin_functions_array'][$this_module]) && check_if_module_active($this_module))) {
586  $enabled = true;
587  } else {
588  $enabled = false;
589  }
590  $tpl_modules_infos[$name.$i] = array('tr_rollover' => tr_rollover($i, true),
591  'type' => $type,
592  'installed' => !empty($installed),
593  'enabled' => $enabled,
594  'name' => $name,
595  'technical_code' => $this_module,
596  'version' => $version,
597  'package' => (in_array($this_module, $premium_modules_array)?'Premium':''),
598  'configuration_variable' => vb($GLOBALS['site_parameters']['modules_configuration_variable_array'][$this_module], 'module_' . $this_module)
599  );
600  $i++;
601  }
602  ksort($tpl_modules_infos);
603  $other_modules_array = array_unique(array_merge(array_keys($GLOBALS['site_parameters']['modules_front_office_functions_files_array']), $GLOBALS['site_parameters']['modules_no_library_load_array']));
604  sort($other_modules_array);
605  foreach($other_modules_array as $this_module) {
606  if(empty($modules_on_disk[$this_module])) {
607  $tpl_modules_infos[] = array('tr_rollover' => tr_rollover($i, true),
608  'type' => 'none',
609  'installed' => false,
610  'enabled' => false,
611  'name' => vb($modules_light_default_names[$this_module], String::ucfirst($this_module)),
612  'technical_code' => $this_module,
613  'version' => null,
614  'contact' => true,
615  'package' => (in_array($this_module, $premium_modules_array)?' (inclus dans le module Premium)':'')
616  );
617  $i++;
618  }
619  }
620 
621  $tpl->assign('modules_infos', $tpl_modules_infos);
622 
623  // Récupération des informations sur la configuration des zones pour l'affichage dans le formulaire "Pour information, votre configuration actuelle des zones franco de port est :"
624  $tpl_zones = array();
625  $qid = query("SELECT *
626  FROM peel_zones
627  WHERE on_franco=1 AND " . get_filter_site_cond('zones') . "");
628  while ($result = fetch_assoc($qid)) {
629  $tpl_zones[] = array('href' => $GLOBALS['administrer_url'] . '/zones.php?mode=modif&id=' . $result['id'],
630  'nom' => $result['nom_' . $_SESSION['session_langue']]
631  );
632  $zones_franco_port[] = '<a href="' . $GLOBALS['administrer_url'] . '/zones.php?mode=modif&id=' . $result['id'] . '">' . $result['nom_' . $_SESSION['session_langue']] . '</a>';
633  }
634  $tpl->assign('zones', $tpl_zones);
635  $tpl->assign('zones_href', $GLOBALS['administrer_url'] . '/zones.php');
636 
637  $tpl->assign('action', get_current_url(false) . '?mode=' . String::str_form_value($frm["nouveau_mode"]) . (!empty($frm["id"]) ?'&id=' . intval($frm['id']):''));
638  $tpl->assign('form_token', get_form_token_input($_SERVER['PHP_SELF'] . $frm['nouveau_mode']));
639  $tpl->assign('site_suspended', vb($frm['site_suspended']));
640 
641  if(empty($_SESSION['session_admin_multisite']) || $_SESSION['session_admin_multisite'] != $GLOBALS['site_id']) {
642  $this_wwwroot = get_site_wwwroot($_SESSION['session_admin_multisite']);
643  } else {
644  $this_wwwroot = $GLOBALS['wwwroot'];
645  }
646  $tpl->assign('membre_admin_href', $this_wwwroot . '/membre.php');
647 
648  // Contenu multilingue
649  $tpl_langs = array();
650  foreach ($GLOBALS['admin_lang_codes'] as $lng) {
651  $tpl_langs[] = array('lng' => $lng,
652  'nom' => vb($frm['nom_' . $lng]),
653  'logo' => vb($frm['logo_' . $lng]),
654  'module_vacances_value' => (!empty($frm['module_vacances_client_msg_' . $lng]) ? String::html_entity_decode_if_needed(vb($frm['module_vacances_client_msg_' . $lng])) : ""),
655  );
656  }
657  $tpl->assign('langs', $tpl_langs);
658 
659  $tpl->assign('nouveau_mode', vb($frm["nouveau_mode"]));
660  $tpl->assign('wwwroot', vb($frm['wwwroot']));
661  $tpl->assign('session_langue', vb($_SESSION['session_langue']));
662 
663  $tpl->assign('country_select_options', get_country_select_options(null, vb($frm['default_country_id']), 'id'));
664 
665  // Séléction des répertoires présents dans le répertoire modeles du site. Permet de générer un select permettant à l'admin de choisir le template associé au site.
666  if ($handle = opendir($GLOBALS['dirroot'] . "/modeles")) {
667  $tpl_directory_options = array();
668  while (false !== ($file = readdir($handle))) {
669  if ($file != "." && $file != ".." && $file != ".svn") {
670  $tpl_directory_options[] = array('value' => $file,
671  'issel' => $file == vb($frm['template_directory']),
672  );
673  }
674  }
675  $tpl->assign('directory_options', $tpl_directory_options);
676  }
677 
678  $tpl->assign('template_multipage', vb($frm['template_multipage']));
679  $tpl->assign('css', vb($frm['css']));
680  $tpl->assign('on_logo', vb($frm['on_logo']));
681  $tpl->assign('drop_src', $GLOBALS['administrer_url'] . '/images/b_drop.png');
682 
683  if (!empty($frm["favicon"])) {
684  $tpl->assign('favicon', array('src' => $GLOBALS['repertoire_upload'] . '/' . $frm["favicon"],
685  'favicon' => vb($frm['favicon']),
686  'sup_href' => get_current_url(false) . '?mode=supprfavicon&id=' . vb($frm['id']) . '&favicon=' . String::str_form_value(vb($frm["favicon"]))
687  ));
688  }
689 
690  $tpl->assign('zoom', vb($frm['zoom']));
691  $tpl->assign('enable_prototype', !empty($frm['enable_prototype']));
692  $tpl->assign('enable_jquery', !empty($frm['enable_jquery']));
693  $tpl->assign('export_encoding', vb($frm['export_encoding']));
694  $tpl->assign('module_autosend', vb($frm['module_autosend']));
695  $tpl->assign('module_autosend_delay', vb($frm['module_autosend_delay']));
696  $tpl->assign('category_count_method', vb($frm['category_count_method']));
697  $tpl->assign('popup_width', vb($frm['popup_width']));
698  $tpl->assign('popup_height', vb($frm['popup_height']));
699  $tpl->assign('admin_force_ssl', vb($frm['admin_force_ssl']));
700  $tpl->assign('membre_href', str_replace('http://', 'https://', $this_wwwroot . '/membre.php'));
701 
702  $tpl->assign('display_nb_product', vb($frm['display_nb_product']));
703  $tpl->assign('small_width', vb($frm['small_width']));
704  $tpl->assign('small_height', vb($frm['small_height']));
705  $tpl->assign('medium_width', vb($frm['medium_width']));
706  $tpl->assign('medium_height', vb($frm['medium_height']));
707  $tpl->assign('module_filtre', vb($frm['module_filtre']));
708  $tpl->assign('category_order_on_catalog', vb($frm['category_order_on_catalog']));
709  $tpl->assign('type_affichage_attribut', vb($frm['type_affichage_attribut']));
710  $tpl->assign('anim_prod', vb($frm['anim_prod']));
711 
712  $tpl->assign('sessions_duration', vb($frm['sessions_duration']));
713  $tpl->assign('nb_produit_page', vb($frm['nb_produit_page']));
714 
715  $tpl->assign('is_best_seller_module_active', check_if_module_active('best_seller'));
716  $tpl->assign('promotions_href', $GLOBALS['wwwroot_in_admin'] . '/achat/promotions.php');
717  $tpl->assign('is_stock_advanced_module_active', check_if_module_active('stock_advanced'));
718  $tpl->assign('is_fonctionsvacances', file_exists($GLOBALS['fonctionsvacances']));
719 
720  $tpl->assign('site_symbole', $GLOBALS['site_parameters']['symbole']);
721 
722  $tpl->assign('default_picture_delete_url', get_current_url(false) . '?mode=supprdefault_picture&id=' . vb($frm['id']) . '&default_picture=' . vb($frm["default_picture"]));
723  $tpl->assign('default_picture_delete_icon_url', $GLOBALS['administrer_url'] . '/images/b_drop.png');
724  $tpl->assign('default_picture', vb($frm["default_picture"]));
725  $tpl->assign('default_picture_url', $GLOBALS['repertoire_upload'] . '/' . vb($frm["default_picture"]));
726 
727  $tpl->assign('is_fonctionsdevises', file_exists($GLOBALS['fonctionsdevises']));
728  $tpl->assign('devises_href', $GLOBALS['wwwroot_in_admin'] . '/modules/devises/administrer/devises.php');
729  $tpl_devices_options = array();
730  if (file_exists($GLOBALS['fonctionsdevises'])) {
731  $req = "SELECT *
732  FROM peel_devises
733  WHERE etat = '1' AND " . get_filter_site_cond('devises') . " AND site_id = " . intval(vn($frm['id']));
734  $res = query($req);
735  while ($tab_devise = fetch_assoc($res)) {
736  $tpl_devices_options[] = array('value' => intval($tab_devise['id']),
737  'issel' => vb($frm['devise_defaut']) == $tab_devise['id'],
738  'name' => $tab_devise['devise']
739  );
740  }
741  }
742  $tpl->assign('devices_options', $tpl_devices_options);
743 
744  $tpl_modules = array();
745  $i = 0;
746  $emplacement_array['above_middle'] = $GLOBALS['STR_ADMIN_SITES_ABOVE_MIDDLE'];
747  $emplacement_array['below_middle'] = $GLOBALS['STR_ADMIN_SITES_BELOW_MIDDLE'];
748  $emplacement_array['footer'] = $GLOBALS['STR_ADMIN_SITES_BOTTOM'];
749  $emplacement_array['header'] = $GLOBALS['STR_ADMIN_SITES_TOP'];
750  $emplacement_array['top_middle'] = $GLOBALS['STR_ADMIN_SITES_CENTER_TOP'];
751  $emplacement_array['center_middle'] = $GLOBALS['STR_ADMIN_SITES_CENTER_MIDDLE'];
752  $emplacement_array['center_middle_home'] = $GLOBALS['STR_ADMIN_SITES_CENTER_MIDDLE_HOME'];
753  $emplacement_array['bottom_middle'] = $GLOBALS['STR_ADMIN_SITES_CENTER_BOTTOM'];
754  if (check_if_module_active('banner') && check_if_module_active('vitrine')) {
755  $emplacement_array['top_vitrine'] = $GLOBALS['STR_ADMIN_SITES_USER_SHOPS_TOP'];
756  $emplacement_array['bottom_vitrine'] = $GLOBALS['STR_ADMIN_SITES_USER_SHOPS_BOTTOM'];
757  }
758  if (check_if_module_active('annonces')) {
759  $emplacement_array['top_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_TOP'];
760  $emplacement_array['sponso_cat'] = $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_SPONSOR'];
761  $emplacement_array['ad_detail_bottom'] = $GLOBALS['STR_ADMIN_SITES_POSITION_AD_BOTTOM'];
762  $emplacement_array['ad_detail_top'] = $GLOBALS['STR_ADMIN_SITES_POSITION_AD_TOP'];
763  $emplacement_array['middle_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_MIDDLE'];
764  $emplacement_array['bottom_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_BOTTOM'];
765  $emplacement_array['left_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_LEFT'];
766  $emplacement_array['right_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_RIGHT'];
767  }
768  if (check_if_module_active('iphone-ads')) {
769  $emplacement_array['iphone_ads_splashscreen'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_HOME'];
770  $emplacement_array['iphone_ads_bottom_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ADS_BOTTOM'];
771  $emplacement_array['iphone_ads_top_annonce'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ADS_TOP'];
772  $emplacement_array['iphone_ads_ad_detail_top'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_TOP'];
773  $emplacement_array['iphone_ads_ad_detail_bottom'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_BOTTOM'];
774  $emplacement_array['iphone_ads_favoris_bottom'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_FAVORITES_BOTTOM'];
775  $emplacement_array['iphone_ads_favoris_top'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_FAVORITES_TOP'];
776  $emplacement_array['iphone_ads_account_bottom'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_BOTTOM'];
777  $emplacement_array['iphone_ads_account_top'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_TOP'];
778  $emplacement_array['iphone_ads_create_account_top'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_CREATION_TOP'];
779  $emplacement_array['iphone_ads_create_account_bottom'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_CREATION_BOTTOM'];
780  $emplacement_array['iphone_ads_publish_top'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_CREATION_TOP'];
781  $emplacement_array['iphone_ads_publish_bottom'] = $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_CREATION_BOTTOM'];
782  }
783  asort($emplacement_array);
784  foreach ($frm_modules as $this_module_infos) {
785  if(empty($emplacement_array[vb($this_module_infos['location'])])){
786  $emplacement_array[vb($this_module_infos['location'])] = str_replace('_', ' ', ucfirst(vb($this_module_infos['location'])));
787  }
788  $tpl_modules[] = array('tr_rollover' => tr_rollover($i, true),
789  'title' => $this_module_infos['title_' . $_SESSION['session_langue']],
790  'id' => $this_module_infos['id'],
791  'display_mode' => $this_module_infos['display_mode'],
792  'location' => $this_module_infos['location'],
793  'etat' => $this_module_infos['etat'],
794  'in_home' => $this_module_infos['in_home'],
795  'position' => $this_module_infos['position'],
796  'is_above_middle_off' => in_array($this_module_infos['technical_code'], array('menu')),
797  'is_below_middle_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane')),
798  'is_footer_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'caddie', 'account', 'last_views', 'paiement_secu')),
799  'is_header_off' => in_array($this_module_infos['technical_code'], array('ariane', 'advertising', 'advertising1', 'advertising2', 'advertising3', 'advertising4', 'advertising5', 'catalogue', 'last_views', 'paiement_secu', 'news', 'articles_rollover')),
800  'is_top_middle_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane')),
801  'is_center_middle_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'catalogue', 'caddie', 'tagcloud', 'account', 'last_views', 'paiement_secu', 'search', 'best_seller', 'news', 'advertising', 'advertising1', 'advertising2', 'advertising3', 'advertising4', 'advertising5', 'brand', 'guide', 'articles_rollover')),
802  'is_center_middle_home_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'catalogue', 'caddie', 'tagcloud', 'account', 'last_views', 'paiement_secu', 'search', 'best_seller', 'news', 'advertising', 'advertising1', 'advertising2', 'advertising3', 'advertising4', 'advertising5', 'brand', 'guide', 'articles_rollover')),
803  'is_bottom_middle_off' => in_array($this_module_infos['technical_code'], array('menu', 'guide')),
804  'is_top_vitrine_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'guide')),
805  'is_bottom_vitrine_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'guide')),
806  'is_annonce_place_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'guide')),
807  'is_iphone_place_off' => in_array($this_module_infos['technical_code'], array('menu', 'ariane', 'guide')),
808  );
809  $i++;
810  }
811 
812  $tpl->assign('emplacement_array', $emplacement_array);
813  $tpl->assign('modules', $tpl_modules);
814 
815  $tpl->assign('is_fonctionstagcloud', file_exists($GLOBALS['fonctionstagcloud']));
816  $tpl->assign('is_flash_sell_module_active', file_exists($GLOBALS['dirroot'] . "/modules/flash/flash.php"));
817  $tpl->assign('is_fonctionsbanner', file_exists($GLOBALS['fonctionsbanner']));
818  $tpl->assign('is_fonctionsmenus', file_exists($GLOBALS['fonctionsmenus']));
819  $tpl->assign('is_fonctionsrss', file_exists($GLOBALS['fonctionsrss']));
820  $tpl->assign('is_fonctionsavis', file_exists($GLOBALS['fonctionsavis']));
821  $tpl->assign('is_fonctionsprecedentsuivant', file_exists($GLOBALS['fonctionsprecedentsuivant']));
822  $tpl->assign('is_fonctionsgooglefriendconnect', file_exists($GLOBALS['fonctionsgooglefriendconnect']));
823  $tpl->assign('is_fonctionssignintwitter', file_exists($GLOBALS['fonctionssignintwitter']));
824  $tpl->assign('is_fonctionscartpreservation', file_exists($GLOBALS['fonctionscart_preservation']));
825  $tpl->assign('is_fonctionsreseller', file_exists($GLOBALS['fonctionsreseller']));
826  $tpl->assign('is_fonctionsaffiliate', file_exists($GLOBALS['fonctionsaffiliate']));
827  $tpl->assign('is_fonctionslot', file_exists($GLOBALS['fonctionslot']));
828  $tpl->assign('is_fonctionsparrain', file_exists($GLOBALS['fonctionsparrain']));
829  $tpl->assign('is_fonctionsgift_check', file_exists($GLOBALS['fonctionsgift_check']));
830  $tpl->assign('is_fonctionsfaq', file_exists($GLOBALS['fonctionsfaq']));
831  $tpl->assign('is_rewritefile', file_exists($GLOBALS['rewritefile']));
832  $tpl->assign('is_fonctionsmicro', file_exists($GLOBALS['fonctionsmicro']));
833  $tpl->assign('is_fonctionsbirthday', file_exists($GLOBALS['fonctionsbirthday']));
834  $tpl->assign('is_fonctionscatpromotions', file_exists($GLOBALS['fonctionscatpromotions']));
835  $tpl->assign('is_fonctionsmarquepromotions', file_exists($GLOBALS['fonctionsmarquepromotions']));
836  $tpl->assign('is_fonctionscomparateur', file_exists($GLOBALS['fonctionscomparateur']));
837  $tpl->assign('is_fonctionsstock_advanced', file_exists($GLOBALS['fonctionsstock_advanced']));
838  $tpl->assign('is_fonctionsforum', file_exists($GLOBALS['fonctionsforum']));
839  $tpl->assign('is_fonctionsgiftlist', file_exists($GLOBALS['fonctionsgiftlist']));
840  $tpl->assign('is_fonctionssocolissimo', file_exists($GLOBALS['fonctionssocolissimo']));
841  $tpl->assign('is_fonctionsexpeditor', file_exists($GLOBALS['fonctionsexpeditor']));
842  $tpl->assign('is_fonctionsicirelais', file_exists($GLOBALS['fonctionsicirelais']));
843  $tpl->assign('is_fonctionstnt', file_exists($GLOBALS['fonctionstnt']));
844  $tpl->assign('is_fonctionsatos', file_exists($GLOBALS['fonctionsatos']));
845  $tpl->assign('is_fonctionsspplus', file_exists($GLOBALS['fonctionsspplus']));
846  $tpl->assign('is_fonctionspaybox', file_exists($GLOBALS['fonctionspaybox']));
847  $tpl->assign('is_fonctionssystempay', file_exists($GLOBALS['fonctionssystempay']));
848  $tpl->assign('is_fonctionspartenaires', file_exists($GLOBALS['fonctionspartenaires']));
849  $tpl->assign('is_fonctionsfacebook', file_exists($GLOBALS['fonctionsfacebook']));
850  $tpl->assign('is_fonctionfacebookconnect', file_exists($GLOBALS['fonctionfacebookconnect']));
851 
852  $tpl->assign('nb_on_top', vb($frm['nb_on_top']));
853  $tpl->assign('nb_last_views', vb($frm['nb_last_views']));
854  $tpl->assign('global_remise_percent', vb($frm['global_remise_percent']));
855  $tpl->assign('pays_exoneration_tva', vb($frm['pays_exoneration_tva']));
856  $tpl->assign('timemax', vb($frm['timemax']));
857  $tpl->assign('seuil', vb($frm['seuil']));
858  $tpl->assign('quotation_delay', vb($frm['quotation_delay']));
859  $tpl->assign('email_webmaster', vb($frm['email_webmaster']));
860  $tpl->assign('nom_expediteur', vb($frm['nom_expediteur']));
861  $tpl->assign('email_commande', vb($frm['email_commande']));
862  $tpl->assign('email_client', vb($frm['email_client']));
863  $tpl->assign('email_paypal', vb($frm['email_paypal']));
864  $tpl->assign('email_moneybookers', vb($frm['email_moneybookers']));
865  $tpl->assign('secret_word', vb($frm['secret_word']));
866  $tpl->assign('availability_of_carrier', vb($frm['availability_of_carrier']));
867  $tpl->assign('tag_analytics', vb($frm['tag_analytics']));
868  $tpl->assign('googlefriendconnect', vb($frm['googlefriendconnect']));
869  $tpl->assign('googlefriendconnect_site_id', vb($frm['googlefriendconnect_site_id']));
870  $tpl->assign('sign_in_twitter', vb($frm['sign_in_twitter']));
871  $tpl->assign('twitter_consumer_key', vb($frm['twitter_consumer_key']));
872  $tpl->assign('twitter_consumer_secret', vb($frm['twitter_consumer_secret']));
873  $tpl->assign('twitter_oauth_callback', vb($frm['twitter_oauth_callback']));
874  $tpl->assign('commission_affilie', vb($frm['commission_affilie']));
875  $tpl->assign('logo_affiliation', vb($frm['logo_affiliation']));
876  $tpl->assign('avoir', vb($frm['avoir']));
877  $tpl->assign('module_url_rewriting', vn($frm['module_url_rewriting']));
878  $tpl->assign('sips', vb($frm['sips']));
879  $tpl->assign('spplus', vb($frm['spplus']));
880  $tpl->assign('systempay_payment_count', vb($frm['systempay_payment_count']));
881  $tpl->assign('systempay_payment_period', vb($frm['systempay_payment_period']));
882  $tpl->assign('systempay_cle_test', vb($frm['systempay_cle_test']));
883  $tpl->assign('systempay_cle_prod', vb($frm['systempay_cle_prod']));
884  $tpl->assign('systempay_test_mode', vb($frm['systempay_test_mode']));
885  $tpl->assign('systempay_code_societe', vb($frm['systempay_code_societe']));
886  $tpl->assign('paybox_cgi', vb($frm['paybox_cgi']));
887  $tpl->assign('paybox_site', vb($frm['paybox_site']));
888  $tpl->assign('paybox_rang', vb($frm['paybox_rang']));
889  $tpl->assign('paybox_identifiant', vb($frm['paybox_identifiant']));
890  $tpl->assign('fb_admins', vb($frm['fb_admins']));
891  $tpl->assign('facebook_page_link', vb($frm['facebook_page_link']));
892  $tpl->assign('facebook_connect', vb($frm['facebook_connect']));
893  $tpl->assign('fb_appid', vb($frm['fb_appid']));
894  $tpl->assign('fb_secret', vb($frm['fb_secret']));
895  $tpl->assign('fb_baseurl', vb($frm['fb_baseurl']));
896  $tpl->assign('display_errors_for_ips', vb($frm['display_errors_for_ips']));
897  $tpl->assign('titre_bouton', vb($frm['titre_bouton']));
898 
899  $tpl->assign('allow_add_product_with_no_stock_in_cart', vb($frm['allow_add_product_with_no_stock_in_cart']));
900  $tpl->assign('format_numero_facture', vb($frm['format_numero_facture']));
901  $tpl->assign('small_order_overcost_limit', vb($frm['small_order_overcost_limit']));
902  $tpl->assign('small_order_overcost_amount', vb($frm['small_order_overcost_amount']));
903  $tpl->assign('small_order_overcost_tva_percent', vb($frm['small_order_overcost_tva_percent']));
904  $tpl->assign('minimal_amount_to_order', vb($frm['minimal_amount_to_order']));
905  $tpl->assign('minimal_amount_to_order_reve', vb($frm['minimal_amount_to_order_reve']));
906  $tpl->assign('seuil_total', vb($frm['seuil_total']));
907  $tpl->assign('seuil_total_reve', vb($frm['seuil_total_reve']));
908  $tpl->assign('nb_product', vb($frm['nb_product']));
909  $tpl->assign('socolissimo_foid', vb($frm['socolissimo_foid']));
910  $tpl->assign('socolissimo_sha1_key', vb($frm['socolissimo_sha1_key']));
911  $tpl->assign('socolissimo_urlko', vb($frm['socolissimo_urlko']));
912  $tpl->assign('socolissimo_preparationtime', vb($frm['socolissimo_preparationtime']));
913  $tpl->assign('socolissimo_forwardingcharges', vb($frm['socolissimo_forwardingcharges']));
914  $tpl->assign('socolissimo_firstorder', vb($frm['socolissimo_firstorder']));
915  $tpl->assign('socolissimo_pointrelais', vb($frm['socolissimo_pointrelais']));
916  $tpl->assign('socolissimo_dyForwardingChargesCMT', vb($frm['socolissimo_dyForwardingChargesCMT']));
917  $tpl->assign('partner_count_method', vb($frm['partner_count_method']));
918  $tpl->assign('tnt_username', vn($frm['tnt_username']));
919  $tpl->assign('tnt_password', vn($frm['tnt_password']));
920  $tpl->assign('tnt_account_number', vn($frm['tnt_account_number']));
921  $tpl->assign('expedition_delay', vn($frm['expedition_delay']));
922  $tpl->assign('act_on_top', vn($frm['act_on_top']));
923  $tpl->assign('auto_promo', vn($frm['auto_promo']));
924  $tpl->assign('mode_transport', vn($frm['mode_transport']));
925  $tpl->assign('module_ecotaxe', vn($frm['module_ecotaxe']));
926  $tpl->assign('display_prices_with_taxes', vn($frm['display_prices_with_taxes']));
927  $tpl->assign('display_prices_with_taxes_in_admin', vn($frm['display_prices_with_taxes_in_admin']));
928  $tpl->assign('module_devise', vn($frm['module_devise']));
929  $tpl->assign('html_editor', vb($frm['html_editor']));
930  $tpl->assign('send_email_active', vn($frm['send_email_active']));
931  $tpl->assign('module_nuage', vn($frm['module_nuage']));
932  $tpl->assign('module_flash', vn($frm['module_flash']));
933  $tpl->assign('module_pub', vn($frm['module_pub']));
934  $tpl->assign('module_rollover', vn($frm['module_rollover']));
935  $tpl->assign('type_rollover', vn($frm['type_rollover']));
936  $tpl->assign('module_rss', vn($frm['module_rss']));
937  $tpl->assign('module_avis', vn($frm['module_avis']));
938  $tpl->assign('module_captcha', vn($frm['module_captcha']));
939  $tpl->assign('module_precedent_suivant', vn($frm['module_precedent_suivant']));
940  $tpl->assign('in_category', vn($frm['in_category']));
941  $tpl->assign('module_cart_preservation', vn($frm['module_cart_preservation']));
942  $tpl->assign('module_retail', vn($frm['module_retail']));
943  $tpl->assign('module_affilie', vn($frm['module_affilie']));
944  $tpl->assign('module_lot', vn($frm['module_lot']));
945  $tpl->assign('module_parrain', vn($frm['module_parrain']));
946  $tpl->assign('module_cadeau', vn($frm['module_cadeau']));
947  $tpl->assign('module_faq', vn($frm['module_faq']));
948  $tpl->assign('module_entreprise', vn($frm['module_entreprise']));
949  $tpl->assign('module_forum', vn($frm['module_forum']));
950  $tpl->assign('module_giftlist', vn($frm['module_giftlist']));
951  $tpl->assign('module_socolissimo', vn($frm['module_socolissimo']));
952  $tpl->assign('module_icirelais', vn($frm['module_icirelais']));
953  $tpl->assign('module_tnt', vn($frm['module_tnt']));
954  $tpl->assign('module_vacances_type', vn($frm['module_vacances_type']));
955 
956  $tpl->assign('keep_old_orders_intact', vn($frm['keep_old_orders_intact']));
957  $tpl->assign('fonctionsconditionnement', file_exists($GLOBALS['fonctionsconditionnement']));
958  $tpl->assign('module_conditionnement', vn($frm['module_conditionnement']));
959  $tpl->assign('payment_status_decrement_stock', vn($frm['payment_status_decrement_stock']));
960  $tpl->assign('keep_old_orders_intact_date', (empty($frm['keep_old_orders_intact_date']) && intval(vn($frm['keep_old_orders_intact']))>1?get_formatted_date(vb($frm['keep_old_orders_intact'])) : vb($frm['keep_old_orders_intact_date'])));
961  $tpl->assign('STR_MANDATORY', $GLOBALS['STR_MANDATORY']);
962  $tpl->assign('STR_ADMIN_VARIOUS_INFORMATION_HEADER', $GLOBALS['STR_ADMIN_VARIOUS_INFORMATION_HEADER']);
963  $tpl->assign('STR_ADMIN_MODULES', 'Modules');
964  $tpl->assign('STR_ADMIN_SITES_MODULE_INSTALL', $GLOBALS['STR_ADMIN_SITES_MODULE_INSTALL']);
965  $tpl->assign('STR_ADMIN_SITES_PREMIUM_MODULE', $GLOBALS['STR_ADMIN_SITES_PREMIUM_MODULE']);
966  $tpl->assign('STR_ADMIN_SITES_CAPTCHA_DISPLAY_MODE', $GLOBALS['STR_ADMIN_SITES_CAPTCHA_DISPLAY_MODE']);
967  $tpl->assign('STR_ADMIN_POSITION', $GLOBALS['STR_ADMIN_POSITION']);
968  $tpl->assign('STR_ADMIN_WWWROOT', $GLOBALS['STR_ADMIN_WWWROOT']);
969  $tpl->assign('STR_TTC', $GLOBALS['STR_TTC']);
970  $tpl->assign('STR_HT', $GLOBALS['STR_HT']);
971  $tpl->assign('STR_ADMIN_HTML_PLACE', $GLOBALS['STR_ADMIN_HTML_PLACE']);
972  $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);
973  $tpl->assign('STR_UPDATE_WEBSITE', $GLOBALS['STR_UPDATE_WEBSITE']);
974  $tpl->assign('STR_ADMIN_SITES_TITLE', $GLOBALS['STR_ADMIN_SITES_TITLE']);
975  $tpl->assign('STR_ADMIN_SITES_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_EXPLAIN']);
976  $tpl->assign('STR_ADMIN_SITES_GENERAL_PARAMETERS', $GLOBALS['STR_ADMIN_SITES_GENERAL_PARAMETERS']);
977  $tpl->assign('STR_ADMIN_SITES_SITE_ACTIVATION', $GLOBALS['STR_ADMIN_SITES_SITE_ACTIVATION']);
978  $tpl->assign('STR_ADMIN_SITES_SITE_ACTIVATED', $GLOBALS['STR_ADMIN_SITES_SITE_ACTIVATED']);
979  $tpl->assign('STR_ADMIN_SITES_SITE_SUSPENDED', $GLOBALS['STR_ADMIN_SITES_SITE_SUSPENDED']);
980  $tpl->assign('STR_ADMIN_SITES_SITE_ACTIVATED_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SITE_ACTIVATED_EXPLAIN']);
981  $tpl->assign('STR_ADMIN_SITES_SITE_ACTIVATED_EXPLAIN2', $GLOBALS['STR_ADMIN_SITES_SITE_ACTIVATED_EXPLAIN2']);
982  $tpl->assign('STR_ADMIN_SITES_SITE_ACTIVATED_EXPLAIN3', $GLOBALS['STR_ADMIN_SITES_SITE_ACTIVATED_EXPLAIN3']);
983  $tpl->assign('STR_ADMIN_SITES_SITE_NAME', $GLOBALS['STR_ADMIN_SITES_SITE_NAME']);
984  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
985  $tpl->assign('STR_ADMIN_SITES_SITE_COUNTRY_PRESELECTED', $GLOBALS['STR_ADMIN_SITES_SITE_COUNTRY_PRESELECTED']);
986  }
987  $tpl->assign('STR_ADMIN_SITES_TEMPLATE_USED', $GLOBALS['STR_ADMIN_SITES_TEMPLATE_USED']);
988  $tpl->assign('STR_ADMIN_SITES_PAGE_LINKS_DISPLAY_MODE', $GLOBALS['STR_ADMIN_SITES_PAGE_LINKS_DISPLAY_MODE']);
989  $tpl->assign('STR_ADMIN_SITES_DISPLAY', $GLOBALS['STR_ADMIN_SITES_DISPLAY']);
990  $tpl->assign('STR_ADMIN_SITES_CSS_FILES', $GLOBALS['STR_ADMIN_SITES_CSS_FILES']);
991  $tpl->assign('STR_ADMIN_SITES_CSS_FILES_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_CSS_FILES_EXPLAIN']);
992  $tpl->assign('STR_ADMIN_SITES_LOGO_URL', $GLOBALS['STR_ADMIN_SITES_LOGO_URL']);
993  $tpl->assign('STR_ADMIN_SITES_LOGO_HEADER_DISPLAY', $GLOBALS['STR_ADMIN_SITES_LOGO_HEADER_DISPLAY']);
994  $tpl->assign('STR_ADMIN_SITES_FAVICON', $GLOBALS['STR_ADMIN_SITES_FAVICON']);
995  $tpl->assign('STR_DELETE_THIS_FILE', $GLOBALS['STR_DELETE_THIS_FILE']);
996  $tpl->assign('STR_ADMIN_SITES_ZOOM_SELECTION', $GLOBALS['STR_ADMIN_SITES_ZOOM_SELECTION']);
997  $tpl->assign('STR_ADMIN_SITES_JQZOOM', $GLOBALS['STR_ADMIN_SITES_JQZOOM']);
998  $tpl->assign('STR_ADMIN_SITES_CLOUD_ZOOM', $GLOBALS['STR_ADMIN_SITES_CLOUD_ZOOM']);
999  $tpl->assign('STR_ADMIN_SITES_LIGHTBOX', $GLOBALS['STR_ADMIN_SITES_LIGHTBOX']);
1000  $tpl->assign('STR_NONE', $GLOBALS['STR_NONE']);
1001  $tpl->assign('STR_ADMIN_SITES_JAVASCRIPT_LIBRARIES_ACTIVATION', $GLOBALS['STR_ADMIN_SITES_JAVASCRIPT_LIBRARIES_ACTIVATION']);
1002  $tpl->assign('STR_ADMIN_SITES_JAVASCRIPT_AJAX_ACTIVATE', $GLOBALS['STR_ADMIN_SITES_JAVASCRIPT_AJAX_ACTIVATE']);
1003  $tpl->assign('STR_ADMIN_SITES_JAVASCRIPT_JQUERY_ACTIVATE', $GLOBALS['STR_ADMIN_SITES_JAVASCRIPT_JQUERY_ACTIVATE']);
1004  $tpl->assign('STR_ADMIN_SITES_JAVASCRIPT_LIBRARIES_ACTIVATION_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_JAVASCRIPT_LIBRARIES_ACTIVATION_EXPLAIN']);
1005  $tpl->assign('STR_ADMIN_SITES_EXPORT_DEFAULT_ENCODING', $GLOBALS['STR_ADMIN_SITES_EXPORT_DEFAULT_ENCODING']);
1006  $tpl->assign('STR_ADMIN_SITES_EXPORT_DEFAULT_ENCODING_UTF8', $GLOBALS['STR_ADMIN_SITES_EXPORT_DEFAULT_ENCODING_UTF8']);
1007  $tpl->assign('STR_ADMIN_SITES_EXPORT_DEFAULT_ENCODING_ISO', $GLOBALS['STR_ADMIN_SITES_EXPORT_DEFAULT_ENCODING_ISO']);
1008  $tpl->assign('STR_ADMIN_SITES_PAYMENT_FORM_AUTO_VALIDATION', $GLOBALS['STR_ADMIN_SITES_PAYMENT_FORM_AUTO_VALIDATION']);
1009  $tpl->assign('STR_YES', $GLOBALS['STR_YES']);
1010  $tpl->assign('STR_NO', $GLOBALS['STR_NO']);
1011  $tpl->assign('STR_ADMIN_SITES_PAYMENT_FORM_AUTO_VALIDATION_WAIT_SECONDS', $GLOBALS['STR_ADMIN_SITES_PAYMENT_FORM_AUTO_VALIDATION_WAIT_SECONDS']);
1012  $tpl->assign('STR_ADMIN_SITES_PAYMENT_FORM_AUTO_VALIDATION_WAIT_SECONDS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_PAYMENT_FORM_AUTO_VALIDATION_WAIT_SECONDS_EXPLAIN']);
1013  $tpl->assign('STR_ADMIN_SITES_CATEGORY_COUNT_METHOD', $GLOBALS['STR_ADMIN_SITES_CATEGORY_COUNT_METHOD']);
1014  $tpl->assign('STR_ADMIN_SITES_CATEGORY_COUNT_INDIVIDUAL', $GLOBALS['STR_ADMIN_SITES_CATEGORY_COUNT_INDIVIDUAL']);
1015  $tpl->assign('STR_ADMIN_SITES_CATEGORY_COUNT_GLOBAL', $GLOBALS['STR_ADMIN_SITES_CATEGORY_COUNT_GLOBAL']);
1016  $tpl->assign('STR_ADMIN_SITES_CART_POPUP_SIZE', $GLOBALS['STR_ADMIN_SITES_CART_POPUP_SIZE']);
1017  $tpl->assign('STR_ADMIN_SITES_CART_POPUP_SIZE_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_CART_POPUP_SIZE_EXPLAIN']);
1018  $tpl->assign('STR_ADMIN_SITES_SECURITY', $GLOBALS['STR_ADMIN_SITES_SECURITY']);
1019  $tpl->assign('STR_ADMIN_SITES_ADMIN_FORCE_SSL', $GLOBALS['STR_ADMIN_SITES_ADMIN_FORCE_SSL']);
1020  $tpl->assign('STR_ADMIN_SITES_ADMIN_FORCE_SSL_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_ADMIN_FORCE_SSL_EXPLAIN']);
1021  $tpl->assign('STR_ADMIN_SITES_HTTPS_TEST', $GLOBALS['STR_ADMIN_SITES_HTTPS_TEST']);
1022  $tpl->assign('STR_ADMIN_SITES_SESSIONS_DURATION', $GLOBALS['STR_ADMIN_SITES_SESSIONS_DURATION']);
1023  $tpl->assign('STR_MINUTES', $GLOBALS['strShortMinutes']);
1024  $tpl->assign('STR_ADMIN_ACTIVATE', $GLOBALS['STR_ADMIN_ACTIVATE']);
1025  $tpl->assign('STR_ADMIN_DEACTIVATE', $GLOBALS['STR_ADMIN_DEACTIVATE']);
1026  $tpl->assign('STR_ADMIN_SITES_SESSIONS_DURATION_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SESSIONS_DURATION_EXPLAIN']);
1027  $tpl->assign('STR_ADMIN_SITES_DISPLAY_ERRORS_FOR_IP', $GLOBALS['STR_ADMIN_SITES_DISPLAY_ERRORS_FOR_IP']);
1028  $tpl->assign('STR_ADMIN_SITES_PRODUCTS_DISPLAY', $GLOBALS['STR_ADMIN_SITES_PRODUCTS_DISPLAY']);
1029  $tpl->assign('STR_ADMIN_SITES_PRODUCTS_COUNT_IN_MENU', $GLOBALS['STR_ADMIN_SITES_PRODUCTS_COUNT_IN_MENU']);
1030  $tpl->assign('STR_ADMIN_SITES_THUMBS_SIZE', $GLOBALS['STR_ADMIN_SITES_THUMBS_SIZE']);
1031  $tpl->assign('STR_ADMIN_SITES_IMAGES_SIZE', $GLOBALS['STR_ADMIN_SITES_IMAGES_SIZE']);
1032  $tpl->assign('STR_ADMIN_SITES_PRODUCTS_FILTER_DISPLAY', $GLOBALS['STR_ADMIN_SITES_PRODUCTS_FILTER_DISPLAY']);
1033  $tpl->assign('STR_ADMIN_SITES_ALLOW_ADD_PRODUCT_IN_LIST_PAGES', $GLOBALS['STR_ADMIN_SITES_ALLOW_ADD_PRODUCT_IN_LIST_PAGES']);
1034  $tpl->assign('STR_ADMIN_SITES_PRODUCT_ATTRIBUTES_DISPLAY', $GLOBALS['STR_ADMIN_SITES_PRODUCT_ATTRIBUTES_DISPLAY']);
1035  $tpl->assign('STR_MODULE_ATTRIBUTS_ADMIN_SELECT_MENU', $GLOBALS['STR_MODULE_ATTRIBUTS_ADMIN_SELECT_MENU']);
1036  $tpl->assign('STR_MODULE_ATTRIBUTS_ADMIN_RADIO_BUTTONS', $GLOBALS['STR_MODULE_ATTRIBUTS_ADMIN_RADIO_BUTTONS']);
1037  $tpl->assign('STR_MODULE_ATTRIBUTS_ADMIN_CHECKBOX', $GLOBALS['STR_MODULE_ATTRIBUTS_ADMIN_CHECKBOX']);
1038  $tpl->assign('STR_ADMIN_SITES_PRODUCT_ATTRIBUTES_DISPLAY_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_PRODUCT_ATTRIBUTES_DISPLAY_EXPLAIN']);
1039  $tpl->assign('STR_ADMIN_SITES_PRODUCTS_PER_PAGE', $GLOBALS['STR_ADMIN_SITES_PRODUCTS_PER_PAGE']);
1040  $tpl->assign('STR_ADMIN_SITES_PRODUCTS_PER_PAGE_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_PRODUCTS_PER_PAGE_EXPLAIN']);
1041  $tpl->assign('STR_ADMIN_SITES_ADD_TO_CART_ANIMATION', $GLOBALS['STR_ADMIN_SITES_ADD_TO_CART_ANIMATION']);
1042  $tpl->assign('STR_ADMIN_SITES_DEFAULT_PRODUCT_PAGE', $GLOBALS['STR_ADMIN_SITES_DEFAULT_PRODUCT_PAGE']);
1043  $tpl->assign('STR_DELETE_THIS_FILE', $GLOBALS['STR_DELETE_THIS_FILE']);
1044  $tpl->assign('STR_ADMIN_SITES_TOP_SALES_CONFIGURATION', $GLOBALS['STR_ADMIN_SITES_TOP_SALES_CONFIGURATION']);
1045  $tpl->assign('STR_ADMIN_SITES_AUTO_TOP_SALES', $GLOBALS['STR_ADMIN_SITES_AUTO_TOP_SALES']);
1046  $tpl->assign('STR_ADMIN_SITES_CONFIGURED_TOP_SALES', $GLOBALS['STR_ADMIN_SITES_CONFIGURED_TOP_SALES']);
1047  $tpl->assign('STR_ADMIN_SITES_TOP_SALES_MAX_PRODUCTS', $GLOBALS['STR_ADMIN_SITES_TOP_SALES_MAX_PRODUCTS']);
1048  $tpl->assign('STR_ADMIN_SITES_LAST_VISITS_MAX_PRODUCTS', $GLOBALS['STR_ADMIN_SITES_LAST_VISITS_MAX_PRODUCTS']);
1049  $tpl->assign('STR_ADMIN_SITES_AUTO_PROMOTIONS', $GLOBALS['STR_ADMIN_SITES_AUTO_PROMOTIONS']);
1050  $tpl->assign('STR_ADMIN_SITES_CONFIGURED_PROMOTIONS', $GLOBALS['STR_ADMIN_SITES_CONFIGURED_PROMOTIONS']);
1051  $tpl->assign('STR_ADMIN_SITES_GLOBAL_DISCOUNT_PERCENTAGE', $GLOBALS['STR_ADMIN_SITES_GLOBAL_DISCOUNT_PERCENTAGE']);
1052  $tpl->assign('STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS', $GLOBALS['STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS']);
1053  $tpl->assign('STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS_LOCAL_COUNTRY', $GLOBALS['STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS_LOCAL_COUNTRY']);
1054  $tpl->assign('STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS_LOCAL_COUNTRY_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS_LOCAL_COUNTRY_EXPLAIN']);
1055  $tpl->assign('STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS_LOCAL_COUNTRY_SHORT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_NO_VAT_FOR_INTRACOM_FOREIGNERS_LOCAL_COUNTRY_SHORT_EXPLAIN']);
1056  $tpl->assign('STR_ADMIN_SITES_BILLING_HEADER', $GLOBALS['STR_ADMIN_SITES_BILLING_HEADER']);
1057  $tpl->assign('STR_ADMIN_SITES_BILLING_NUMBER_FORMAT', $GLOBALS['STR_ADMIN_SITES_BILLING_NUMBER_FORMAT']);
1058  $tpl->assign('STR_ADMIN_SITES_BILLING_NUMBER_FORMAT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_BILLING_NUMBER_FORMAT_EXPLAIN']);
1059  $tpl->assign('STR_ADMIN_SITES_REQUEST_FOR_PROPOSAL_HEADER', $GLOBALS['STR_ADMIN_SITES_REQUEST_FOR_PROPOSAL_HEADER']);
1060  $tpl->assign('STR_ADMIN_SITES_REQUEST_FOR_PROPOSAL_VALIDITY_DAYS', $GLOBALS['STR_ADMIN_SITES_REQUEST_FOR_PROPOSAL_VALIDITY_DAYS']);
1061  $tpl->assign('STR_ADMIN_SITES_REQUEST_FOR_PROPOSAL_VALIDITY_DAYS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_REQUEST_FOR_PROPOSAL_VALIDITY_DAYS_EXPLAIN']);
1062  $tpl->assign('STR_ADMIN_SITES_SMALL_ORDERS', $GLOBALS['STR_ADMIN_SITES_SMALL_ORDERS']);
1063  $tpl->assign('STR_ADMIN_SITES_SMALL_ORDERS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SMALL_ORDERS_EXPLAIN']);
1064  $tpl->assign('STR_ADMIN_SITES_SMALL_ORDERS_LIMIT', $GLOBALS['STR_ADMIN_SITES_SMALL_ORDERS_LIMIT']);
1065  $tpl->assign('STR_ADMIN_SITES_SMALL_ORDERS_AMOUNT', $GLOBALS['STR_ADMIN_SITES_SMALL_ORDERS_AMOUNT']);
1066  $tpl->assign('STR_ADMIN_SITES_SMALL_ORDERS_VAT', $GLOBALS['STR_ADMIN_SITES_SMALL_ORDERS_VAT']);
1067  $tpl->assign('STR_ADMIN_SITES_MINIMUM_ORDER_AMOUNT_ALLOWED', $GLOBALS['STR_ADMIN_SITES_MINIMUM_ORDER_AMOUNT_ALLOWED']);
1068  $tpl->assign('STR_ADMIN_SITES_MINIMUM_ORDER_REVE_AMOUNT_ALLOWED', $GLOBALS['STR_ADMIN_SITES_MINIMUM_ORDER_REVE_AMOUNT_ALLOWED']);
1069  $tpl->assign('STR_ADMIN_SITES_MINIMUM_ORDER_AMOUNT_ALLOWED_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_MINIMUM_ORDER_AMOUNT_ALLOWED_EXPLAIN']);
1070  $tpl->assign('STR_ADMIN_SITES_ORDERS_UPDATING_LIMITATION', $GLOBALS['STR_ADMIN_SITES_ORDERS_UPDATING_LIMITATION']);
1071  $tpl->assign('STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBID', $GLOBALS['STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBID']);
1072  $tpl->assign('STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBIDDEN_IF_OLDER_THAN_LAST_YEAR', $GLOBALS['STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBIDDEN_IF_OLDER_THAN_LAST_YEAR']);
1073  $tpl->assign('STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBIDDEN_IF_OLDER_THAN_DATE', $GLOBALS['STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBIDDEN_IF_OLDER_THAN_DATE']);
1074  $tpl->assign('STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBIDDEN_IF_OLDER_THAN_DATE_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_ORDERS_UPDATING_OLD_FORBIDDEN_IF_OLDER_THAN_DATE_EXPLAIN']);
1075  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_HEADER', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_HEADER']);
1076  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_GENERAL_FRANCO_LIMIT', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_GENERAL_FRANCO_LIMIT']);
1077  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_GENERAL_FRANCO_LIMIT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_GENERAL_FRANCO_LIMIT_EXPLAIN']);
1078  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_RESELLER_FRANCO_LIMIT', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_RESELLER_FRANCO_LIMIT']);
1079  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_GENERAL_FRANCO_LIMIT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_GENERAL_FRANCO_LIMIT_EXPLAIN']);
1080  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_METHOD', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_METHOD']);
1081  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_NONE', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_NONE']);
1082  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_GENERAL', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_GENERAL']);
1083  $tpl->assign('STR_ADMIN_SITES_DELIVERY_COST_METHOD_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_DELIVERY_COST_METHOD_EXPLAIN']);
1084  $tpl->assign('STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT', $GLOBALS['STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT']);
1085  $tpl->assign('STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT_PRODUCTS_IN_CART', $GLOBALS['STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT_PRODUCTS_IN_CART']);
1086  $tpl->assign('STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT_PRODUCTS_IN_CART_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT_PRODUCTS_IN_CART_EXPLAIN']);
1087  $tpl->assign('STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_DELIVERY_FRANCO_LIMIT_EXPLAIN']);
1088  $tpl->assign('STR_ADMIN_SITES_DELIVERY_FRANCO_NO_ZONE', $GLOBALS['STR_ADMIN_SITES_DELIVERY_FRANCO_NO_ZONE']);
1089  $tpl->assign('STR_ADMIN_SITES_VAT_DISPLAY_MODE', $GLOBALS['STR_ADMIN_SITES_VAT_DISPLAY_MODE']);
1090  $tpl->assign('STR_ADMIN_SITES_VAT_DISPLAY_MODE_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_VAT_DISPLAY_MODE_EXPLAIN']);
1091  $tpl->assign('STR_ADMIN_SITES_VAT_DISPLAY_MODE_IN_ADMIN', $GLOBALS['STR_ADMIN_SITES_VAT_DISPLAY_MODE_IN_ADMIN']);
1092  $tpl->assign('STR_ADMIN_SITES_DISPLAY_ERRORS_FOR_IP_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_DISPLAY_ERRORS_FOR_IP_EXPLAIN']);
1093  $tpl->assign('STR_ADMIN_SITES_MODULE', $GLOBALS['STR_ADMIN_SITES_MODULE']);
1094  $tpl->assign('STR_ADMIN_SITES_VAT_DISPLAY_MODE_HEADER', $GLOBALS['STR_ADMIN_SITES_VAT_DISPLAY_MODE_HEADER']);
1095  $tpl->assign('STR_ADMIN_SITES_CURRENCY_SELECT_DISPLAY', $GLOBALS['STR_ADMIN_SITES_CURRENCY_SELECT_DISPLAY']);
1096  $tpl->assign('STR_ADMIN_SITES_CURRENCY_SELECT_DISPLAY_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_CURRENCY_SELECT_DISPLAY_EXPLAIN']);
1097  $tpl->assign('STR_ADMIN_SITES_DEFAULT_CURRENCY', $GLOBALS['STR_ADMIN_SITES_DEFAULT_CURRENCY']);
1098  $tpl->assign('STR_ADMIN_SITES_DEFAULT_CURRENCY_WARNING', $GLOBALS['STR_ADMIN_SITES_DEFAULT_CURRENCY_WARNING']);
1099  $tpl->assign('STR_ADMIN_SITES_CURRENCIES_LINK', $GLOBALS['STR_ADMIN_SITES_CURRENCIES_LINK']);
1100  $tpl->assign('STR_ADMIN_SITES_TEXT_EDITOR', $GLOBALS['STR_ADMIN_SITES_TEXT_EDITOR']);
1101  $tpl->assign('STR_ADMIN_SITES_DEFAULT', $GLOBALS['STR_ADMIN_SITES_DEFAULT']);
1102  $tpl->assign('STR_ADMIN_SITES_TEXT_EDITOR_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_TEXT_EDITOR_EXPLAIN']);
1103  $tpl->assign('STR_ADMIN_SITES_TEXT_EDITOR_FCKEDITOR', $GLOBALS['STR_ADMIN_SITES_TEXT_EDITOR_FCKEDITOR']);
1104  $tpl->assign('STR_ADMIN_SITES_TEXT_EDITOR_CKEDITOR', $GLOBALS['STR_ADMIN_SITES_TEXT_EDITOR_CKEDITOR']);
1105  $tpl->assign('STR_ADMIN_SITES_TEXT_EDITOR_NICEDITOR', $GLOBALS['STR_ADMIN_SITES_TEXT_EDITOR_NICEDITOR']);
1106  $tpl->assign('STR_ADMIN_SITES_EMAIL_CONFIGURATION', $GLOBALS['STR_ADMIN_SITES_EMAIL_CONFIGURATION']);
1107  $tpl->assign('STR_ADMIN_SITES_EMAIL_SENDING_ALLOWED', $GLOBALS['STR_ADMIN_SITES_EMAIL_SENDING_ALLOWED']);
1108  $tpl->assign('STR_ADMIN_SITES_EMAIL_SENDING_DEACTIVATE_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_EMAIL_SENDING_DEACTIVATE_EXPLAIN']);
1109  $tpl->assign('STR_ADMIN_SITES_EMAIL_CONFIGURATION_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_EMAIL_CONFIGURATION_EXPLAIN']);
1110  $tpl->assign('STR_MODULE_WEBMAIL_ADMIN_WEBMASTER_EMAIL', $GLOBALS['STR_MODULE_WEBMAIL_ADMIN_WEBMASTER_EMAIL']);
1111  $tpl->assign('STR_MODULE_PREMIUM_MANDATORY_EMAIL', $GLOBALS['STR_MODULE_PREMIUM_MANDATORY_EMAIL']);
1112  $tpl->assign('STR_ADMIN_SITES_SUPPORT_SENDER_NAME', $GLOBALS['STR_ADMIN_SITES_SUPPORT_SENDER_NAME']);
1113  $tpl->assign('STR_ADMIN_SITES_SUPPORT_SENDER_NAME_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SUPPORT_SENDER_NAME_EXPLAIN']);
1114  $tpl->assign('STR_MODULE_WEBMAIL_ADMIN_ORDER_MANAGEMENT_EMAIL', $GLOBALS['STR_MODULE_WEBMAIL_ADMIN_ORDER_MANAGEMENT_EMAIL']);
1115  $tpl->assign('STR_ADMIN_SITES_EMAIL_EMPTY_DEFAULT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_EMAIL_EMPTY_DEFAULT_EXPLAIN']);
1116  $tpl->assign('STR_MODULE_WEBMAIL_ADMIN_CLIENT_SERVICE_EMAIL', $GLOBALS['STR_MODULE_WEBMAIL_ADMIN_CLIENT_SERVICE_EMAIL']);
1117  $tpl->assign('STR_ADMIN_SITES_EMAIL_EMPTY_DEFAULT_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_EMAIL_EMPTY_DEFAULT_EXPLAIN']);
1118  $tpl->assign('STR_ADMIN_SITES_MODULES_POSITIONS', $GLOBALS['STR_ADMIN_SITES_MODULES_POSITIONS']);
1119  $tpl->assign('STR_ADMIN_SITES_MODULES_POSITIONS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_MODULES_POSITIONS_EXPLAIN']);
1120  $tpl->assign('STR_ADMIN_DISPLAY_MODE', $GLOBALS['STR_ADMIN_DISPLAY_MODE']);
1121  $tpl->assign('STR_CHOOSE', $GLOBALS['STR_CHOOSE']);
1122  $tpl->assign('STR_ADMIN_PLACE', $GLOBALS['STR_ADMIN_PLACE']);
1123  $tpl->assign('STR_ADMIN_SITES_ABOVE_MIDDLE', $GLOBALS['STR_ADMIN_SITES_ABOVE_MIDDLE']);
1124  $tpl->assign('STR_ADMIN_SITES_BELOW_MIDDLE', $GLOBALS['STR_ADMIN_SITES_BELOW_MIDDLE']);
1125  $tpl->assign('STR_ADMIN_SITES_LEFT', $GLOBALS['STR_ADMIN_SITES_LEFT']);
1126  $tpl->assign('STR_ADMIN_SITES_RIGHT', $GLOBALS['STR_ADMIN_SITES_RIGHT']);
1127  $tpl->assign('STR_ADMIN_SITES_BOTTOM', $GLOBALS['STR_ADMIN_SITES_BOTTOM']);
1128  $tpl->assign('STR_ADMIN_SITES_TOP', $GLOBALS['STR_ADMIN_SITES_TOP']);
1129  $tpl->assign('STR_ADMIN_SITES_CENTER_TOP', $GLOBALS['STR_ADMIN_SITES_CENTER_TOP']);
1130  $tpl->assign('STR_ADMIN_SITES_CENTER_MIDDLE', $GLOBALS['STR_ADMIN_SITES_CENTER_MIDDLE']);
1131  $tpl->assign('STR_ADMIN_SITES_CENTER_MIDDLE_HOME', $GLOBALS['STR_ADMIN_SITES_CENTER_MIDDLE_HOME']);
1132  $tpl->assign('STR_ADMIN_SITES_CENTER_BOTTOM', $GLOBALS['STR_ADMIN_SITES_CENTER_BOTTOM']);
1133  $tpl->assign('STR_ADMIN_SITES_USER_SHOPS_TOP', $GLOBALS['STR_ADMIN_SITES_USER_SHOPS_TOP']);
1134  $tpl->assign('STR_ADMIN_SITES_USER_SHOPS_BOTTOM', $GLOBALS['STR_ADMIN_SITES_USER_SHOPS_BOTTOM']);
1135  $tpl->assign('STR_ADMIN_SITES_POSITION_ADS_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_TOP']);
1136  $tpl->assign('STR_ADMIN_SITES_POSITION_ADS_SPONSOR', $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_SPONSOR']);
1137  $tpl->assign('STR_ADMIN_SITES_POSITION_AD_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_AD_BOTTOM']);
1138  $tpl->assign('STR_ADMIN_SITES_POSITION_AD_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_AD_TOP']);
1139  $tpl->assign('STR_ADMIN_SITES_POSITION_ADS_MIDDLE', $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_MIDDLE']);
1140  $tpl->assign('STR_ADMIN_SITES_POSITION_ADS_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_BOTTOM']);
1141  $tpl->assign('STR_ADMIN_SITES_POSITION_ADS_LEFT', $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_LEFT']);
1142  $tpl->assign('STR_ADMIN_SITES_POSITION_ADS_RIGHT', $GLOBALS['STR_ADMIN_SITES_POSITION_ADS_RIGHT']);
1143  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_HOME', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_HOME']);
1144  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_ADS_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ADS_BOTTOM']);
1145  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_ADS_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ADS_TOP']);
1146  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_AD_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_TOP']);
1147  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_AD_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_BOTTOM']);
1148  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_FAVORITES_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_FAVORITES_BOTTOM']);
1149  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_FAVORITES_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_FAVORITES_TOP']);
1150  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_BOTTOM']);
1151  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_TOP']);
1152  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_CREATION_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_CREATION_TOP']);
1153  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_CREATION_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_ACCOUNT_CREATION_BOTTOM']);
1154  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_AD_CREATION_TOP', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_CREATION_TOP']);
1155  $tpl->assign('STR_ADMIN_SITES_POSITION_IPHONE_AD_CREATION_BOTTOM', $GLOBALS['STR_ADMIN_SITES_POSITION_IPHONE_AD_CREATION_BOTTOM']);
1156  $tpl->assign('STR_ADMIN_SITES_ON_HOMEPAGE_ONLY', $GLOBALS['STR_ADMIN_SITES_ON_HOMEPAGE_ONLY']);
1157  $tpl->assign('STR_ADMIN_SITES_PAYPAL_EMAIL', $GLOBALS['STR_ADMIN_SITES_PAYPAL_EMAIL']);
1158  $tpl->assign('STR_ADMIN_SITES_MONEYBOOKERS_EMAIL', $GLOBALS['STR_ADMIN_SITES_MONEYBOOKERS_EMAIL']);
1159  $tpl->assign('STR_ADMIN_SITES_MONEYBOOKERS_SECRET_WORD', $GLOBALS['STR_ADMIN_SITES_MONEYBOOKERS_SECRET_WORD']);
1160  $tpl->assign('STR_ADMIN_SITES_MONEYBOOKERS_SECRET_WORD_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_MONEYBOOKERS_SECRET_WORD_EXPLAIN']);
1161  $tpl->assign('STR_ADMIN_SITES_DELIVERY_CARRIER_DELAY', $GLOBALS['STR_ADMIN_SITES_DELIVERY_CARRIER_DELAY']);
1162  $tpl->assign('STR_ADMIN_SITES_ANALYTICS_TAG', $GLOBALS['STR_ADMIN_SITES_ANALYTICS_TAG']);
1163  $tpl->assign('STR_ADMIN_SITES_ANALYTICS_TAG_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_ANALYTICS_TAG_EXPLAIN']);
1164  $tpl->assign('STR_ADMIN_CONTACT_PEEL_FOR_MODULE', $GLOBALS['STR_ADMIN_CONTACT_PEEL_FOR_MODULE']);
1165  $tpl->assign('STR_ADMIN_SITES_ADVERTISING', $GLOBALS['STR_ADMIN_SITES_ADVERTISING']);
1166  $tpl->assign('STR_ADMIN_SITES_ROLLOVER_HEADER', $GLOBALS['STR_ADMIN_SITES_ROLLOVER_HEADER']);
1167  $tpl->assign('STR_ADMIN_SITES_ROLLOVER_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_ROLLOVER_EXPLAIN']);
1168  $tpl->assign('STR_ADMIN_SITES_ROLLOVER_DISPLAY', $GLOBALS['STR_ADMIN_SITES_ROLLOVER_DISPLAY']);
1169  $tpl->assign('STR_ADMIN_SITES_ROLLOVER_DISPLAY_MODE', $GLOBALS['STR_ADMIN_SITES_ROLLOVER_DISPLAY_MODE']);
1170  $tpl->assign('STR_ADMIN_SITES_ROLLOVER_DISPLAY_REPLACE', $GLOBALS['STR_ADMIN_SITES_ROLLOVER_DISPLAY_REPLACE']);
1171  $tpl->assign('STR_ADMIN_SITES_ROLLOVER_DISPLAY_SCROLLING', $GLOBALS['STR_ADMIN_SITES_ROLLOVER_DISPLAY_SCROLLING']);
1172  $tpl->assign('STR_ADMIN_SITES_CAPTCHA_ACTIVATION', $GLOBALS['STR_ADMIN_SITES_CAPTCHA_ACTIVATION']);
1173  $tpl->assign('STR_ADMIN_SITES_CAPTCHA_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_CAPTCHA_EXPLAIN']);
1174  $tpl->assign('STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_ACTIVATION', $GLOBALS['STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_ACTIVATION']);
1175  $tpl->assign('STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_ACTIVATION_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_ACTIVATION_EXPLAIN']);
1176  $tpl->assign('STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY', $GLOBALS['STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY']);
1177  $tpl->assign('STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY_MODE', $GLOBALS['STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY_MODE']);
1178  $tpl->assign('STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY_DIRECT_PARENT', $GLOBALS['STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY_DIRECT_PARENT']);
1179  $tpl->assign('STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY_ALL_PARENTS', $GLOBALS['STR_ADMIN_SITES_PREVIOUS_NEXT_BUTTONS_DISPLAY_ALL_PARENTS']);
1180  $tpl->assign('STR_ADMIN_SITES_PRESENT_AND_ACTIVATED_BY_DEFAULT', $GLOBALS['STR_ADMIN_SITES_PRESENT_AND_ACTIVATED_BY_DEFAULT']);
1181  $tpl->assign('STR_ADMIN_SITES_ALLOW_ORDERS_WITHOUT_STOCKS', $GLOBALS['STR_ADMIN_SITES_ALLOW_ORDERS_WITHOUT_STOCKS']);
1182  $tpl->assign('STR_ADMIN_SITES_STOCKS_BOOKING_SECONDS', $GLOBALS['STR_ADMIN_SITES_STOCKS_BOOKING_SECONDS']);
1183  $tpl->assign('STR_ADMIN_SITES_STOCKS_BOOKING_DEFAULT', $GLOBALS['STR_ADMIN_SITES_STOCKS_BOOKING_DEFAULT']);
1184  $tpl->assign('STR_ADMIN_SITES_STOCKS_BOOKING_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_STOCKS_BOOKING_EXPLAIN']);
1185  $tpl->assign('STR_ADMIN_SITES_STOCKS_LIMIT_ALERT', $GLOBALS['STR_ADMIN_SITES_STOCKS_LIMIT_ALERT']);
1186  $tpl->assign('STR_ADMIN_SITES_STOCKS_DECREMENT_BY_PAYMENT_STATUS', $GLOBALS['STR_ADMIN_SITES_STOCKS_DECREMENT_BY_PAYMENT_STATUS']);
1187  $tpl->assign('STR_ADMIN_SITES_STOCKS_DECREMENT_BY_PAYMENT_STATUS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_STOCKS_DECREMENT_BY_PAYMENT_STATUS_EXPLAIN']);
1188  $tpl->assign('STR_ADMIN_SITES_RESELLER_MANAGE', $GLOBALS['STR_ADMIN_SITES_RESELLER_MANAGE']);
1189  $tpl->assign('STR_ADMIN_SITES_RESELLER_MANAGE_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_RESELLER_MANAGE_EXPLAIN']);
1190  $tpl->assign('STR_ADMIN_SITES_AFFILIATION_COMMISSION', $GLOBALS['STR_ADMIN_SITES_AFFILIATION_COMMISSION']);
1191  $tpl->assign('STR_ADMIN_SITES_AFFILIATION_LOGO', $GLOBALS['STR_ADMIN_SITES_AFFILIATION_LOGO']);
1192  $tpl->assign('STR_ADMIN_SITES_SPONSOR_COMMISSION', $GLOBALS['STR_ADMIN_SITES_SPONSOR_COMMISSION']);
1193  $tpl->assign('STR_ADMIN_SITES_MICROBUSINESS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_MICROBUSINESS_EXPLAIN']);
1194  $tpl->assign('STR_ADMIN_SITES_PRESENT_AND_ACTIVATED_BY_DEFAULT', $GLOBALS['STR_ADMIN_SITES_PRESENT_AND_ACTIVATED_BY_DEFAULT']);
1195  $tpl->assign('STR_ADMIN_SITES_COMPARATOR_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_COMPARATOR_EXPLAIN']);
1196  $tpl->assign('STR_ADMIN_SITES_GOOGLE_FRIENDS_CONNECT_SITE_ID', $GLOBALS['STR_ADMIN_SITES_GOOGLE_FRIENDS_CONNECT_SITE_ID']);
1197  $tpl->assign('STR_ADMIN_SITES_TWITTER_SIGN_IN', $GLOBALS['STR_ADMIN_SITES_TWITTER_SIGN_IN']);
1198  $tpl->assign('STR_ADMIN_SITES_TWITTER_CONSUMER_KEY', $GLOBALS['STR_ADMIN_SITES_TWITTER_CONSUMER_KEY']);
1199  $tpl->assign('STR_ADMIN_SITES_TWITTER_CONSUMER_SECRET', $GLOBALS['STR_ADMIN_SITES_TWITTER_CONSUMER_SECRET']);
1200  $tpl->assign('STR_ADMIN_SITES_TWITTER_OAUTH_CALLBACK', $GLOBALS['STR_ADMIN_SITES_TWITTER_OAUTH_CALLBACK']);
1201  $tpl->assign('STR_ADMIN_SITES_VACANCY_MODULE_TYPE', $GLOBALS['STR_ADMIN_SITES_VACANCY_MODULE_TYPE']);
1202  $tpl->assign('STR_ADMIN_SITES_VACANCY_MODULE_TYPE_ADMIN', $GLOBALS['STR_ADMIN_SITES_VACANCY_MODULE_TYPE_ADMIN']);
1203  $tpl->assign('STR_ADMIN_SITES_VACANCY_MODULE_TYPE_SUPPLIER', $GLOBALS['STR_ADMIN_SITES_VACANCY_MODULE_TYPE_SUPPLIER']);
1204  $tpl->assign('STR_ADMIN_SITES_VACANCY_ADMIN_MESSAGE', $GLOBALS['STR_ADMIN_SITES_VACANCY_ADMIN_MESSAGE']);
1205  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_FOID', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_FOID']);
1206  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_SHA1_KEY', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_SHA1_KEY']);
1207  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_URL_KO', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_URL_KO']);
1208  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_FORWARDINGCHARGES_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_FORWARDINGCHARGES_EXPLAIN']);
1209  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_PREPARATIONTIME', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_PREPARATIONTIME']);
1210  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_FORWARDINGCHARGES', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_FORWARDINGCHARGES']);
1211  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_FIRSTORDER', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_FIRSTORDER']);
1212  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_POINT_RELAIS', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_POINT_RELAIS']);
1213  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_DYFORWARDINGCHARGESCMT', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_DYFORWARDINGCHARGESCMT']);
1214  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_PREPARATIONTIME_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_PREPARATIONTIME_EXPLAIN']);
1215  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_FIRSTORDER_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_FIRSTORDER_EXPLAIN']);
1216  $tpl->assign('STR_ADMIN_SITES_SO_COLISSIMO_POINT_RELAIS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SO_COLISSIMO_POINT_RELAIS_EXPLAIN']);
1217  $tpl->assign('STR_ADMIN_SITES_TNT_USERNAME', $GLOBALS['STR_ADMIN_SITES_TNT_USERNAME']);
1218  $tpl->assign('STR_ADMIN_SITES_TNT_PASSWORD', $GLOBALS['STR_ADMIN_SITES_TNT_PASSWORD']);
1219  $tpl->assign('STR_ADMIN_SITES_TNT_ACCOUNT_NUMBER', $GLOBALS['STR_ADMIN_SITES_TNT_ACCOUNT_NUMBER']);
1220  $tpl->assign('STR_ADMIN_SITES_TNT_EXPEDITION_DELAY', $GLOBALS['STR_ADMIN_SITES_TNT_EXPEDITION_DELAY']);
1221  $tpl->assign('STR_ADMIN_SITES_SIPS_CERTIFICATE', $GLOBALS['STR_ADMIN_SITES_SIPS_CERTIFICATE']);
1222  $tpl->assign('STR_ADMIN_SITES_SIPS_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_SIPS_EXPLAIN']);
1223  $tpl->assign('STR_ADMIN_SITES_SPPLUS_EXTERNAL_URL', $GLOBALS['STR_ADMIN_SITES_SPPLUS_EXTERNAL_URL']);
1224  $tpl->assign('STR_ADMIN_SITES_PAYBOX_CGI', $GLOBALS['STR_ADMIN_SITES_PAYBOX_CGI']);
1225  $tpl->assign('STR_ADMIN_SITES_PAYBOX_SITE', $GLOBALS['STR_ADMIN_SITES_PAYBOX_SITE']);
1226  $tpl->assign('STR_ADMIN_SITES_PAYBOX_RANG', $GLOBALS['STR_ADMIN_SITES_PAYBOX_RANG']);
1227  $tpl->assign('STR_ADMIN_SITES_PAYBOX_ID', $GLOBALS['STR_ADMIN_SITES_PAYBOX_ID']);
1228  $tpl->assign('STR_ADMIN_SITES_PAYBOX_TEST_EXPLAIN', $GLOBALS['STR_ADMIN_SITES_PAYBOX_TEST_EXPLAIN']);
1229  $tpl->assign('STR_ADMIN_SITES_SYSTEMPAY_CERTIFICATE', $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY_CERTIFICATE']);
1230  $tpl->assign('STR_ADMIN_SITES_SYSTEMPAY_TEST', $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY_TEST']);
1231  $tpl->assign('STR_ADMIN_SITES_SYSTEMPAY_ID', $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY_ID']);
1232  $tpl->assign('STR_ADMIN_SITES_SYSTEMPAY_OCCURENCES', $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY_OCCURENCES']);
1233  $tpl->assign('STR_ADMIN_SITES_SYSTEMPAY_DAYS_BETWEEN_OCCURENCES', $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY_DAYS_BETWEEN_OCCURENCES']);
1234  $tpl->assign('STR_ADMIN_SITES_SYSTEMPAY_TEST_MODE', $GLOBALS['STR_ADMIN_SITES_SYSTEMPAY_TEST_MODE']);
1235  $tpl->assign('STR_ADMIN_SITES_PARTNERS_DISPLAY_MODE', $GLOBALS['STR_ADMIN_SITES_PARTNERS_DISPLAY_MODE']);
1236  $tpl->assign('STR_ADMIN_SITES_PARTNERS_INDIVIDUAL', $GLOBALS['STR_ADMIN_SITES_PARTNERS_INDIVIDUAL']);
1237  $tpl->assign('STR_ADMIN_SITES_PARTNERS_GLOBAL', $GLOBALS['STR_ADMIN_SITES_PARTNERS_GLOBAL']);
1238  $tpl->assign('STR_ADMIN_SITES_FACEBOOK_ADMIN', $GLOBALS['STR_ADMIN_SITES_FACEBOOK_ADMIN']);
1239  $tpl->assign('STR_ADMIN_SITES_FACEBOOK_PAGE_LINK', $GLOBALS['STR_ADMIN_SITES_FACEBOOK_PAGE_LINK']);
1240  $tpl->assign('STR_ADMIN_SITES_FACEBOOK_CONNECT', $GLOBALS['STR_ADMIN_SITES_FACEBOOK_CONNECT']);
1241  $tpl->assign('STR_ADMIN_SITES_FACEBOOK_APPID', $GLOBALS['STR_ADMIN_SITES_FACEBOOK_APPID']);
1242  $tpl->assign('STR_ADMIN_SITES_FACEBOOK_SECRET', $GLOBALS['STR_ADMIN_SITES_FACEBOOK_SECRET']);
1243  $tpl->assign('STR_ADMIN_SITES_FACEBOOK_BASEURL', $GLOBALS['STR_ADMIN_SITES_FACEBOOK_BASEURL']);
1244  $output .= $tpl->fetch();
1245  return $output;
1246 }
1247 
1255 {
1256  // Récupération du nom des sites, pour afficher le message de confirmation de suppression (avant l'exécution de la requête)
1257  $all_sites_name_array = get_all_sites_name_array();
1258  $delete_table_array = array('admins_actions' ,'commandes' ,'codes_promos' ,'articles' ,'categories' ,'configuration' ,'html' ,'produits' ,'rubriques' ,'tarifs' ,'utilisateurs' ,'utilisateur_connexions' ,'zones' ,'societe' ,'langues' ,'devises' ,'marques' ,'meta' ,'cgv' ,'contacts' ,'legal' ,'access_map' ,'tailles' ,'couleurs' ,'banniere' ,'nom_attributs' ,'attributs' ,'ecotaxes' ,'email_template' ,'email_template_cat' ,'import_field' ,'modules' ,'newsletter' ,'paiement' ,'pays' ,'profil' ,'statut_livraison' ,'statut_paiement' ,'tva' ,'types' ,'webmail' ,'commandes_articles');
1259  if (check_if_module_active('faq')) {
1260  $delete_table_array[] = 'faq';
1261  }
1262  if (check_if_module_active('groups')) {
1263  $delete_table_array[] = 'groupes';
1264  }
1265  if (check_if_module_active('lexique')) {
1266  $delete_table_array[] = 'lexique';
1267  }
1268  if (check_if_module_active('lot')) {
1269  $delete_table_array[] = 'quantites';
1270  }
1271  if (check_if_module_active('parrainage')) {
1272  $delete_table_array[] = 'parrain';
1273  }
1274  if (check_if_module_active('stock_advanced')) {
1275  $delete_table_array[] = 'alertes';
1276  }
1277  if (check_if_module_active('affiliation')) {
1278  $delete_table_array[] = 'affiliation';
1279  }
1280  if (check_if_module_active('stock_advanced')) {
1281  $delete_table_array[] = 'etatstock';
1282  }
1283  if (check_if_module_active('carrousel')) {
1284  $delete_table_array[] = 'carrousels';
1285  $delete_table_array[] = 'vignettes_carrousels';
1286  }
1287  // Exécution de la suppression
1288  foreach ($delete_table_array as $this_table_short_name) {
1289  $qid = query("DELETE
1290  FROM peel_".word_real_escape_string($this_table_short_name)."
1291  WHERE " . get_filter_site_cond($this_table_short_name, null, true) . " AND site_id='".nohtml_real_escape_string(get_site_id_sql_set_value($id))."'");
1292  if ($this_table_short_name == 'configuration' && affected_rows()) {
1293  $site_erased = true;
1294  }
1295  }
1296  if (!empty($site_erased)) {
1297  // suppression du site effectuée, il y a avait des entrées correspondantes au site dans la BDD. Il faut afficher un message de confirmation de suppression à l'admin
1298  return $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => sprintf($GLOBALS['STR_ADMIN_SITES_MSG_DELETED_OK'], String::html_entity_decode_if_needed(vb($all_sites_name_array[$id])))))->fetch();
1299  } else {
1300  // Aucune suppression effectuée, il n'y avait pas d'entrées correspondantes au site dans la BDD. Il faut avertir l'admin.
1301  return $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => sprintf($GLOBALS['STR_ADMIN_SITES_MSG_DELETED_NOK'], String::html_entity_decode_if_needed(vn($id)))))->fetch();
1302  }
1303 }
1304 
1305 
1312 {
1313  $output = '
1314 <table class="main_table">
1315  <tr>
1316  <td class="entete" colspan="4">' . $GLOBALS['STR_ADMIN_SITES_LIST_TITLE'] . '</td>
1317  </tr>';
1318  if(empty($GLOBALS['site_parameters']['multisite_disable']) && $_SESSION['session_utilisateur']['site_id']==0) {
1319  // La création de site est reservé aux administrateur multisite.
1320  $output .= '
1321  <tr>
1322  <td colspan="4"><a href="' . get_current_url(false) . '?mode=ajout">' . $GLOBALS['STR_ADMIN_SITES_ADD_SITE'] . '</a></td>
1323  </tr>';
1324  }
1325  // Récupération des infos que l'on a pour chaque site pour l'afficher dans la liste des sites
1326  // noms
1327  $all_sites_name_array = get_all_sites_name_array();
1328  // URL
1329  $sites_wwwroot_array = get_sites_wwwroot_array();
1330  if (count($all_sites_name_array) == 0) {
1331  // Pas de site trouvé. En théorie impossible
1332  $output .= '<tr><td><b>' . $GLOBALS['STR_ADMIN_SITES_LIST_NOTHING_FOUND'] . '</b></td></tr>';
1333  } else {
1334  // Affichage de la liste
1335  $output .= '
1336  <tr>
1337  <td class="menu" width="50">' . $GLOBALS['STR_ADMIN_ACTION'] . '</td>
1338  <td class="menu" width="80">' . $GLOBALS['STR_ADMIN_ID'] . '</td>
1339  <td class="menu">' . $GLOBALS['STR_ADMIN_SITES_SITE_NAME'] . '</td>
1340  <td class="menu">' . $GLOBALS['STR_MODULE_PREMIUM_URL_WEBSITE'] . '</td>
1341  </tr>';
1342  $i = 0;
1343  foreach ($all_sites_name_array as $site_id => $nom) {
1344  // Boucle par nom de site. On peut faire aussi par wwwroot, choix arbitraire
1345  // tr_rollover génère les tr avec une alternance de couleur, et un effet au survol de la souris
1346  $output .= tr_rollover($i, true) . '
1347  <td class="center">';
1348  if(empty($GLOBALS['site_parameters']['multisite_disable']) && check_if_module_active('duplicate') && $_SESSION['session_utilisateur']['site_id']==0) {
1349  // La duplication de site est réservé aux administrateurs multisite.
1350  $output .= '
1351  <a onclick="bootbox.confirm(\''.filtre_javascript(sprintf($GLOBALS["STR_ADMIN_SITE_DUPLICATE_CONFIRM"], $nom), true, true, true) . '\', function(result) {if (result) {document.location = \'' . get_current_url(false) . '?mode=duplicate&id=' . $site_id . '\'}} ); return false;" title="' . $GLOBALS['STR_ADMIN_SITES_DUPLICATE'] . '" href="' . get_current_url(false) . '?mode=duplicate&id=' . $site_id . '"><img src="' . $GLOBALS['administrer_url'] . '/images/duplicate.png" alt="' . $GLOBALS['STR_ADMIN_SITES_DUPLICATE'] . '" /></a>';
1352  }
1353  $output .= '
1354  <a title="' . $GLOBALS['STR_ADMIN_SITES_LIST_MODIFY'] . '" href="' . get_current_url(false) . '?mode=modif&id=' . $site_id . '"><img src="' . $GLOBALS['administrer_url'] . '/images/b_edit.png" alt="' . $GLOBALS['STR_ADMIN_SITES_LIST_MODIFY'] . '" /></a>';
1355  if(empty($GLOBALS['site_parameters']['multisite_disable']) && $_SESSION['session_utilisateur']['site_id']==0) {
1356  // La suppression de site est réservé aux administrateurs multisite.
1357  $output .= '
1358  <a onclick="bootbox.confirm(\''.filtre_javascript(sprintf($GLOBALS["STR_ADMIN_SITE_DELETE_CONFIRM"], $nom), true, true, true) . '\', function(result) {if (result) {document.location = \'' . get_current_url(false) . '?mode=suppr&id=' . $site_id . '\'}}); return false;" title="' . $GLOBALS['STR_DELETE'] . '" href="' . get_current_url(false) . '?mode=suppr&id=' . $site_id . '"><img src="' . $GLOBALS['administrer_url'] . '/images/b_drop.png" alt="' . $GLOBALS['STR_DELETE'] . '" /></a>';
1359  }
1360  $output .= '
1361  </td>
1362  <td class="title_label center">' . $site_id . '</td>
1363  <td class="center" style="padding-left:10px">' . get_site_name($site_id) . '</td>
1364  <td class="center" style="padding-left:10px">' . vb($sites_wwwroot_array[$site_id]) . '</td>
1365  </tr>';
1366  // L'incrément est utile pour la fonction tr_rollover
1367  $i++;
1368  }
1369  }
1370  $output .= "
1371 </table>";
1372  return $output;
1373 }
1374 
1382 function supprime_favicon($id, $file)
1383 {
1384  set_configuration_variable(array('technical_code' => 'favicon', 'string' => '', 'origin' => 'sites.php', 'site_id' => $id), true);
1385  return delete_uploaded_file_and_thumbs($file);
1386 }
1387 
1395 function supprime_default_picture($id, $file)
1396 {
1397  set_configuration_variable(array('technical_code' => 'default_picture', 'string' => '', 'origin' => 'sites.php', 'site_id' => $id), true);
1398  return delete_uploaded_file_and_thumbs($file);
1399 }
1400 
$output
Definition: sites.php:20
get_sites_wwwroot_array()
Retourne un tableau des urls des sites configurés en fonction des droits de l'administrateur.
supprime_site($id)
Efface les paramètres du site spécifié par $id.
Definition: sites.php:1254
$result
static strpos($haystack, $needle, $offset=0)
Returns the numeric position of the first occurrence of needle in the haystack string.
Definition: String.php:54
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
Definition: fonctions.php:1743
upload($field_name, $rename_file=true, $file_kind=null, $image_max_width=null, $image_max_height=null, $path=null, $new_file_name_without_extension=null, $default_return_value=null)
Fonction d'upload de fichiers.
Definition: fonctions.php:3302
static fopen_utf8($filename, $mode, $force_filename_in_iso_8859=false, $try_filename_in_iso_8859_if_file_not_found=true)
Ouvre un fichier.
Definition: String.php:793
redirect_and_die($url, $permanent_redirection=false, $avoid_loop=false)
Redirige vers l'URL demandée et arrête le programme.
Definition: fonctions.php:1551
$tpl_langs
static html_entity_decode_if_needed($string)
String::html_entity_decode_if_needed()
Definition: String.php:533
affected_rows($database_object=null)
affected_rows()
Definition: database.php:356
word_real_escape_string($value)
Applique real_escape_string dans le cas où on n'insère qu'un seul mot, de moins de 30 caractères...
Definition: database.php:424
create_or_update_site($frm, $update_module=true, $mode, $available_langs_array=null)
Créer ou mets à jour les paramètres du site $frm['site_id'].
affiche_formulaire_ajout_site(&$frm)
FONCTIONS.
Definition: sites.php:224
static strtolower($string)
Returns string with all alphabetic characters converted to lowercase.
Definition: String.php:135
nohtml_real_escape_string($value, $allowed_tags=null)
Protège les données pour insertion dans MySQL ET supprime les tags HTML pour protéger de toute sorte ...
Definition: database.php:400
$frm
Definition: sites.php:22
if(!empty($_GET['id'])) if(isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'], $_POST['form_lang'])&&empty($_GET['id'])) if(empty($_GET['id'])) $tpl
necessite_priv($priv, $demo_allowed=true, $configuration_modification=false)
Cette fonction vérifie si l'utilisateur a les privilèges de $priv.
Definition: fonctions.php:1575
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table.
Definition: fonctions.php:4643
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query.
Definition: database.php:158
execute_sql($file_path, $max_sql_lines_at_once=10000, $disable_echo=false, $site_id=0, $regular_display=100, $sql=null, $replace_tags=true)
execute_sql()
static str_form_value($value, $flags=ENT_COMPAT)
Encode une chaine de caractères pour affichage dans un value="".
Definition: String.php:480
vb(&$var, $default=null)
Variable blanche if $var n'est pas défini, retourne $default, sinon retourne $var.
Definition: format.php:97
affiche_liste_site()
Retourne la liste des sites configurés.
Definition: sites.php:1311
get_country_select_options($selected_country_name=null, $selected_country_id=null, $option_value= 'name', $display_inactive_country=false, $allowed_zone_id=null, $preselect_shop_country_if_none_selected=true, $selected_country_lang=null, $allowed_ids=null)
get_country_select_options()
Definition: fonctions.php:1005
supprime_favicon($id, $file)
Supprime une favicon.
Definition: sites.php:1382
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Definition: chart-data.php:160
necessite_identification()
Si l'utilisateur n'est pas connecté à un compte, on affiche une page d'identification et arrête le sc...
Definition: fonctions.php:1596
get_modules_array($only_active=false, $location=null, $technical_code=null, $force_update_cache_information=false, $specific_site_id=null, $exclude_public_items=false)
Retourne les modules sous forme de tableau.
Definition: fonctions.php:469
affiche_formulaire_site(&$frm, $frm_modules)
Retourne le HTML du formulaire de modification/création de site.
Definition: sites.php:423
fetch_assoc($query_result)
fetch_assoc()
Definition: database.php:283
get_formatted_date($datetime_or_timestamp=null, $mode= 'short', $hour_minute=false)
Afficher une date formatée, en évitant les problèmes liés aux noms de mois sur les serveurs qui ne so...
Definition: format.php:440
$GLOBALS['DOC_TITLE']
Definition: sites.php:19
get_all_sites_name_array($admin_force_multisite_if_allowed=false, $allow_null_site_id=false, $skip_rights_check=false)
Retourne un tableau des noms des sites configurés en fonction des droits de l'administrateur.
Definition: fonctions.php:4792
filtre_javascript($string, $addslashes=true, $allow_escape_single_quote=true, $allow_escape_double_quote=true, $skip_endline=true, $inside_html=true)
Formatte une chaine de caractère pour insertion dans du javascript.
Definition: format.php:237
get_form_token_input($name= 'general', $use_existing_token=true, $return_as_input_form=true)
get_form_token_input()
Definition: fonctions.php:94
get_site_wwwroot($site_id, $lang=null)
Renvoie l'URL d'un site donné
Definition: fonctions.php:4873
affiche_formulaire_modif_site($id, $frm)
Retourne le formulaire de modification pour le site sélectionné en paramétrant la fonction affiche_fo...
Definition: sites.php:383
vn(&$var, $default=0)
Variable nulle if $var n'est pas défini, retourne $default, sinon retourne $var.
Definition: format.php:110
get_site_id_sql_set_value($site_ids)
Retourne la valeur SQL d'un champ INT ou SET suivant que ce soit un entier ou un tableau.
Definition: fonctions.php:4747
supprime_default_picture($id, $file)
Supprime l'image par défaut utilisée sur le site.
Definition: sites.php:1395
if(!empty($error_msg)) $modules_dir
set_configuration_variable($frm, $update_if_technical_code_exists=false, $allow_create=true)
Ajoute la zone HTML dans la table peel_configuration.
Definition: fonctions.php:4199
$req
Definition: ipn.php:30
verify_token($name= 'general', $delay_in_minutes=60, $check_referer_if_set_by_server=true, $cancel_token=true, $minimum_wait_in_seconds_before_use=0)
Vérification de la validité d'un token Par défaut, un token est valide 1h, et utilisable 1 seule fois...
Definition: fonctions.php:118
$error_msg
$id
Definition: articles.php:22
static substr($string, $start, $length=null)
Returns the portion of string specified by the start and length parameters.
Definition: String.php:112
check_if_module_active($module_name, $specific_file_name=null)
Renvoie si un module est présent et activé ou non - Peut être appelé avant ou après le chargement d'u...
$form_error_object
Definition: sites.php:23
static ucfirst($string)
Returns string with first letter uppercase.
Definition: String.php:173
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:29:34 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.