Kabano is a PHP web application listing alpine huts. https://kabano.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

d.user.profile.html 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <? include('blocks/d.head.html'); ?>
  4. <body>
  5. <? include('blocks/d.nav.html'); ?>
  6. <section id="profile">
  7. <? if ($userProfile->id != 0) { ?>
  8. <h1><?=$userProfile->name?></h1>
  9. <? if($user->rankIsHigher("moderator") || $user->id == $userProfile->id) { ?>
  10. <a class="subtitle" id="editprofile" href="<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>/edit"><i class="fas fa-pencil-alt"></i> Éditer les paramètres du compte</a>
  11. <? } ?>
  12. <article>
  13. <div id="profilepart">
  14. <? if(isset($mailsent) AND $mailsent==1) { ?>
  15. <p style="color: #006600;">Le message a bien été envoyé.</p>
  16. <? } ?>
  17. <aside class="<?=$userProfile->is_avatar_present=='t'?'':'no'?>avatar">
  18. <img alt="Avatar" id="profileavatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$userProfile->id?>_p.jpg" alt="Profile picture">
  19. <i id="profilenoavatar" class="fas fa-user-secret"></i>
  20. </aside>
  21. <div id="description">
  22. <p>Langue : <?=$userProfile->get_locale()?></p>
  23. <p>Inscrit le <? echo strftime('%e %B %G, %kh%Mm%Ss',strtotime($userProfile->register_date)) ?> <small><abbr title="Temps Universel Coordonné">UTC</abbr></small></p>
  24. <p>Dernière connexion le <? echo strftime('%e %B %G, %kh%Mm%Ss',strtotime($userProfile->visit_date)) ?> <small><abbr title="Temps Universel Coordonné">UTC</abbr></small></p>
  25. <p><?=$userProfile->get_rank()?></p>
  26. <p>
  27. <? if ($userProfile->website != "") { ?>
  28. <a target="_blank" href="<?=$userProfile->website?>">Site internet <span class="external-link"><i class="fas fa-external-link-alt"></i></span></a>
  29. <? }
  30. if ($userProfile->website != "" AND $userProfile->id != $user->id) { ?>
  31. &mdash;
  32. <? }
  33. if ($userProfile->id != $user->id) { ?>
  34. <a href="#" onclick="$('#profilepart').hide(0, function(){$('#contact').show('fast');});">Contacter par mail</a>
  35. <? }
  36. if ($user->rankIsHigher("premium") AND ($userProfile->website != "" OR $userProfile->id != $user->id)) { ?>
  37. &mdash;
  38. <? }
  39. if ($user->rankIsHigher("premium")) { ?>
  40. <a href="mailto:<?=$userProfile->email?>"><?=$userProfile->email?></a>
  41. <? } ?>
  42. </p>
  43. </div>
  44. <div style="clear:both;"></div>
  45. </div>
  46. <? if ($userProfile->id != $user->id) { ?>
  47. <form style="display:none;" class="form" id="contact" action="<?=$config['rel_root_folder']?>user/p/<?=$userProfile->id?>" method="post" >
  48. <textarea rows="12" name="message" id="message" placeholder="Votre message"></textarea>
  49. <p><i>Votre adresse email sera transmise à votre destinataire.</i></p>
  50. <input type="submit" name="submit" value="Envoyer">
  51. </form>
  52. <? } ?>
  53. </article>
  54. <? } else { ?>
  55. <p style="color:red;">Le profil demandé n'existe pas.</p>
  56. <? } ?>
  57. </section>
  58. <? include('blocks/d.footer.html'); ?>
  59. </body>
  60. </html>