Update 2 files

- /include/functions.php
- /html/users/index.php
This commit is contained in:
Jan BELLON 2024-03-14 23:03:03 +00:00
parent 2c7bee4bf2
commit 1c3183f565
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ if(isset($_GET['u']) && empty($_GET['u']) == false) {
<div class="user-level">
<?php
if($userLevel > 1) {
echo '<svg class="certification" viewBox="0 0 22 22" aria-label="Compte certifié" role="img"><g><path d="M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z"></path></g></svg>';
echo '<svg class="certification" viewBox="0 0 22 22" aria-label="Compte certifié" role="img"><g><path class="cls-1" d="M959.75,457.79l-37.33-41.28c-13.58-15.01-19.1-35.64-14.85-55.43l11.69-54.41c6.79-31.59-11.46-63.19-42.21-73.11l-52.97-17.08c-19.26-6.21-34.36-21.31-40.57-40.57l-17.08-52.97c-9.92-30.75-41.51-49-73.11-42.21l-54.41,11.69c-19.79,4.25-40.41-1.27-55.43-14.85l-41.28-37.33c-23.96-21.67-60.45-21.67-84.42,0l-41.28,37.33c-15.01,13.58-35.64,19.1-55.43,14.85l-54.41-11.69c-31.59-6.79-63.19,11.46-73.11,42.21l-17.08,52.97c-6.21,19.26-21.31,34.36-40.57,40.57l-52.97,17.08c-30.75,9.92-49,41.51-42.21,73.11l11.69,54.41c4.25,19.79-1.27,40.41-14.85,55.43l-37.33,41.28c-21.67,23.97-21.67,60.45,0,84.42l37.33,41.28c13.58,15.01,19.1,35.64,14.85,55.43l-11.69,54.41c-6.79,31.59,11.46,63.19,42.21,73.11l52.97,17.08c19.26,6.21,34.36,21.31,40.57,40.57l17.08,52.97c9.92,30.75,41.51,49,73.11,42.21l54.41-11.69c19.79-4.25,40.41,1.28,55.43,14.85l41.28,37.33c23.97,21.67,60.45,21.67,84.42,0l41.28-37.33c15.01-13.58,35.64-19.1,55.43-14.85l54.41,11.69c31.59,6.79,63.19-11.46,73.11-42.21l17.08-52.97c6.21-19.26,21.31-34.36,40.57-40.57l52.97-17.08c30.75-9.92,49-41.51,42.21-73.11l-11.69-54.41c-4.25-19.79,1.28-40.41,14.85-55.43l37.33-41.28c21.67-23.96,21.67-60.45,0-84.42ZM749.62,426.54l-288.48,288.48c-15.74,15.74-41.25,15.74-56.99,0l-153.77-153.77c-20.45-20.45-20.45-53.62,0-74.07,20.45-20.45,53.62-20.45,74.07,0l108.19,108.19,242.91-242.91c20.46-20.45,53.62-20.45,74.07,0,20.45,20.45,20.45,53.62,0,74.07Z"/></g></svg>';
}
?>
</div>

View File

@ -130,7 +130,7 @@
echo ($userDisplayName);
if ($userLevel > 1) {
echo ('<svg class="certification" fill="' . $certificationColors[$userLevel] . '" viewBox="0 0 22 22" aria-label="' . $userLevels[$userLevel] . '" role="img">');
echo ('<g><path d="M20.396 11c-.018-.646-.215-1.275-.57-1.816-.354-.54-.852-.972-1.438-1.246.223-.607.27-1.264.14-1.897-.131-.634-.437-1.218-.882-1.687-.47-.445-1.053-.75-1.687-.882-.633-.13-1.29-.083-1.897.14-.273-.587-.704-1.086-1.245-1.44S11.647 1.62 11 1.604c-.646.017-1.273.213-1.813.568s-.969.854-1.24 1.44c-.608-.223-1.267-.272-1.902-.14-.635.13-1.22.436-1.69.882-.445.47-.749 1.055-.878 1.688-.13.633-.08 1.29.144 1.896-.587.274-1.087.705-1.443 1.245-.356.54-.555 1.17-.574 1.817.02.647.218 1.276.574 1.817.356.54.856.972 1.443 1.245-.224.606-.274 1.263-.144 1.896.13.634.433 1.218.877 1.688.47.443 1.054.747 1.687.878.633.132 1.29.084 1.897-.136.274.586.705 1.084 1.246 1.439.54.354 1.17.551 1.816.569.647-.016 1.276-.213 1.817-.567s.972-.854 1.245-1.44c.604.239 1.266.296 1.903.164.636-.132 1.22-.447 1.68-.907.46-.46.776-1.044.908-1.681s.075-1.299-.165-1.903c.586-.274 1.084-.705 1.439-1.246.354-.54.551-1.17.569-1.816zM9.662 14.85l-3.429-3.428 1.293-1.302 2.072 2.072 4.4-4.794 1.347 1.246z"></path></g>');
echo ('<g><path class="cls-1" d="M959.75,457.79l-37.33-41.28c-13.58-15.01-19.1-35.64-14.85-55.43l11.69-54.41c6.79-31.59-11.46-63.19-42.21-73.11l-52.97-17.08c-19.26-6.21-34.36-21.31-40.57-40.57l-17.08-52.97c-9.92-30.75-41.51-49-73.11-42.21l-54.41,11.69c-19.79,4.25-40.41-1.27-55.43-14.85l-41.28-37.33c-23.96-21.67-60.45-21.67-84.42,0l-41.28,37.33c-15.01,13.58-35.64,19.1-55.43,14.85l-54.41-11.69c-31.59-6.79-63.19,11.46-73.11,42.21l-17.08,52.97c-6.21,19.26-21.31,34.36-40.57,40.57l-52.97,17.08c-30.75,9.92-49,41.51-42.21,73.11l11.69,54.41c4.25,19.79-1.27,40.41-14.85,55.43l-37.33,41.28c-21.67,23.97-21.67,60.45,0,84.42l37.33,41.28c13.58,15.01,19.1,35.64,14.85,55.43l-11.69,54.41c-6.79,31.59,11.46,63.19,42.21,73.11l52.97,17.08c19.26,6.21,34.36,21.31,40.57,40.57l17.08,52.97c9.92,30.75,41.51,49,73.11,42.21l54.41-11.69c19.79-4.25,40.41,1.28,55.43,14.85l41.28,37.33c23.97,21.67,60.45,21.67,84.42,0l41.28-37.33c15.01-13.58,35.64-19.1,55.43-14.85l54.41,11.69c31.59,6.79,63.19-11.46,73.11-42.21l17.08-52.97c6.21-19.26,21.31-34.36,40.57-40.57l52.97-17.08c30.75-9.92,49-41.51,42.21-73.11l-11.69-54.41c-4.25-19.79,1.28-40.41,14.85-55.43l37.33-41.28c21.67-23.96,21.67-60.45,0-84.42ZM749.62,426.54l-288.48,288.48c-15.74,15.74-41.25,15.74-56.99,0l-153.77-153.77c-20.45-20.45-20.45-53.62,0-74.07,20.45-20.45,53.62-20.45,74.07,0l108.19,108.19,242.91-242.91c20.46-20.45,53.62-20.45,74.07,0,20.45,20.45,20.45,53.62,0,74.07Z"/></g>');
echo ('</svg>');
}
echo ('</div>');