assign("page_title", $res['firstname']." ".$res['lastname']); //Ist Kontakt $smarty->assign("isContact", isContact($res['user_id'], $_SESSION['user']['user_id'], TRUE)); //Firma if($res['company_id'] > 0) { $query_cmp = mysql_query("select company_name, company_city from companies where company_id = '".$res['company_id']."'", $conn); $res_cmp = mysql_fetch_assoc($query_cmp); $res['company_name_linked'] = $res_cmp['company_name']; mysql_free_result($query_cmp); } //Land $res['country'] = getCountryById($res['country_id'], $_SESSION['language']); //History addHistory("Ihr Mitgliederprofil", "Your member profile", $res['user_id']); $smarty->assign("member", $res); //---------------------------------------------------------------------------------------------- if($_SESSION['user']['user_id']) { //CommunityBoard / Aktivit├Ąten $communityBoard = new CommunityBoard; $communityBoard->userID = $_SESSION['user']['user_id']; $communityBoard->showIntervalDays = 60; $communityBoard->language = $_SESSION['language']; $communityBoard->contributedUserID = $res['user_id']; $smarty->assign("communityBoard", $communityBoard->getCommunityBoard()); } //XAJAX-Funktionen $xajax = new xajax(); $xajax->setFlag('errorHandler', TRUE); $xajax->setFlag('debug', FALSE); $xajax->registerFunction("showCommunityBoard"); $xajax->registerFunction("addCommunityBoardStatus"); $xajax->registerFunction("addCommunityBoardComment"); $xajax->registerFunction("deleteCommunityBoardComment"); $xajax->processRequest(); $smarty->assign("xajax_js", $xajax->getJavascript("/php/")); $smarty->assign("active_section", "members"); $smarty->assign("tplContent", "members/members_view.tpl.html"); $smarty->display("main/main.tpl.html"); ?>