PEEL Shopping
Open source ecommerce : PEEL Shopping
html.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: html.php 46935 2015-09-18 08:49:48Z gboussin $
14 define('IN_PEEL_ADMIN', true);
15 include("../configuration.inc.php");
17 necessite_priv("admin_content");
18 $id = vn($_GET['id']);
19 
20 $GLOBALS['DOC_TITLE'] = $GLOBALS['STR_ADMIN_HTML_TITLE'];
21 include($GLOBALS['repertoire_modele'] . "/admin_haut.php");
22 
23 $frm = $_POST;
25 
26 switch (vb($_REQUEST['mode'])) {
27  case "ajout" :
29  break;
30 
31  case "modif" :
33  break;
34 
35  case "suppr" :
38  break;
39 
40  case "insere" :
41  if (!verify_token($_SERVER['PHP_SELF'] . $frm['mode'] . $frm['id'])) {
42  $form_error_object->add('token', $GLOBALS['STR_INVALID_TOKEN']);
43  }
44  if (!$form_error_object->count()) {
45  insere_home($_POST);
46  echo $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => sprintf($GLOBALS['STR_ADMIN_HTML_MSG_ZONE_CREATED'], vb($_POST['titre']))))->fetch();
48  } else {
49  if ($form_error_object->has_error('token')) {
50  echo $form_error_object->text('token');
51  }
53  }
54  break;
55 
56  case "maj" :
57  if (!verify_token($_SERVER['PHP_SELF'] . $frm['mode'] . $frm['id'])) {
58  $form_error_object->add('token', $GLOBALS['STR_INVALID_TOKEN']);
59  }
60  if (!$form_error_object->count()) {
61  maj_home($_POST['id'], $_POST);
62  echo $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => sprintf($GLOBALS['STR_ADMIN_HTML_MSG_ZONE_UPDATED'], vn($_POST['id']))))->fetch();
64  } else {
65  if ($form_error_object->has_error('token')) {
66  echo $form_error_object->text('token');
67  }
69  }
70  break;
71 
72  default :
74  break;
75 }
76 
77 include($GLOBALS['repertoire_modele'] . "/admin_bas.php");
78 
90 {
91  /* Default value*/
92  if(empty($frm)) {
93  $frm['etat'] = 1;
94  $frm['titre'] = "";
95  $frm['contenu_html'] = "";
96  $frm['site_id'] = "";
97  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
98  $frm['site_country'] = $GLOBALS['site_parameters']['site_country_allowed_array'];
99  }
100  }
101  $frm['lang'] = $_SESSION['session_langue'];
102  $frm['nouveau_mode'] = "insere";
103  $frm['id'] = "";
104  $frm['emplacement'] = "header";
105  $frm['titre_bouton'] = $GLOBALS['STR_ADMIN_ADD'];
106 
108 }
109 
118 {
119  if(empty($frm)){
120  // Pas de données venant de validation de formulaire, donc on charge le contenu de la base de données
121  /* Charge les informations du produit */
122  $qid = query("SELECT *
123  FROM peel_html
124  WHERE id = '" . intval($id) . "' AND " . get_filter_site_cond('html', null, true) . "");
125  if ($frm = fetch_assoc($qid)) {
126  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
127  $frm['site_country'] = explode(',', vb($frm['site_country']));
128  }
129  } else {
130  echo $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => $GLOBALS['STR_ADMIN_HTML_ERR_ZONE_NOT_FOUND']))->fetch();
131  return false;
132  }
133  }
134  $frm['id'] = $id;
135  $frm["nouveau_mode"] = "maj";
136  $frm["titre_bouton"] = $GLOBALS['STR_ADMIN_FORM_SAVE_CHANGES'];
137 
139 }
140 
148 {
149  // liste des emplacements prévus
150  $emplacement_array['affiche_contenu_html_menu'] = $GLOBALS['STR_ADMIN_HTML_PLACE_CONTENU_HTML_MENU'];
151  $emplacement_array['heade'] = $GLOBALS['STR_ADMIN_HTML_PLACE_HEADER'];
152  $emplacement_array['footer'] = $GLOBALS['STR_ADMIN_HTML_PLACE_FOOTER'];
153  $emplacement_array['home'] = $GLOBALS['STR_ADMIN_HTML_PLACE_HOME'];
154  $emplacement_array['home_bottom'] = $GLOBALS['STR_ADMIN_HTML_PLACE_HOME_BOTTOM'];
155  $emplacement_array['conversion_page'] = $GLOBALS['STR_ADMIN_HTML_PLACE_CONVERSION_PAGE'];
156  $emplacement_array['footer_link'] = $GLOBALS['STR_ADMIN_HTML_PLACE_FOOTER_LINK'];
157  $emplacement_array['interstitiel'] = $GLOBALS['STR_ADMIN_HTML_PLACE_INTERSTITIEL'];
158  $emplacement_array['error404'] = $GLOBALS['STR_ADMIN_HTML_PLACE_ERROR404'];
159  $emplacement_array['scrolling'] = $GLOBALS['STR_ADMIN_HTML_PLACE_SCROLLING'];
160  $emplacement_array['contact_page'] = $GLOBALS['STR_ADMIN_HTML_PLACE_CONTACT_PAGE'];
161  if(file_exists($GLOBALS['fonctionscarrousel'])){
162  $emplacement_array['entre_carrousel'] = $GLOBALS['STR_ADMIN_HTML_PLACE_CARROUSEL_TOP'];
163  }
164  if(check_if_module_active('reseller')){
165  $emplacement_array['devenir_revendeur'] = $GLOBALS['STR_ADMIN_HTML_PLACE_BECOME_RESELLER'];
166  }
167  if(file_exists($GLOBALS['fonctionspartenaires'])){
168  $emplacement_array['partner'] = $GLOBALS['STR_ADMIN_HTML_PLACE_PARTNER'];
169  }
170  if(file_exists($GLOBALS['fonctionsresellermap'])){
171  $emplacement_array['reseller_map'] = $GLOBALS['STR_ADMIN_HTML_PLACE_RESELLER_MAP'];
172  }
173  if(file_exists($GLOBALS['fonctionsannonces'])){
174  $emplacement_array['home_ad'] = $GLOBALS['STR_ADMIN_HTML_PLACE_ADS_TOP'];
175  $emplacement_array['top_create_ad'] = $GLOBALS['STR_ADMIN_HTML_PLACE_TOP_CREATE_AD'];
176  }
177  if(file_exists($GLOBALS['fonctionsparrain'])){
178  $emplacement_array['intro_parrainage'] = $GLOBALS['STR_ADMIN_HTML_PLACE_INTRO_PARRAINAGE'];
179  }
180  if(!empty($GLOBALS['site_parameters']['short_order_process'])){
181  $emplacement_array['short_order_process'] = $GLOBALS['STR_ADMIN_HTML_PLACE_END_SHORT_ORDER_PROCESS'];
182  }
183  if(empty($emplacement_array[vb($frm['emplacement'])])){
184  $emplacement_array[vb($frm['emplacement'])] = str_replace('_', ' ', ucfirst(vb($frm['emplacement'])));
185  }
186  asort($emplacement_array);
187 
188  $tpl = $GLOBALS['tplEngine']->createTemplate('admin_formulaire_home.tpl');
189  $tpl->assign('action', get_current_url(false) . '?start=0');
190  $tpl->assign('form_token', get_form_token_input($_SERVER['PHP_SELF'] . $frm['nouveau_mode'] . intval($frm['id'])));
191  $tpl->assign('mode', $frm["nouveau_mode"]);
192  $tpl->assign('id', intval($frm['id']));
193  $tpl->assign('site_id_select_options', get_site_id_select_options(vb($frm['site_id'])));
194  $tpl->assign('site_id_select_multiple', !empty($GLOBALS['site_parameters']['multisite_using_array_for_site_id']));
195  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
196  $tpl->assign('site_country_checkboxes', get_site_country_checkboxes(vb($frm['site_country'], array())));
197  }
198  $tpl_langs = array();
199  foreach ($GLOBALS['admin_lang_codes'] as $lng) {
200  $tpl_langs[] = array('lng' => $lng,
201  'issel' => vb($frm['lang']) == $lng,
202  'name' => $GLOBALS['lang_names'][$lng]
203  );
204  }
205  $tpl->assign('langs', $tpl_langs);
206  $tpl->assign('etat', vb($frm["etat"]));
207  $tpl->assign('emplacement', vb($frm['emplacement']));
208  $tpl->assign('emplacement_array', $emplacement_array);
209  // Test sur la presence du fichier pour permettre le choix de l'emplacement independamment de la configuration du site
210  $tpl->assign('titre', vb($frm['titre']));
211  $tpl->assign('contenu_html_te', getTextEditor('contenu_html', '100%', 500, String::html_entity_decode_if_needed(vb($frm['contenu_html']))));
212  $tpl->assign('STR_ADMIN_WEBSITE', $GLOBALS['STR_ADMIN_WEBSITE']);
213  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
214  $tpl->assign('STR_ADMIN_SITE_COUNTRY', $GLOBALS['STR_ADMIN_SITE_COUNTRY']);
215  }
216  $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);
217  $tpl->assign('STR_ADMIN_HTML_FORM_TITLE', $GLOBALS['STR_ADMIN_HTML_FORM_TITLE']);
218  $tpl->assign('STR_ADMIN_LANGUAGE', $GLOBALS['STR_ADMIN_LANGUAGE']);
219  $tpl->assign('STR_STATUS', $GLOBALS['STR_STATUS']);
220  $tpl->assign('STR_ADMIN_ONLINE', $GLOBALS['STR_ADMIN_ONLINE']);
221  $tpl->assign('STR_ADMIN_OFFLINE', $GLOBALS['STR_ADMIN_OFFLINE']);
222  $tpl->assign('STR_ADMIN_HTML_PLACE_END_SHORT_ORDER_PROCESS', $GLOBALS['STR_ADMIN_HTML_PLACE_END_SHORT_ORDER_PROCESS']);
223  $tpl->assign('STR_ADMIN_HTML_PLACE', $GLOBALS['STR_ADMIN_HTML_PLACE']);
224  $tpl->assign('STR_ADMIN_HTML_PLACE_CONTENU_HTML_MENU', $GLOBALS['STR_ADMIN_HTML_PLACE_CONTENU_HTML_MENU']);
225  $tpl->assign('STR_ADMIN_HTML_PLACE_HEADER', $GLOBALS['STR_ADMIN_HTML_PLACE_HEADER']);
226  $tpl->assign('STR_ADMIN_HTML_PLACE_FOOTER', $GLOBALS['STR_ADMIN_HTML_PLACE_FOOTER']);
227  $tpl->assign('STR_ADMIN_HTML_PLACE_HOME', $GLOBALS['STR_ADMIN_HTML_PLACE_HOME']);
228  $tpl->assign('STR_ADMIN_HTML_PLACE_HOME_BOTTOM', $GLOBALS['STR_ADMIN_HTML_PLACE_HOME_BOTTOM']);
229  $tpl->assign('STR_ADMIN_HTML_PLACE_CONVERSION_PAGE', $GLOBALS['STR_ADMIN_HTML_PLACE_CONVERSION_PAGE']);
230  $tpl->assign('STR_ADMIN_HTML_PLACE_FOOTER_LINK', $GLOBALS['STR_ADMIN_HTML_PLACE_FOOTER_LINK']);
231  $tpl->assign('STR_ADMIN_HTML_PLACE_INTERSTITIEL', $GLOBALS['STR_ADMIN_HTML_PLACE_INTERSTITIEL']);
232  $tpl->assign('STR_ADMIN_HTML_PLACE_ERROR404', $GLOBALS['STR_ADMIN_HTML_PLACE_ERROR404']);
233  $tpl->assign('STR_ADMIN_HTML_PLACE_SCROLLING', $GLOBALS['STR_ADMIN_HTML_PLACE_SCROLLING']);
234  $tpl->assign('STR_ADMIN_HTML_PLACE_CONTACT_PAGE', $GLOBALS['STR_ADMIN_HTML_PLACE_CONTACT_PAGE']);
235  $tpl->assign('STR_ADMIN_HTML_PLACE_CARROUSEL_TOP', $GLOBALS['STR_ADMIN_HTML_PLACE_CARROUSEL_TOP']);
236  $tpl->assign('STR_ADMIN_HTML_PLACE_BECOME_RESELLER', $GLOBALS['STR_ADMIN_HTML_PLACE_BECOME_RESELLER']);
237  $tpl->assign('STR_ADMIN_HTML_PLACE_PARTNER', $GLOBALS['STR_ADMIN_HTML_PLACE_PARTNER']);
238  $tpl->assign('STR_ADMIN_HTML_PLACE_RESELLER_MAP', $GLOBALS['STR_ADMIN_HTML_PLACE_RESELLER_MAP']);
239  $tpl->assign('STR_ADMIN_HTML_PLACE_ADS_TOP', $GLOBALS['STR_ADMIN_HTML_PLACE_ADS_TOP']);
240  $tpl->assign('STR_ADMIN_HTML_PLACE_TOP_CREATE_AD', $GLOBALS['STR_ADMIN_HTML_PLACE_TOP_CREATE_AD']);
241  $tpl->assign('STR_ADMIN_HTML_PLACE_TOP_CREATE_AD', $GLOBALS['STR_ADMIN_HTML_PLACE_TOP_CREATE_AD']);
242  $tpl->assign('STR_ADMIN_HTML_PLACE_INTRO_PARRAINAGE', $GLOBALS['STR_ADMIN_HTML_PLACE_INTRO_PARRAINAGE']);
243  $tpl->assign('STR_ADMIN_TITLE_NOT_DISPLAYED', $GLOBALS['STR_ADMIN_TITLE_NOT_DISPLAYED']);
244  $tpl->assign('STR_ADMIN_HTML_TEXT', $GLOBALS['STR_ADMIN_HTML_TEXT']);
245  $tpl->assign('STR_ADMIN_HTML_PHOTOS_WARNING', $GLOBALS['STR_ADMIN_HTML_PHOTOS_WARNING']);
246  $tpl->assign('STR_VALIDATE', $GLOBALS['STR_VALIDATE']);
247  echo $tpl->fetch();
248 }
249 
257 {
258  query("DELETE FROM peel_html WHERE id='" . intval($id) . "' AND " . get_filter_site_cond('html', null, true) . "");
259  echo $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => $GLOBALS['STR_ADMIN_HTML_MSG_ZONE_DELETED']))->fetch();
260 }
261 
268 function insere_home($frm)
269 {
270  $sql = "INSERT INTO peel_html (etat, titre, contenu_html, o_timestamp, a_timestamp, emplacement, lang, site_id";
271  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
272  $sql .= ", site_country";
273  }
274  $sql .= ")
275  VALUES ('" . intval($frm['etat']) . "', '" . nohtml_real_escape_string($frm['titre']) . "', '" . real_escape_string($frm['contenu_html']) . "', '" . date('Y-m-d H:i:s', time()) . "', '" . date('Y-m-d H:i:s', time()) . "', '" . nohtml_real_escape_string($frm['emplacement']) . "', '" . nohtml_real_escape_string($frm['lang']) . "', '" . nohtml_real_escape_string(get_site_id_sql_set_value($frm['site_id'])) . "'";
276  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
277  $sql .= ", '" . word_real_escape_string(implode(',',vb($frm['site_country'], array()))) . "'";
278  }
279  $sql .= ")";
280  query($sql);
281 }
282 
290 function maj_home($id, $frm)
291 {
292  $sql = "UPDATE peel_html
293  SET etat = '" . intval($frm['etat']) . "'
294  , titre = '" . nohtml_real_escape_string($frm['titre']) . "'
295  , site_id = '" . nohtml_real_escape_string(get_site_id_sql_set_value($frm['site_id'])) . "'
296  ".(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])?", site_country = '" . real_escape_string(implode(',',vb($frm['site_country'], array()))) . "'":"")."
297  , contenu_html = '" . real_escape_string($frm['contenu_html']) . "'
298  ".(!empty($frm['emplacement'])?", emplacement = '" . nohtml_real_escape_string($frm['emplacement']) . "'":"")."
299  , a_timestamp = '" . date('Y-m-d H:i:s', time()) . "'
300  , lang = '" . nohtml_real_escape_string($frm['lang']) . "'
301  WHERE id = '" . intval($id) . "'";
302  query($sql);
303 }
304 
311 {
312  $tpl = $GLOBALS['tplEngine']->createTemplate('admin_liste_home.tpl');
313  $tpl->assign('add_src', $GLOBALS['administrer_url'] . '/images/add.png');
314  $tpl->assign('add_href', get_current_url(false) . '?mode=ajout');
315  $tpl->assign('drop_src', $GLOBALS['administrer_url'] . '/images/b_drop.png');
316  $tpl->assign('edit_src', $GLOBALS['administrer_url'] . '/images/b_edit.png');
317  $result = query("SELECT *
318  FROM peel_html
319  WHERE " . get_filter_site_cond('html', null, true) . "
320  ORDER BY a_timestamp DESC");
321  if (!(num_rows($result) == 0)) {
322  $tpl_results = array();
323  $i = 0;
324  while ($ligne = fetch_assoc($result)) {
325  $tmpLigne = array('tr_rollover' => tr_rollover($i, true),
326  'site_name' => get_site_name($ligne['site_id']),
327  'titre' => $ligne['titre'],
328  'drop_href' => get_current_url(false) . '?mode=suppr&id=' . $ligne['id'],
329  'edit_href' => get_current_url(false) . '?mode=modif&id=' . $ligne['id'],
330  'lang' => $ligne['lang'],
331  'date' => get_formatted_date($ligne['a_timestamp'], 'short', 'long'),
332  'emplacement' => $ligne['emplacement'],
333  'etat_onclick' => 'change_status("html", "' . $ligne['id'] . '", this, "'.$GLOBALS['administrer_url'] . '")',
334  'etat_src' => $GLOBALS['administrer_url'] . '/images/' . (empty($ligne['etat']) ? 'puce-blanche.gif' : 'puce-verte.gif')
335  );
336  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
337  $tmpLigne['site_country'] = get_country_name($ligne['site_country']);
338  }
339  $tpl_results[] = $tmpLigne;
340  $i++;
341  }
342  $tpl->assign('results', $tpl_results);
343  }
344  if (check_if_module_active('welcome_ad')) {
345  $tpl->assign('is_welcome_ad_module_active', true);
346  unset($_SESSION['session_info_inter_set']);
347  } else {
348  $tpl->assign('is_welcome_ad_module_active', false);
349  }
350  $tpl->assign('STR_ADMIN_HTML_TITLE', $GLOBALS['STR_ADMIN_HTML_TITLE']);
351  $tpl->assign('STR_ADMIN_HTML_CREATE', $GLOBALS['STR_ADMIN_HTML_CREATE']);
352  $tpl->assign('STR_ADMIN_HTML_EXPLAIN', $GLOBALS['STR_ADMIN_HTML_EXPLAIN']);
353  $tpl->assign('STR_ADMIN_WEBSITE', $GLOBALS['STR_ADMIN_WEBSITE']);
354  if(!empty($GLOBALS['site_parameters']['site_country_allowed_array'])) {
355  $tpl->assign('STR_ADMIN_SITE_COUNTRY', $GLOBALS['STR_ADMIN_SITE_COUNTRY']);
356  }
357  $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);
358  $tpl->assign('STR_NOTA_BENE', $GLOBALS['STR_NOTA_BENE']);
359  $tpl->assign('STR_ADMIN_ACTION', $GLOBALS['STR_ADMIN_ACTION']);
360  $tpl->assign('STR_ADMIN_LANGUAGE', $GLOBALS['STR_ADMIN_LANGUAGE']);
361  $tpl->assign('STR_ADMIN_TITLE', $GLOBALS['STR_ADMIN_TITLE']);
362  $tpl->assign('STR_DATE', $GLOBALS['STR_DATE']);
363  $tpl->assign('STR_VALIDATE', $GLOBALS['STR_VALIDATE']);
364  $tpl->assign('STR_STATUS', $GLOBALS['STR_STATUS']);
365  $tpl->assign('STR_ADMIN_PLACE', $GLOBALS['STR_ADMIN_PLACE']);
366  $tpl->assign('STR_ADMIN_DELETE_WARNING', $GLOBALS['STR_ADMIN_DELETE_WARNING']);
367  $tpl->assign('STR_DELETE', $GLOBALS['STR_DELETE']);
368  $tpl->assign('STR_ADMIN_HTML_UPDATE', $GLOBALS['STR_ADMIN_HTML_UPDATE']);
369  $tpl->assign('STR_ADMIN_HTML_DELETE_COOKIE_LINK', $GLOBALS['STR_ADMIN_HTML_DELETE_COOKIE_LINK']);
370  echo $tpl->fetch();
371 }
372 
get_site_name($site_ids, $skip_rights_check=false)
Retourne le nom d'un ou de plusieurs sites à partir de l'id.
Definition: fonctions.php:4763
getTextEditor($instance_name, $width, $height, $default_text, $default_path=null, $type_html_editor=0, $compter_char_max_if_enabled=255, $placeholder= '')
getTextEditor()
Definition: fonctions.php:4055
$result
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
Definition: fonctions.php:1743
affiche_formulaire_ajout_home(&$frm)
FONCTIONS.
Definition: html.php:89
insere_home($frm)
Ajoute la zone HTML dans la table peel_html.
Definition: html.php:268
$tpl_langs
get_site_id_select_options($selected_site_id=null, $selected_site_name=null, $display_first_option=null, $select_current_site_id_by_default=false)
Créer les options pour le select qui liste les noms de sites configurés en back office.
static html_entity_decode_if_needed($string)
String::html_entity_decode_if_needed()
Definition: String.php:533
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
$id
Definition: html.php:18
supprime_home($id)
Supprime la zone HTML spécifié par $id.
Definition: html.php:256
get_site_country_checkboxes($selected_site_country_array=null, $field_name= 'site_country')
Créer les options pour le select qui liste les noms de pays de visiteurs configurés.
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
affiche_formulaire_home(&$frm)
affiche_formulaire_home()
Definition: html.php:147
affiche_formulaire_modif_home($id, &$frm)
Affiche le formulaire de modification pour la zone HTML sélectionnée.
Definition: html.php:117
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
real_escape_string($value)
real_escape_string()
Definition: database.php:374
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
maj_home($id, $frm)
maj_home()
Definition: html.php:290
vb(&$var, $default=null)
Variable blanche if $var n'est pas défini, retourne $default, sinon retourne $var.
Definition: format.php:97
$GLOBALS['DOC_TITLE']
Definition: html.php:20
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
num_rows($query_result)
num_rows()
Definition: database.php:321
fetch_assoc($query_result)
fetch_assoc()
Definition: database.php:283
affiche_liste_home()
affiche_liste_home()
Definition: html.php:310
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
$frm
Definition: html.php:23
$form_error_object
Definition: html.php:24
get_form_token_input($name= 'general', $use_existing_token=true, $return_as_input_form=true)
get_form_token_input()
Definition: fonctions.php:94
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
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
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...
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']
get_country_name($id)
Renvoie le nom d'un pays.
Definition: fonctions.php:856

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