15 include(
"configuration.inc.php");
17 define(
'IN_COMPTE',
true);
22 if (
est_identifie() && !empty($_GET[
'unsubscribe_account']) && !empty(
$GLOBALS[
'site_parameters'][
'disable_account_by_user_in_front_office'])) {
23 $sql =
"UPDATE peel_utilisateurs SET `etat`=0 WHERE id_utilisateur=" . intval(
$_SESSION[
'session_utilisateur'][
'id_utilisateur']) .
" AND " .
get_filter_site_cond(
'utilisateurs');
25 $_SESSION[
'session_display_popup'][
'message_text'] =
$GLOBALS[
'tplEngine']->createTemplate(
'global_success.tpl', array(
'message' =>
$GLOBALS[
'STR_ACCOUNT_DESACTIVATED']))->fetch();
37 if (
vb($_GET[
'error']) ==
'admin_rights') {
38 $output .=
$GLOBALS[
'tplEngine']->createTemplate(
'global_error.tpl', array(
'message' =>
$GLOBALS[
'STR_NO_RIGHTS_TO_ACCESS_ADMIN']))->fetch();
42 include(
$GLOBALS[
'repertoire_modele'] .
"/haut.php");
44 include(
$GLOBALS[
'repertoire_modele'] .
"/bas.php");
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
redirect_and_die($url, $permanent_redirection=false, $avoid_loop=false)
Redirige vers l'URL demandée et arrête le programme.
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(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']