14 define(
'IN_PEEL_ADMIN',
true);
15 define(
'IN_RPC',
true);
16 include(
"../configuration.inc.php");
18 if (!empty($_GET[
'encoding'])) {
27 }
elseif(
vb($_POST[
'mode']) ==
'delivery_status' && !empty(
$GLOBALS[
'site_parameters'][
'statut_livraison_picto'][$_POST[
'new_status']])) {
28 query(
"UPDATE peel_commandes
29 SET id_statut_livraison ='" . intval($_POST[
'new_status']) .
"'
31 $output .=
$GLOBALS[
'administrer_url'] .
'/images/' .
$GLOBALS[
'site_parameters'][
'statut_livraison_picto'][$_POST[
'new_status']];
36 if(
$mode ==
'langues') {
37 $new_status = ($_POST[
'current_status']+2)%3-1;
39 $new_status = 1-$_POST[
'current_status'];
42 if(
$mode ==
'countries' &&
a_priv(
"admin_manage")) {
43 $sql =
"UPDATE peel_pays
47 $sql =
"UPDATE peel_types
51 $sql =
"UPDATE peel_tailles
55 $sql =
"UPDATE peel_couleurs
59 $sql =
"UPDATE peel_paiement
68 $sql =
"UPDATE peel_admins_contacts_planified
72 $sql =
"UPDATE peel_devises
76 $sql =
"UPDATE peel_banniere
80 $sql =
"UPDATE peel_avis
84 $sql =
"UPDATE peel_nom_attributs
88 $sql =
"UPDATE peel_articles
92 $sql =
"UPDATE peel_rubriques
96 $sql =
"UPDATE peel_produits
107 $sql =
"UPDATE peel_marques
111 $sql =
"UPDATE peel_langues
115 $sql =
"UPDATE peel_html
124 $sql =
"UPDATE peel_email_template
128 $sql =
"UPDATE peel_codes_promos
132 $sql =
"UPDATE peel_categories
136 $sql =
"UPDATE peel_lexique
140 $sql =
"UPDATE peel_configuration
145 $sql =
"UPDATE peel_abus_comment
146 SET status='%s', id_admin='".intval(
$_SESSION[
'session_utilisateur'][
'id_utilisateur']).
"', status_change_date='".date(
'Y-m-d H:i:s').
"'
149 $function_name =
'rpc_status_'.$mode;
150 $new_status = $function_name($_POST);
152 if(empty($function_name)) {
156 call_module_hook(
'rpc_status', array(
'new_status' => $new_status,
'current_status' => $_POST[
'current_status'],
'id' => intval($_POST[
'id']),
'mode' =>
$mode));
157 if(isset($new_status)) {
static convert_encoding($string, $new_encoding, $original_encoding=null)
Converts the character encoding of string $string to $new_encoding from optionally $original_encoding...
output_general_http_header($page_encoding=null, $cache_duration_in_seconds=null)
Envoie les headers avant l'envoi du HTML.
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 ...
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.
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.
if(!defined('IN_PEEL')) est_identifie()
Retourne true si l'utilisateur est identifié
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))
call_module_hook($hook, $params, $mode= 'boolean')
Appelle la fonction correspondant au $hook pour chaque module installé La fonction doit s'appeler : [...
$GLOBALS['page_columns_count']
if(!check_if_module_active('search')) $page_encoding
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 ...
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']