{source}<?php
$user = JFactory::getUser();
$username_id = $user->username;
if ($user->username == 'philippe.aubry'){$username_id = 107;}
if ($user->username == 'mradmin'){$username_id = 107;}
if ( $user->username <>''){
$key_password = "mgcf2023newsite";
$username_id = openssl_encrypt($username_id, "AES-128-ECB" ,$key_password);
echo '<div class="readhesion-button" id="readhesionButton" style="text-align:center;">
<form action="https://adhesion.mgclubdefrance.com/tableau-de-bord/gestion-re-adhesion/" method="get">
<input type="hidden" name="userid" value="'.$username_id.'">
<input type="submit" name="Submit" class="btn btn-primary" value="VOIR MON PROFIL">
</form>
</div>';
}
?>{/source}