listMemberTransactions($option); break; case 'addbicycle': addBicycle($option); break; case 'savenewbicycle': saveNewBicycle($option); break; case 'startclass': startClass($option); break; case 'saveclass': saveClass($option); break; default: showMemberInfo($option); break; } function linkMember($option) { $user =& JFactory::getUser(); if (!($user->get("id") == 0)) { $db =& JFactory::getDBO(); $query = "SELECT id from #__cbodb_members WHERE emailAddress = '" . $user->get("email") . "'"; //echo $query; $db->setQuery($query); $rows = $db->loadObjectList(); //echo "<pre>"; //print_r($user); //echo "</pre><br>user email is ".$user->get("email")."<br>"; //echo "count is: ".count($rows).'<br>';
if (updateMemberPublish($_SESSION['loginID'])) { $msg[] = 'Information de publication mise à jour.'; } else { $err[] = 'Erreur pour la mise à jour des informations de publication.'; } } } // end update // we should ask login or show the member information? if (!isset($_SESSION['loginID'])) { $document_title = 'Connexion Membre'; include '../header.php'; showErr($err); showMsg($msg); showLoginForm(); include '../footer.php'; } else { $document_title = 'Fiche Membre'; include '../header.php'; showErr($err); showMsg($msg); showMemberInfo($_SESSION['loginID']); showMemberChangePassword(); showInvoice($_SESSION['loginID']); showMemberPublish($_SESSION['loginID']); echo '<div class="command"> <p><a href="?action=logoff">Se déconnecter</a></p> <p><a href="mailto:membership@facil.qc.ca">Contacter Facil</a></p> </div>'; include '../footer.php'; }