get_sql_row("SELECT username, enable_aboutme_page, aboutme_page_content, shop_account_id, shop_active FROM " . DB_PREFIX . "users WHERE user_id='" . intval($_REQUEST['user_id']) . "'"); $item = new item(); $item->setts = &$setts; $item->layout = &$layout; $shop = new shop(); $shop_status = $shop->shop_status($user_details); if ($item->count_contents($user_details)) { if ($user_details['enable_aboutme_page']) { $message_header = MSG_MM_ABOUT_ME . ' - ' . $user_details['username']; $message_content = ' '. ' '. ' '. ' '. '
' . $db->add_special_chars($user_details['aboutme_page_content']) . '
'; } else if ($shop_status['enabled']) { header_redirect('shop.php?user_id=' . $_REQUEST['user_id']); } else { $message_header = MSG_MM_ABOUT_ME . ' - ' . $user_details['username']; $message_content = '

' . MSG_ABOUT_ME_PAGE_DISABLED . '

'; } } else { $message_header = MSG_ERROR; $message_content = '

' . MSG_USER_DOESNT_EXIST . '

'; } $template->set('message_header', header5($message_header)); $template->set('message_content', $message_content); $template_output .= $template->process('single_message.tpl.php'); include_once ('global_footer.php'); echo $template_output; ?>