14 if (!defined(
'IN_PEEL')) {
15 define(
'IN_PEEL',
true);
23 if (version_compare(PHP_VERSION,
'5.4',
'>=')) {
26 @error_reporting(E_ALL & ~E_STRICT);
28 @error_reporting(E_ALL);
30 if (version_compare(PHP_VERSION,
'5.1.2',
'<')) {
33 echo
'<div>PHP ' . PHP_VERSION .
' < 5.1.2 => check .htaccess or your server configuration to enable PHP >= 5.2</div>';
46 define(
'PEEL_VERSION',
'8.0.0');
47 if (!defined(
'IN_CRON')) {
48 define(
'GENERAL_ENCODING',
'utf-8');
50 if (!defined(
'IN_INSTALLATION')) {
51 define(
'IN_INSTALLATION',
false);
60 include(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/fonctions.php");
65 $GLOBALS[
'script_start_time'] = array_sum(explode(
' ', microtime()));
66 $GLOBALS[
'notification_output_array'] = array();
72 $GLOBALS[
'site_parameters'][
'mysql_extension'] =
'mysqli';
73 $GLOBALS[
'site_parameters'][
'backoffice_directory_name'] =
'administrer';
74 $GLOBALS[
'site_parameters'][
'cache_folder'] =
'cache';
75 $GLOBALS[
'site_parameters'][
'css'] =
'screen.css';
76 $GLOBALS[
'site_parameters'][
'sha256_encoding_salt'] =
"k)I8#;z=TIxnXmIPdW2TRzt4Ov89|#V~cU@]";
78 $GLOBALS[
'site_parameters'][
'complete_lang_files'] = array(
'fr',
'en',
'es');
79 $GLOBALS[
'site_parameters'][
'display_warning_if_connection_problem'] =
true;
80 $GLOBALS[
'site_parameters'][
'session_cookie_basename'] =
'sid';
81 $GLOBALS[
'site_parameters'][
'bootstrap_enabled'] =
true;
82 $GLOBALS[
'site_parameters'][
'only_show_products_with_picture_in_containers'] =
true;
87 $GLOBALS[
'site_parameters'][
'quotation_delay'] = null;
89 $GLOBALS[
'site_parameters'][
'commission_affilie'] = null;
92 if(
$GLOBALS[
'site_parameters'][
'mysql_extension'] ==
'mysqli' && !class_exists(
'mysqli')) {
93 $GLOBALS[
'site_parameters'][
'mysql_extension'] =
'mysql';
97 foreach(explode(
',', str_replace(array(
' ',
';'), array(
',',
','),
$GLOBALS[
'ip_for_debug_mode'])) as $this_ip_part) {
98 if (!empty($this_ip_part) && ($this_ip_part ==
'*' || strpos($_SERVER[
'REMOTE_ADDR'], $this_ip_part) === 0)) {
99 define(
'PEEL_DEBUG',
true);
100 define(
'DEBUG_TEMPLATES',
true);
107 if (!isset($_SERVER[
'REQUEST_URI'])) {
108 $_SERVER[
'REQUEST_URI'] = $_SERVER[
'PHP_SELF'];
109 if (!empty($_SERVER[
'QUERY_STRING'])) {
110 $_SERVER[
'REQUEST_URI'] .=
'?' . $_SERVER[
'QUERY_STRING'];
114 if (empty($_SERVER[
"HTTP_HOST"])) {
116 $_SERVER[
"HTTP_HOST"] =
'127.0.0.1';
123 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/database.php");
127 $GLOBALS[
'installation_folder_active'] =
true;
130 require(
$GLOBALS[
'dirroot'] .
"/lib/setup/info.inc.php");
132 if (!empty($_SERVER[
"HTTP_HOST"])) {
133 $GLOBALS[
'detected_wwwroot'] =
'http://' . $_SERVER[
"HTTP_HOST"] . substr(
$GLOBALS[
'apparent_folder'], 0, strlen(
$GLOBALS[
'apparent_folder']) - 1);
134 if (empty(
$GLOBALS[
'wwwroot']) || substr(
$GLOBALS[
'wwwroot'], 0, 4) !==
'http') {
139 }
elseif(!defined(
'IN_CRON')) {
142 $temp_array = explode(
'/',
$GLOBALS[
'wwwroot']);
144 if(!empty($temp_array[2])) {
145 $_SERVER[
"HTTP_HOST"] = $temp_array[2];
147 $_SERVER[
"HTTP_HOST"] =
'';
150 if ((!empty($_SERVER[
'HTTPS']) && $_SERVER[
'HTTPS'] !=
'off') || (isset($_SERVER[
'SERVER_PORT']) && $_SERVER[
'SERVER_PORT'] ===
'443')) {
151 $GLOBALS[
'detected_wwwroot'] = str_replace(
'http://',
'https://',
$GLOBALS[
'detected_wwwroot']);
152 $GLOBALS[
'wwwroot'] = str_replace(
'http://',
'https://',
$GLOBALS[
'wwwroot']);
165 require(
$GLOBALS[
'dirroot'] .
"/lib/class/Module.php");
166 require(
$GLOBALS[
'dirroot'] .
"/lib/class/Cache.php");
167 require(
$GLOBALS[
'dirroot'] .
"/lib/class/String.php");
168 require(
$GLOBALS[
'dirroot'] .
"/lib/class/Caddie.php");
169 require(
$GLOBALS[
'dirroot'] .
"/lib/class/FormError.php");
170 require(
$GLOBALS[
'dirroot'] .
"/lib/class/Multipage.php");
171 require(
$GLOBALS[
'dirroot'] .
"/lib/class/Product.php");
172 require(
$GLOBALS[
'dirroot'] .
"/lib/class/SHA256.php");
173 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/images.php");
174 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/order.php");
175 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/emails.php");
176 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/user.php");
177 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/format.php");
180 if (empty(
$GLOBALS[
'installation_folder_active'])) {
183 die(
'database_object is null');
185 if(!defined(
'IN_CRON')) {
194 $parameters_loaded =
true;
214 if (!isset(
$GLOBALS[
'site_parameters'][
'display_errors_for_ips'])) {
216 }
elseif (!empty(
$GLOBALS[
'site_parameters'][
'display_errors_for_ips'])) {
217 foreach(explode(
',', str_replace(array(
' ',
';'), array(
',',
','),
$GLOBALS[
'site_parameters'][
'display_errors_for_ips'])) as $this_ip_part) {
218 if (!empty($this_ip_part) && ($this_ip_part ==
'*' || strpos($_SERVER[
'REMOTE_ADDR'], $this_ip_part) === 0)) {
225 if (!empty(
$GLOBALS[
'site_parameters'][
'default_socket_timeout'])) {
226 @ini_set(
'default_socket_timeout',
$GLOBALS[
'site_parameters'][
'default_socket_timeout']);
228 @ini_set(
'display_errors',
$GLOBALS[
'display_errors']);
230 if (!empty(
$GLOBALS[
'site_parameters'][
'enable_gzhandler'])) {
231 ob_start(
'ob_gzhandler');
234 require(
$GLOBALS[
'dirroot'] .
'/lib/fonctions/modules_handler.php');
239 if (!empty(
$GLOBALS[
'site_parameters'][
'load_site_specific_files_before_others'])) {
240 foreach(
$GLOBALS[
'site_parameters'][
'load_site_specific_files_before_others'] as $this_file_relative_path) {
241 if(file_exists(
$GLOBALS[
'dirroot'] . $this_file_relative_path)) {
242 include(
$GLOBALS[
'dirroot'] . $this_file_relative_path);
243 if(
String::strpos($this_file_relative_path,
'/modules/') !==
false) {
245 $temp2 = explode(
'/', $temp);
247 $GLOBALS[
'modules_installed'][$temp2[1]] = $temp2[1];
258 foreach(array(
'_POST',
'_GET',
'_COOKIE',
'_REQUEST') as $this_global_array) {
259 if (function_exists(
'array_walk_recursive')) {
261 array_walk_recursive($$this_global_array,
'cleanDataDeep');
263 $$this_global_array = array_map(
'cleanDataDeep', $$this_global_array);
268 @set_magic_quotes_runtime(0);
269 foreach(array(
'_POST',
'_GET',
'_COOKIE',
'_REQUEST') as $this_global_array) {
270 if (function_exists(
'array_walk_recursive')) {
271 array_walk_recursive($$this_global_array,
'cleanDataDeep');
273 $$this_global_array = array_map(
'cleanDataDeep', $$this_global_array);
289 if(!empty(
$_SESSION[
'session_install_utilisateur'])) {
300 if(!empty(
$_SESSION[
'session_install_choixbase'])) {
310 require(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/url_standard.php");
319 $GLOBALS[
'load_default_lang_files_before_main_lang_array_by_lang'] = null;
325 include(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/fonctions_admin.php");
333 if(empty(
$GLOBALS[
'admin_lang_codes']) && defined(
'IN_PEEL_ADMIN')) {
344 if(!in_array(
$_SESSION[
'session_langue'],
$GLOBALS[
'site_parameters'][
'complete_lang_files'])) {
347 $GLOBALS[
'load_default_lang_files_before_main_lang_array_by_lang'][
$_SESSION[
'session_langue']] = array(
'en');
349 if(!defined(
'IN_CRON')) {
356 $_SESSION[
'session_langue'] =
check_language($_SESSION[
'session_langue'], (defined(
'IN_PEEL_ADMIN')?
$GLOBALS[
'admin_lang_codes']:
$GLOBALS[
'lang_codes']));
359 if (empty($_POST) && !defined(
'IN_CRON')) {
376 if (!empty(
$GLOBALS[
'lang_url_rewriting'][$_SESSION[
'session_langue']]) && strpos(
$GLOBALS[
'lang_url_rewriting'][$_SESSION[
'session_langue']],
'//') !==
false) {
377 if (
$GLOBALS[
'detected_wwwroot'] !=
$GLOBALS[
'wwwroot'] &&
$GLOBALS[
'detected_wwwroot'] == str_replace(array(
'www.'), array($_SESSION[
'session_langue'] .
'.'),
$GLOBALS[
'wwwroot_main'])) {
396 if (
vb(
$GLOBALS[
'site_parameters'][
'admin_force_ssl'])) {
397 if (defined(
'IN_PEEL_ADMIN')) {
399 if (strpos($_SERVER[
'PHP_SELF'],
'sites.php') ===
false && strpos($_SERVER[
'PHP_SELF'],
'ipn.php') ===
false && (empty($_SERVER[
'HTTPS']) || $_SERVER[
'HTTPS'] ==
'off')) {
407 $GLOBALS[
'site'] =
vb(
$GLOBALS[
'site_parameters'][
'nom_' . $_SESSION[
'session_langue']]);
415 if (empty(
$GLOBALS[
'support_sav_client'])) {
420 if (empty(
$GLOBALS[
'support_commande'])) {
437 if (empty($_SESSION[
'session_devise']) || empty($_SESSION[
'session_devise'][
'code'])) {
443 if (empty($_SESSION[
'session_devise']) || empty($_SESSION[
'session_devise'][
'code'])) {
444 if(!empty(
$GLOBALS[
'site_parameters'][
'code'])) {
447 $_SESSION[
'session_devise'][
'symbole_place'] =
vb(
$GLOBALS[
'site_parameters'][
'symbole_place']);
448 $_SESSION[
'session_devise'][
'conversion'] = 1;
449 $_SESSION[
'session_devise'][
'code'] =
vb(
$GLOBALS[
'site_parameters'][
'code']);
452 $_SESSION[
'session_devise'][
'code'] =
'EUR';
453 $_SESSION[
'session_devise'][
'symbole'] =
' €';
454 $_SESSION[
'session_devise'][
'conversion'] = 1;
455 $_SESSION[
'session_devise'][
'symbole_place'] = 1;
460 if (!defined(
'IN_CRON') && (empty($_SERVER[
'HTTPS']) || $_SERVER[
'HTTPS'] ==
'off') && strpos(
$GLOBALS[
'wwwroot'],
'https://') === 0 && strpos($_SERVER[
'PHP_SELF'],
'sites.php') ===
false && strpos($_SERVER[
'PHP_SELF'],
'ipn.php') ===
false && strpos(
$GLOBALS[
'wwwroot'], $_SERVER[
'HTTP_HOST']) !==
false) {
468 $GLOBALS[
'force_demo_rights'] = (
vb(
$GLOBALS[
'site_parameters'][
'allow_w3c_validator_access_admin']) && strpos($_SERVER[
'REMOTE_ADDR'],
'128.30.52.') === 0 && substr(
vb($_SERVER[
'HTTP_USER_AGENT']),0, 3) ==
'W3C');
471 $_SESSION[
'session_utilisateur'][
'priv'] =
'demo';
472 $_SESSION[
'session_utilisateur'][
'id_utilisateur'] = 9999999999999999999;
473 $_SESSION[
'session_utilisateur'][
'email'] =
'demo@demo.fr';
474 $_SESSION[
'session_utilisateur'][
'prenom'] =
'demo';
475 $_SESSION[
'session_utilisateur'][
'nom_famille'] =
'demo';
476 $_SESSION[
'session_utilisateur'][
'pseudo'] =
'demo';
477 $_SESSION[
'session_utilisateur'][
'site_id'] =
'1';
485 $GLOBALS[
'disable_login_by_privilege'] =
vb(
$GLOBALS[
'site_parameters'][
'disable_login_by_privilege'], array(
'load',
'newsletter',
'stop',
'stand'));
487 handle_template_engine_init((defined(
'DEBUG_TEMPLATES') && DEBUG_TEMPLATES) || (!empty($_GET[
'update']) && $_GET[
'update'] == 1) || (!defined(
'IN_CRON') && (strpos(
$GLOBALS[
'wwwroot'],
'://localhost')!==
false || strpos(
$GLOBALS[
'wwwroot'],
'://127.0.0.1')!==
false)) || empty(
$GLOBALS[
'site_parameters'][
'smarty_avoid_check_template_files_update']));
491 if (file_exists(
$GLOBALS[
'repertoire_modele'] .
"/fonctions/display_custom.php")) {
492 include(
$GLOBALS[
'repertoire_modele'] .
"/fonctions/display_custom.php");
495 include(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/display.php");
496 include(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/display_user_forms.php");
497 include(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/display_product.php");
498 include(
$GLOBALS[
'dirroot'] .
"/lib/fonctions/display_article.php");
503 if (defined(
'IN_PEEL_ADMIN')) {
506 if(!defined(
'IN_RPC')) {
514 if (!isset($_SESSION[
'session_admin_multisite']) && isset(
$GLOBALS[
'site_id'])) {
517 if(count($all_sites_name_array)>1) {
518 $_SESSION[
'session_admin_multisite'] =
$GLOBALS[
'site_id'];
520 $_SESSION[
'session_admin_multisite'] = 0;
523 $GLOBALS[
'disable_google_ads'] =
true;
524 }
elseif(!empty($_GET[
'email']) || !empty($_POST[
'email']) || !empty($_GET[
'mot_passe']) || !empty($_POST[
'mot_passe']) || !empty($_GET[
'password_once']) || !empty($_POST[
'password_once'])) {
526 $GLOBALS[
'disable_google_ads'] =
true;
537 if (!isset($_SESSION[
'session_caddie']) || empty($_SESSION[
'session_caddie'])) {
539 }
elseif (!empty($_SESSION[
'session_caddie']->commande_id)) {
541 $query_com =
query(
"SELECT c.*, sp.nom_" . $_SESSION[
'session_langue'] .
" AS statut_paiement
542 FROM peel_commandes c
543 LEFT JOIN peel_statut_paiement sp ON sp.id=c.id_statut_paiement AND " .
get_filter_site_cond(
'statut_paiement',
'sp') .
"
544 WHERE c.id ='" . intval($_SESSION[
'session_caddie']->commande_id) .
"' AND c.id_utilisateur = '" . intval($_SESSION[
'session_utilisateur'][
'id_utilisateur']) .
"' AND " .
get_filter_site_cond(
'commandes',
'c') .
"");
546 if ($result_com && in_array($result_com->statut_paiement, array(
'being_checked',
'completed'))) {
547 $_SESSION[
'session_caddie']->init();
551 if (!isset($_SESSION[
'session_ariane_panier']) || empty($_SESSION[
'session_ariane_panier'])) {
552 $_SESSION[
'session_ariane_panier'] = array(
'in_caddie' =>
false,
'in_step1' =>
false,
'in_step2' =>
false,
'in_step3' =>
false);
555 if ((!empty($_SERVER[
'HTTP_REFERER']) && strpos($_SERVER[
'HTTP_REFERER'],
'membre') !==
false) && !empty($_SESSION[
'session_redirect_after_login']) && !
est_identifie() && !defined(
'LOAD_NO_OPTIONAL_MODULE') && !defined(
'IN_ACCES_ACCOUNT') && !defined(
'IN_GET_PASSWORD')) {
556 unset($_SESSION[
'session_redirect_after_login']);
560 if (!defined(
'SKIP_SET_LANG')) {
564 if (!defined(
'LOAD_NO_OPTIONAL_MODULE') && !empty(
$GLOBALS[
'site_parameters'][
'load_site_specific_files_after_others'])) {
566 foreach(
$GLOBALS[
'site_parameters'][
'load_site_specific_files_after_others'] as $this_file_relative_path) {
567 if(file_exists(
$GLOBALS[
'dirroot'] . $this_file_relative_path)) {
568 include(
$GLOBALS[
'dirroot'] . $this_file_relative_path);
569 if(
String::strpos($this_file_relative_path,
'/modules/') !==
false) {
571 $temp2 = explode(
'/', $temp);
572 $GLOBALS[
'modules_installed'][$temp2[1]] = $temp2[1];
578 if (!empty(
$GLOBALS[
'installation_folder_active'])) {
580 echo print_delete_installation_folder();
583 if (!empty($_POST[
'password_first_hash']) && !empty($_POST[
'password_length']) && !empty($_POST[
'email_or_pseudo'])) {
585 $utilisateur =
user_login_now($_POST[
'email_or_pseudo'], $_POST[
'password_first_hash'],
true,
true, $_POST[
'password_length']);
594 if(isset($_GET[
'site_country']) && !empty(
$GLOBALS[
'site_parameters'][
'site_country_allowed_array'])) {
595 if(!empty($_SESSION[
'session_country_detected']) && in_array(strval($_SESSION[
'session_country_detected']),
$GLOBALS[
'site_parameters'][
'site_country_modify_allowed_array']) && empty($_SESSION[
'session_utilisateur'][
'site_country'])) {
596 if(in_array(strval($_GET[
'site_country']),
$GLOBALS[
'site_parameters'][
'site_country_allowed_array'])) {
597 $_SESSION[
'session_site_country'] = intval($_GET[
'site_country']);
603 if(!isset($_SESSION[
'session_site_country']) && !empty(
$GLOBALS[
'site_parameters'][
'site_country_allowed_array'])) {
605 if(!empty($_SESSION[
'session_utilisateur'][
'site_country'])) {
606 $_SESSION[
'session_site_country'] = intval($_SESSION[
'session_utilisateur'][
'site_country']);
610 include(
$GLOBALS[
'dirroot'] .
'/modules/geoip/class/geoIP.php');
611 $geoIP =
new geoIP();
612 $_SESSION[
'session_country_detected'] = $geoIP->geoIPCountryIDByAddr($_SERVER[
'REMOTE_ADDR']);
613 $geoIP->geoIPClose();
615 if(in_array(strval($_SESSION[
'session_country_detected']),
$GLOBALS[
'site_parameters'][
'site_country_allowed_array'])) {
616 $_SESSION[
'session_site_country'] = intval($_SESSION[
'session_country_detected']);
620 $_SESSION[
'session_site_country'] = 0;
625 if(!defined(
'PEEL_PREFETCH')) {
set_lang_configuration_and_texts($lang, $load_default_lang_files_before_main_lang_array=null, $general_setup=true, $load_modules_files=true, $load_general_admin_files=true, $exclude_empty_string=true, $skip_load_files=false)
On charge les variables de langue, en complétant éventuellement avec la langue de référence...
load_site_parameters($lang=null, $skip_loading_currency_infos=false, $forced_site_id=null)
On charge les variables de configuration On récupère d'abord les données valables pour tous les sites...
handle_site_suspended()
Affiche ou non le fait que le site est suspendu.
check_language($this_lang, $langs_array)
Vérification de l'existance de la langue, et redirection si nécessaire ou nouvelle langue définie...
static strpos($haystack, $needle, $offset=0)
Returns the numeric position of the first occurrence of needle in the haystack string.
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
static rawurldecode($string, $avoid_slash=false)
Returns rawurldecode.
handle_register_globals()
Empêche les effets de register_globals.
handle_template_engine_init($templates_force_compile=false)
Appelle le moteur de template pour définir $GLOBALS['tplEngine'].
redirect_and_die($url, $permanent_redirection=false, $avoid_loop=false)
Redirige vers l'URL demandée et arrête le programme.
select_db($database_name, &$database_object, $continue_if_error=false)
select_db()
static strtolower($string)
Returns string with all alphabetic characters converted to lowercase.
static strlen($string)
Returns the length of the given string.
if(!defined('IN_PEEL')) db_connect(&$database_object, $database_name=null, $serveur_mysql=null, $utilisateur_mysql=null, $mot_de_passe_mysql=null, $continue_if_error=false)
db_connect()
if(!defined('IN_PEEL')) load_modules($technical_code=null)
Charge les modules Pour obtenir des modules optionnels : Contactez PEEL sur https://www.peel.fr/ ou au 01 75 43 67 97.
get_current_user_promotion_percentage()
Calcule la réduction générale applicable à un utilisateur et garde la valeur en session pour accélére...
if(!function_exists('ipGet')) if(!function_exists('isPublicIP')) is_user_bot($ip=null, $user_agent=null)
Renvoie si le visiteur est un robot ou non.
get_identified_lang($langs_array=array())
On identifie la langue utilisée, et on redirige si cette langue n'est pas activée Pour qu'une langue ...
handle_setup_redirections($url, $mode= 'redirect')
Gère les redirections définies dans $GLOBALS['site_parameters']['redirections'].
if(!defined('IN_CRON')) if(!defined('IN_INSTALLATION')) $GLOBALS['dirroot']
necessite_priv($priv, $demo_allowed=true, $configuration_modification=false)
Cette fonction vérifie si l'utilisateur a les privilèges de $priv.
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))
necessite_identification()
Si l'utilisateur n'est pas connecté à un compte, on affiche une page d'identification et arrête le sc...
handle_sessions()
Gère les sessions PHP et des protections contre des vols de session.
handle_php_default_setup()
Définit les paramètres de base de PHP.
fetch_object($query_result)
fetch_object()
call_module_hook($hook, $params, $mode= 'boolean')
Appelle la fonction correspondant au $hook pour chaque module installé La fonction doit s'appeler : [...
set_current_devise($currency_id_or_code, $reference_country_id=null)
set_current_devise()
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.
account_update()
Met à jour les informations de l'utilisateur connecté, telles que pour de la messagerie interne...
load_active_languages_list($site_id=null)
On charge les variables de listes de langues.
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 ...
static html_entity_decode($string, $quote_style=ENT_COMPAT, $charset=GENERAL_ENCODING)
String::html_entity_decode()
user_login_now($email_or_pseudo, $mot_passe, $check_password=true, $password_given_as_first_password_hash=false, $password_length_if_given_as_first_password_hash=null)
user_login_now()
static substr($string, $start, $length=null)
Returns the portion of string specified by the start and length parameters.
static substr_count($string, $searched)
Returns the number of times the needle substring occurs in the haystack string.
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...
get_apparent_folder()
Renvoyer le répertoire racine apparent de l'URL courante.
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']