14 define(
'IN_PEEL_ADMIN',
true);
15 define(
'IN_RPC',
true);
16 define(
'LOAD_NO_OPTIONAL_MODULE',
true);
17 define(
'SKIP_SET_LANG',
true);
18 include(
"../configuration.inc.php");
20 if (!empty($_GET[
'encoding'])) {
32 if(
vb($_GET[
'mode']) ==
'countries' &&
a_priv(
"admin_manage")) {
33 $sql =
"UPDATE peel_pays
36 }
elseif(
vb($_GET[
'mode']) ==
'langues' &&
a_priv(
"admin_manage")) {
37 $sql =
"UPDATE peel_langues
41 $sql =
"UPDATE peel_types
44 }
elseif(
vb($_GET[
'mode']) ==
'tailles' &&
a_priv(
"admin_products")) {
45 $sql =
"UPDATE peel_tailles
48 }
elseif(
vb($_GET[
'mode']) ==
'couleurs' &&
a_priv(
"admin_products")) {
49 $sql =
"UPDATE peel_couleurs
52 }
elseif(
vb($_GET[
'mode']) ==
'paiement' &&
a_priv(
"admin_manage")) {
53 $sql =
"UPDATE peel_paiement
56 }
elseif(
vb($_GET[
'mode']) ==
'statut_paiement' &&
a_priv(
"admin_manage")) {
57 $sql =
"UPDATE peel_statut_paiement
60 }
elseif(
vb($_GET[
'mode']) ==
'references' &&
a_priv(
"admin_products")) {
61 $sql =
"UPDATE peel_references
64 }
elseif(
vb($_GET[
'mode']) ==
'statut_livraison' &&
a_priv(
"admin_manage")) {
65 $sql =
"UPDATE peel_statut_livraison
71 foreach($_POST[
'sortable'] as $this_form_position => $this_id) {
73 $this_position = $this_form_position + 1;
75 query(sprintf(
$sql, intval($this_position), intval($this_id)));
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.
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))
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 ...