예제 #1
0
<TD class=record bgcolor=#FFDFB0   width=370 align=left><strong>Name</strong></TD>
<TD class=sbecord bgcolor=#FFDFB0  width=370 align=left><?php 
        echo htmlentities($res->get('full_name'));
        ?>
</TD>
</TR>
<TR><TD class=sbecord bgcolor=#FFFFCC  width=370 align=left><strong>Field of Work</strong></TD>
<TD class=becord bgcolor=#FFFFCC  width=370 align=left><?php 
        echo htmlentities($res->get('work_type'));
        ?>
</TD></TR> 
<TR>
<TD class=sbecord bgcolor=#FFFFCC  width=370 align=left><strong>Personal Email</strong></TD>
<TD class=becord bgcolor=#FFFFCC  width=370 align=left>
<?php 
        echo XMEC::pref_print(htmlentities($res->get('personal_email')), $res->getPref('personal_email'), $auth);
        ?>
</TD>
</TR>
<TR>
<TD class=sbecord bgcolor=#FFFFCC  width=370 align=left><strong>Official Email</strong></TD>
<TD class=becord bgcolor=#FFFFCC  width=370 align=left>
<?php 
        echo XMEC::pref_print(htmlentities($res->get('official_email')), $res->getPref('official_email'), $auth);
        ?>
</TD>
</TR>
<?php 
        if ($comp_addr->get('house_name') != "" && ($comp_addr->get('visibility') == 'PUBLIC' || $comp_addr->get('visibility') == 'XMEC' && $auth)) {
            ?>
예제 #2
0
$action = chop($HTTP_POST_VARS["todo"]);
if ($REQUEST_METHOD == "GET") {
    $action = chop($HTTP_GET_VARS["todo"]);
}
$me =& XMEC::getUser();
$user = $me;
$admin = FALSE;
if ($me->isAdmin() && isset($id) && $id != "" && $_s == 1) {
    $admin = TRUE;
    $user = new XMEC_user($id);
    if (!$user->fetchInfo()) {
        echo "<html><h1>ID not found !</html>";
        exit;
    }
}
$pemail_pref = $user->getPref('personal_email');
$oemail_pref = $user->getPref('official_email');
$curr_visib = $user->getAddressVisibility('PRESENT');
$comp_visib = $user->getAddressVisibility('COMPANY');
$perm_visib = $user->getAddressVisibility('PERMANENT');
$pass_st = "";
$email_st = "";
$addr_st = "";
if ($action == "update") {
    // Password change..
    if (!empty($passwd1) || !empty($passwd2) || !empty($passwd3)) {
        if (!$admin && $passwd1 == "") {
            $pass_st = "Please enter the old password";
        } else {
            if (passwd2 != "" && $passwd3 != "") {
                if ($passwd2 != $passwd3) {