PEEL Shopping
Open source ecommerce : PEEL Shopping
voir.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: voir.php 46935 2015-09-18 08:49:48Z gboussin $
14 
15 include("../../configuration.inc.php");
16 
17 if (!check_if_module_active('pensebete')) {
18  // This module is not activated => we redirect to the homepage
19  redirect_and_die(get_url('/'));
20 }
21 
23 
24 define('IN_PENSE_BETE', true);
25 if(! empty($_GET['mode'])){
26  if($_GET['mode']== 'delete'){
27  if(!empty($_GET['id'])){
28  $sql_delete= 'DELETE FROM peel_pensebete
29  WHERE id='.intval($_GET['id']). (!a_priv('admin*', false)?' AND id_utilisateur="' . intval($_SESSION['session_utilisateur']['id_utilisateur']) . '"':'');
30  query($sql_delete);
31  }
32  }
33 }
34 
35 include($GLOBALS['repertoire_modele'] . "/haut.php");
36 if(check_if_module_active('annonces')) {
37  display_ads_in_reminder();
38  echo '<br />';
39 }
41 include($GLOBALS['repertoire_modele'] . "/bas.php");
42 
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
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
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
$GLOBALS['page_columns_count']
a_priv($requested_priv, $demo_allowed=false, $site_configuration_modification=false, $user_id=null)
Renvoie true si l'utilisateur de la session a le privilège $requested_priv ou un droit supérieur Des ...
Definition: user.php:63
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...
display_product_in_reminder($return_mode=false)
Definition: fonctions.php:88
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:41:33 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.