<?php require_once('includes/requirelogin.inc.php'); require_once('includes/memberinfo.inc.php'); $CMD_TMPL_NAME='memberinfo'; $mb_id=current_mb_id(); $op=TGET('op'); $dataset['INPUT']=array(0); $dataset['MODIFY-ASUSER']=array(0); $dataset['ENTERING']=array(0); $dataset['INFO-SUPPLEMENT']=$op=='supplement'?array(0):array(); if ($op=='revise' && $_SESSION['uniwits.inputcache.domain']=='member') { $member=$_SESSION['uniwits.inputcache.data']; $dataset+=$_SESSION['uniwits.inputcache.errorareas']; } else { $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,true); ?>