<td colspan="2" align="center" class="tablef">
            <input type="submit" name="change_password" value="{$title}" class="button">
        </td>
    </tr>
    </form>

EOT;
        endtable();
        pagefooter();
        ob_end_flush();
        break;
        // ------------------------------------------------------------------------- //
    // ------------------------------------------------------------------------- //
    default:
        if (defined('UDB_INTEGRATION')) {
            $user_data = udb_get_user_infos($uid);
        } else {
            $sql = "SELECT user_name, user_email, UNIX_TIMESTAMP(user_regdate) as user_regdate, group_name, " . "user_location, user_interests, user_website, user_occupation " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_USERGROUPS']} AS g ON user_group = group_id " . "WHERE user_id ='{$uid}'";
            $result = db_query($sql);
            if (!mysql_num_rows($result)) {
                cpg_die(ERROR, $lang_register_php['err_unk_user'], __FILE__, __LINE__);
            }
            $user_data = mysql_fetch_array($result);
            mysql_free_result($result);
        }
        if ($FORBIDDEN_SET != "") {
            $FORBIDDEN_SET = "AND {$FORBIDDEN_SET}";
        }
        $query = "SELECT count(*), MAX(pid) FROM {$CONFIG['TABLE_PICTURES']} AS p WHERE owner_id = '{$uid}' AND approved = 'YES' {$FORBIDDEN_SET}";
        $result = db_query($query);
        $nbEnr = mysql_fetch_array($result);
require 'include/mailer.inc.php';
if (!USER_CAN_SEND_ECARDS) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
//print_r(get_defined_constants());
function get_post_var($name, $default = '')
{
    global $HTTP_POST_VARS;
    return isset($HTTP_POST_VARS[$name]) ? $HTTP_POST_VARS[$name] : $default;
}
$pid = (int) $HTTP_GET_VARS['pid'];
$album = $HTTP_GET_VARS['album'];
$pos = (int) $HTTP_GET_VARS['pos'];
$sender_name = get_post_var('sender_name', USER_NAME ? USER_NAME : (isset($USER['name']) ? $USER['name'] : ''));
if (defined('UDB_INTEGRATION') and USER_ID) {
    $USER_DATA = array_merge($USER_DATA, udb_get_user_infos(USER_ID));
}
if ($USER_DATA['user_email']) {
    $sender_email = $USER_DATA['user_email'];
    $sender_box = $sender_email;
} else {
    $sender_email = get_post_var('sender_email', $USER['email'] ? $USER['email'] : '');
    $sender_box = "<input type=\"text\" class=\"textinput\" value=\"{$sender_email}\" name=\"sender_email\" style=\"WIDTH: 100%;\">";
}
$recipient_name = get_post_var('recipient_name');
$recipient_email = get_post_var('recipient_email');
$greetings = get_post_var('greetings');
$message = get_post_var('message');
$sender_email_warning = '';
$recipient_email_warning = '';
// Get picture thumbnail url