if ($user_statut == "visiteur") { $text_user_statut = get_vocab("statut_visitor"); } else { if ($user_statut == "gestionnaire_utilisateur") { $text_user_statut = get_vocab("statut_user_administrator"); } else { if ($user_statut == "administrateur") { $text_user_statut = get_vocab("statut_administrator"); } else { $text_user_statut = $user_statut; } } } } echo '<tr><td><b>' . get_vocab('statut') . get_vocab('deux_points') . '</b></td><td>' . $text_user_statut . '</td></tr></table>'; if (IsAllowedToModifyProfil()) { echo '<p>(' . get_vocab('required') . ')</p>'; if (trim($user_nom) == "" || trim($user_prenom) == '') { echo "\n" . ' <h2 class="avertissement">' . get_vocab('nom_prenom_valides') . '</h2>'; } } if (IsAllowedToModifyMdp()) { echo ' <div><br /> <br /> <table border="0" width="100%"> <tr> <td onclick="clicMenu(\'1\')" class="fontcolor4" style="cursor: inherit" align="center"> <span class="bground"> <b><a href="#">' . get_vocab('click_here_to_modify_pwd') . '</a></b> </span>
/** * @param string $type */ function VerifNomPrenomUser($type) { // ne pas prendre en compte la page my_account.php global $desactive_VerifNomPrenomUser; if ($type == "with_session" && $desactive_VerifNomPrenomUser != 'y' && IsAllowedToModifyProfil()) { $test = grr_sql_query1("SELECT login FROM " . TABLE_PREFIX . "_utilisateurs WHERE (login = '******' AND (nom='' or prenom = ''))"); if ($test != -1) { header("Location:my_account.php"); die; } } }
function VerifNomPrenomUser($type) { global $desactive_VerifNomPrenomUser; // ne pas prendre en compte la page my_account.php if (($type == "with_session") and ($desactive_VerifNomPrenomUser!='y') and (IsAllowedToModifyProfil())) { $test = grr_sql_query1("select login from ".TABLE_PREFIX."_utilisateurs where (login = '******' and (nom='' or prenom = ''))"); if ($test != -1) { header("Location:my_account.php"); die(); } } }