<?php require_once('includes/requirelogin.inc.php'); require_once('includes/memberinfo.inc.php'); $CMD_TMPL_NAME='memberinfo'; $op=TGET('op'); $mb_id=current_mb_id(); $dataset['INFO-ASUSER']=array(0); $dataset['CONFIRM']=array(0); $dataset['SECTION-LOGIN']=array(0); $dataset['SECTION-MB-ID']=array(0); $dataset['MODIFY-SAVE-OK']=$op=='saved.ok' || $op=='saved.ok.cert'?array(0):array(); $dataset['CERTIFYMAIL-SENT']=$op=='saved.ok.cert'?array(0):array(); $DBConn->connect(true); member_refresh_login($DBConn); $member=db_load_member($DBConn,$mb_id); $member+=db_load_member_info($DBConn,$mb_id); $member['EMAIL']=array_projection(db_load_member_emails($DBConn,$mb_id,false),'mb_email'); $member['PHONE']=array_projection(db_load_member_phones($DBConn,$mb_id),'mb_phone'); $dataset['mb_login']=basic_member_info('mb_login'); $dataset+=prepare_member_info_dataset($member,false,false); ?>