本文整理汇总了PHP中format_user_name函数的典型用法代码示例。如果您正苦于以下问题:PHP format_user_name函数的具体用法?PHP format_user_name怎么用?PHP format_user_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了format_user_name函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gettext
} else {
echo " <td align=\"left\" class=\"postbody\" valign=\"top\"><i>", gettext("No Recipients"), "</i></td>\n";
echo " <td align=\"left\" class=\"postbody\" valign=\"top\"><i>", gettext("Not Sent"), "</i></td>\n";
echo " </tr>\n";
}
}
} else {
echo " <td align=\"left\" class=\"postbody\" valign=\"top\">\n";
echo " <a href=\"user_profile.php?webtag={$webtag}&uid={$message['TO_UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($message['TLOGON'], $message['TNICK']), true), "</a>\n";
echo " </td>\n";
echo " <td align=\"left\" class=\"postbody\" valign=\"top\">", format_time($message['CREATED']), "</td>\n";
echo " </tr>\n";
}
} else {
echo " <td align=\"left\" class=\"postbody\" valign=\"top\">\n";
echo " <a href=\"user_profile.php?webtag={$webtag}&uid={$message['FROM_UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($message['FLOGON'], $message['FNICK']), true), "</a>\n";
echo " </td>\n";
echo " <td align=\"left\" class=\"postbody\" valign=\"top\">", format_time($message['CREATED']), "</td>\n";
echo " </tr>\n";
}
}
}
}
}
}
echo " <tr>\n";
echo " <td class=\"postbody\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
示例2: form_csrf_token_field
echo "<form accept-charset=\"utf-8\" name=\"f_post\" action=\"lpm_edit.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('mid', htmlentities_array($mid)), "\n";
echo "<div class=\"post\">\n";
echo "<h3>", gettext("Edit Message"), "</h3>\n";
echo "<div class=\"post_inner\">\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
light_html_display_error_array($error_msg_array);
}
echo "<div class=\"post_thread_title\">", gettext("Subject"), ":", light_form_input_text("t_subject", isset($t_subject) ? htmlentities_array($t_subject) : "", 30, 64), "</div>\n";
echo "<div class=\"post_to\">", gettext("To"), ":\n";
echo "<div class=\"recipients\">\n";
if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 0) {
foreach ($message_data['RECIPIENTS'] as $recipient) {
echo word_filter_add_ob_tags(format_user_name($recipient['LOGON'], $recipient['NICKNAME']), true), "\n";
}
} else {
echo gettext('Unknown User');
}
echo "</div>\n";
echo "</div>\n";
echo "<div class=\"post_content\">", light_form_textarea("t_content", htmlentities_array(strip_paragraphs($t_content)), 10, 50, null, 'textarea'), "</div>\n";
echo "<div class=\"post_buttons\">";
echo light_form_submit("apply", gettext("Apply"));
echo light_form_submit("preview", gettext("Preview"));
echo light_form_submit("cancel", gettext("Cancel"));
echo "</div>";
if (attachments_check_dir()) {
echo "<div class=\"attachments post_attachments\">", gettext('Attachments'), ":\n";
echo " ", attachments_form($_SESSION['UID'], $attachments), "\n";
示例3: foreach
echo " </tr>\n";
echo " </table>\n";
echo "</form>\n";
echo "<br />\n";
}
if (($comments_array = links_get_comments($lid)) !== false) {
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
foreach ($comments_array as $comment_id => $comment) {
$profile_link = "<a href=\"user_profile.php?webtag={$webtag}&uid={$comment['UID']}\" target=\"_blank\" class=\"popup 650x500\">";
$profile_link .= word_filter_add_ob_tags(format_user_name($comment['LOGON'], $comment['NICKNAME']), true) . "</a>";
if ($user_perm_links_moderate || $comment['UID'] == $_SESSION['UID']) {
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\">", sprintf(gettext("Comment by %s"), $profile_link), " <a href=\"links_detail.php?webtag={$webtag}&delete_comment={$comment['CID']}&lid={$lid}\" class=\"threadtime\">[", gettext("Delete"), "]</a></td>\n";
echo " </tr>\n";
} else {
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\">", sprintf(gettext("Comment by %s"), $profile_link), "</td>\n";
echo " </tr>\n";
}
echo " <tr>\n";
echo " <td align=\"center\">\n";
echo " <table class=\"posthead\" width=\"95%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">", word_filter_add_ob_tags($comment['COMMENT'], true), "</td>\n";
echo " </tr>\n";
示例4: sprintf
break;
case DELETE_USER_DATA:
$index_link = "<a href=\"index.php?webtag={$webtag}&final_uri=%s\" target=\"_blank\">%s</a>";
$admin_user_link = sprintf("admin_user.php?webtag={$webtag}&uid=%s", $entry_array[0]);
$admin_user_link = sprintf($index_link, rawurlencode($admin_user_link), $entry_array[1]);
$action_text = sprintf(gettext("Deleted all user data for account '%s'"), $admin_user_link);
break;
default:
$action_text = gettext("Unknown") . " :: {$admin_log_entry['ACTION']} :: ";
$action_text .= implode(", ", $entry_array);
break;
}
if ($auto_update === true) {
echo " <td align=\"left\" valign=\"top\">", gettext("none"), "</td>\n";
} else {
echo " <td align=\"left\" valign=\"top\"><a href=\"admin_user.php?webtag={$webtag}&uid=", $admin_log_entry['UID'], "\">", word_filter_add_ob_tags(format_user_name($admin_log_entry['LOGON'], $admin_log_entry['NICKNAME']), true), "</a></td>\n";
}
echo " <td align=\"left\">", $action_text, "</td>\n";
if (isset($group_by) && $group_by != ADMIN_LOG_GROUP_NONE) {
echo " <td align=\"center\">{$admin_log_entry['COUNT']}</td>\n";
}
echo " </tr>\n";
}
}
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
示例5: html_draw_error
html_draw_error(gettext("The requested thread could not be found or access was denied."));
}
if (session::check_perm(USER_PERM_EMAIL_CONFIRM, 0)) {
html_email_confirmation_error();
exit;
}
if (!session::check_perm(USER_PERM_POST_CREATE, $t_fid)) {
html_draw_error(gettext("You cannot reply to posts in this folder"));
}
if (isset($_GET['quote_list']) && strlen(trim($_GET['quote_list'])) > 0) {
$quote_list = array_filter(explode(',', $_GET['quote_list']), 'is_numeric');
sort($quote_list);
$t_content_array = array();
foreach ($quote_list as $quote_pid) {
if ($message_array = messages_get($reply_to_tid, $quote_pid)) {
$message_author = htmlentities_array(format_user_name($message_array['FLOGON'], $message_array['FNICK']));
$message_content = message_get_content($reply_to_tid, $quote_pid);
$message_content = message_apply_formatting($message_content, true);
$message_link = "messages.php?webtag={$webtag}&msg={$reply_to_tid}.{$quote_pid}";
$t_content_array[] = sprintf('<div class="quotetext"><b>%s:</b> <a href="%s">%s</a></div>
<div class="quote">%s</div>', gettext('quote'), $message_link, $message_author, fix_html($message_content));
}
}
if (sizeof($t_content_array) > 0) {
$t_content = implode('', $t_content_array);
}
}
$new_thread = false;
} else {
if (isset($_POST['t_tid']) && isset($_POST['t_rpid'])) {
$reply_to_tid = is_numeric($_POST['t_tid']) ? $_POST['t_tid'] : 0;
示例6: gettext
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\" colspan=\"2\">", gettext("Search Results"), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\">\n";
echo " <table class=\"posthead\" width=\"95%\">\n";
if (sizeof($user_search_array['user_array']) > 0) {
foreach ($user_search_array['user_array'] as $user) {
echo " <tr>\n";
echo " <td align=\"left\" width=\"1%\">", form_checkbox("add_user[]", $user['UID']), "</td>\n";
echo " <td align=\"left\"><a href=\"user_profile.php?webtag={$webtag}&uid={$user['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($user['LOGON'], $user['NICKNAME']), true), "</a></td>\n";
echo " </tr>\n";
}
}
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
示例7: trim
}
}
if (isset($_GET['action']) && strlen(trim($_GET['action'])) > 0) {
$action = trim($_GET['action']);
} else {
if (isset($_POST['action']) && strlen(trim($_POST['action'])) > 0) {
$action = trim($_POST['action']);
}
}
if (isset($action) && strlen(trim($action)) > 0) {
if ($action == 'reset_passwd') {
if (!session::check_perm(USER_PERM_ADMIN_TOOLS, 0, 0)) {
html_draw_error(gettext("You do not have permission to use this section."), 'admin_user.php', 'get', array('back' => gettext("Back")), array('uid' => $uid));
}
html_draw_top("title={$page_title}", 'class=window_title');
echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("Manage User"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", word_filter_add_ob_tags(format_user_name($user['LOGON'], $user['NICKNAME']), true), "</h1>\n";
html_display_warning_msg(gettext("If this user has forgotten their password you can reset it for them here."), '600', 'center');
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"admin_user_form\" action=\"admin_user.php\" method=\"post\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden("uid", htmlentities_array($uid)), "\n";
echo " ", form_input_hidden("action", htmlentities_array($action)), "\n";
echo " ", form_input_hidden("ret", htmlentities_array("admin_user.php?webtag={$webtag}&uid={$uid}")), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
示例8: email_send_message_to_user
function email_send_message_to_user($to_uid, $from_uid, $subject, $message_body, $use_email_addr)
{
if (!is_numeric($to_uid)) {
return false;
}
if (!is_numeric($from_uid)) {
return false;
}
if (!($to_user = user_get($to_uid))) {
return false;
}
if (!($from_user = user_get($from_uid))) {
return false;
}
if (!($transport = Swift_TransportFactory::get())) {
return false;
}
$mailer = Swift_Mailer::newInstance($transport);
$message = Swift_MessageBeehive::newInstance();
if (!email_address_valid($to_user['EMAIL'])) {
return false;
}
$forum_name = word_filter_apply(forum_get_setting('forum_name', null, 'A Beehive Forum'), $to_uid, true);
$recipient = word_filter_apply(format_user_name($to_user['LOGON'], $to_user['NICKNAME']), $to_uid, true);
$sent_from = word_filter_apply(format_user_name($from_user['LOGON'], $from_user['NICKNAME']), $to_uid, true);
$message->setTo($to_user['EMAIL'], $recipient);
if ($use_email_addr) {
$message->setFrom($from_user['EMAIL'], $sent_from);
}
$message->setSubject($subject);
$message->setBody(sprintf("%1\$s\n\n%2\$s", word_filter_apply(strip_tags($message_body), $to_uid, true), wordwrap(sprintf(gettext("This message was sent from %1\$s by %2\$s"), $forum_name, $sent_from))));
$message->addPart(sprintf("<p>%1\$s</p><p>%2\$s</p>", word_filter_apply(strip_tags($message_body), $to_uid, true), wordwrap_html(sprintf(gettext("This message was sent from %1\$s by %2\$s"), $forum_name, $sent_from))), 'text/part');
return $mailer->send($message);
}
示例9: gettext
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"><h2>", gettext("Thread title"), "</h2></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\">", word_filter_add_ob_tags($thread_data['TITLE'], true), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"><h2>", gettext("To"), "</h2></td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\">";
if ($edit_message['TO_UID'] > 0) {
echo "<a href=\"user_profile.php?webtag={$webtag}&uid={$edit_message['TO_UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($edit_message['TLOGON'], $edit_message['TNICK']), true), "</a>\n";
} else {
echo word_filter_add_ob_tags(format_user_name($edit_message['TLOGON'], $edit_message['TNICK']), true);
}
echo " </td>\n";
echo " </tr>\n";
if (($user_emoticon_pack = session::get_value('EMOTICONS')) === false) {
$user_emoticon_pack = forum_get_setting('default_emoticons', null, 'default');
}
if ($emoticon_preview_html = emoticons_preview($user_emoticon_pack)) {
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table width=\"196\" class=\"messagefoot\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\">", gettext("Emoticons"), "</td>\n";
示例10: foreach
if (isset($search_results_array['results_array']) && sizeof($search_results_array['results_array']) > 0) {
echo " <tr>\n";
echo " <td align=\"left\"><hr /></td>\n";
echo " </tr>\n";
}
}
if (isset($search_results_array['results_array']) && sizeof($search_results_array['results_array']) > 0) {
foreach ($search_results_array['results_array'] as $search_result) {
if ($type == SEARCH_LOGON && !in_array($search_result['LOGON'], $selected_array)) {
if ($multi === 'Y') {
echo " <tr>\n";
echo " <td align=\"left\">", form_checkbox("selected[]", htmlentities_array($search_result['LOGON'])), " <a href=\"user_profile.php?webtag={$webtag}&uid={$search_result['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($search_result['LOGON'], $search_result['NICKNAME']), true), "</a></td>\n";
echo " </tr>\n";
} else {
echo " <tr>\n";
echo " <td align=\"left\">", form_radio("selected", htmlentities_array($search_result['LOGON'])), " <a href=\"user_profile.php?webtag={$webtag}&uid={$search_result['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($search_result['LOGON'], $search_result['NICKNAME']), true), "</a></td>\n";
echo " </tr>\n";
}
} else {
if ($type == SEARCH_THREAD && !in_array($search_result['TID'], $selected_array)) {
echo " <tr>\n";
echo " <td align=\"left\">", form_radio("selected", $search_result['TID']), " <a href=\"messages.php?webtag={$webtag}&msg={$search_result['TID']}.1\" target=\"_blank\">", word_filter_add_ob_tags($search_result['TITLE'], true), "</a></td>\n";
echo " </tr>\n";
}
}
}
}
if (sizeof($selected_array) > 0 || isset($search_results_array['results_array']) && sizeof($search_results_array['results_array']) > 0) {
echo " <tr>\n";
echo " <td class=\"postbody\"> </td>\n";
echo " </tr>\n";
示例11: email_send_message_to_user
function email_send_message_to_user($tuid, $fuid, $subject, $message_body, $use_email_addr)
{
// Validate function arguments
if (!is_numeric($tuid)) {
return false;
}
if (!is_numeric($fuid)) {
return false;
}
// Get the to user details
if (!($to_user = user_get($tuid))) {
return false;
}
// Get the to user details
if (!($from_user = user_get($fuid))) {
return false;
}
// Get the Swift Mailer Transport
if (!($transport = Swift_TransportFactory::get())) {
return false;
}
//Create the Mailer using the returned Transport
$mailer = Swift_Mailer::newInstance($transport);
// Create a new message
$message = Swift_MessageBeehive::newInstance();
// Validate the email address before we continue.
if (!email_address_valid($to_user['EMAIL'])) {
return false;
}
// Get the forum name, subject, recipient, author, thread title and generate
// the messages link. Pass all of them through the recipient's word filter.
$forum_name = word_filter_apply(forum_get_setting('forum_name', null, 'A Beehive Forum'), $tuid, true);
$recipient = word_filter_apply(format_user_name($to_user['LOGON'], $to_user['NICKNAME']), $tuid, true);
$sent_from = word_filter_apply(format_user_name($from_user['LOGON'], $from_user['NICKNAME']), $tuid, true);
// Word filter the message to be sent.
$message_body = word_filter_apply($message_body, $tuid, true);
// Add the Sent By footer to the message.
$message_body .= "\r\n\r\n" . wordwrap(sprintf(gettext("This message was sent from %s by %s"), $forum_name, $sent_from));
// Add the recipient
$message->setTo($to_user['EMAIL'], $recipient);
// Set the from recipient
if ($use_email_addr) {
$message->setFrom($from_user['EMAIL'], $sent_from);
}
// Set the subject
$message->setSubject($subject);
// Set the message body
$message->setBody($message_body);
// Send the email
return $mailer->send($message) > 0;
}
示例12: html_style_image
}
$latest_post = 1;
if (!is_numeric($first_thread) && isset($selected_tid) && $selected_tid == $thread['TID']) {
$first_thread = $thread['TID'];
echo "<img src=\"", html_style_image('current_thread.png'), "\" class=\"thread_bullet\" id=\"t{$thread['TID']}\" alt=\"", gettext("Thread Options"), "\" title=\"", gettext("Thread Options"), "\" border=\"0\" />";
} else {
echo "<img src=\"", html_style_image('bullet.png'), "\" class=\"thread_bullet\" id=\"t{$thread['TID']}\" alt=\"", gettext("Thread Options"), "\" title=\"", gettext("Thread Options"), "\" border=\"0\" />";
}
}
}
echo "</a>";
$thread_time = format_time($thread['MODIFIED']);
echo "</td>\n";
echo " <td align=\"left\" valign=\"top\">";
echo "<a href=\"messages.php?webtag={$webtag}&msg={$thread['TID']}.{$latest_post}\" target=\"", html_get_frame_name('right'), "\" class=\"threadname\" rel=\"t{$thread['TID']}\"";
echo "title=\"", sprintf(gettext("Thread #%s Started by %s. Viewed %s"), $thread['TID'], word_filter_add_ob_tags(format_user_name($thread['LOGON'], $thread['NICKNAME']), true), $thread['VIEWCOUNT'] == 1 ? gettext("1 time") : sprintf(gettext("%d times"), $thread['VIEWCOUNT'])), "\">";
echo word_filter_add_ob_tags($thread['TITLE'], true), "</a> ";
if (session::logged_in()) {
if (isset($thread['INTEREST']) && $thread['INTEREST'] == THREAD_INTERESTED) {
echo "<img src=\"", html_style_image('high_interest.png'), "\" alt=\"", gettext("High Interest"), "\" title=\"", gettext("High Interest"), "\" /> ";
}
if (isset($thread['INTEREST']) && $thread['INTEREST'] == THREAD_SUBSCRIBED) {
echo "<img src=\"", html_style_image('subscribe.png'), "\" alt=\"", gettext("Subscribed"), "\" title=\"", gettext("Subscribed"), "\" /> ";
}
if (isset($thread['RELATIONSHIP']) && $thread['RELATIONSHIP'] & USER_FRIEND) {
echo "<img src=\"", html_style_image('friend.png'), "\" alt=\"", gettext("Friend"), "\" title=\"", gettext("Friend"), "\" /> ";
}
}
if (isset($thread['POLL_FLAG']) && $thread['POLL_FLAG'] == 'Y') {
echo "<a href=\"poll_results.php?webtag={$webtag}&tid={$thread['TID']}\" target=\"_blank\" class=\"popup 800x600\"><img src=\"", html_style_image('poll.png'), "\" border=\"0\" alt=\"", gettext("This is a poll. Click to view results."), "\" title=\"", gettext("This is a poll. Click to view results."), "\" /></a> ";
}
示例13: pm_edit_refuse
pm_edit_refuse();
}
}
}
}
light_html_draw_top(sprintf("title=%s", gettext("Edit Message")));
if ($valid && isset($_POST['preview'])) {
echo "<h3>", gettext("Message Preview"), "</h3>\n";
light_pm_display($pm_message_array, PM_FOLDER_OUTBOX, true);
}
echo "<form accept-charset=\"utf-8\" name=\"f_post\" action=\"lpm_edit.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('mid', htmlentities_array($mid)), "\n";
echo "<div class=\"post\">\n";
echo "<h3>", gettext("Edit Message"), "</h3>\n";
echo "<div class=\"post_inner\">\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
light_html_display_error_array($error_msg_array, '720', 'left');
}
echo "<div class=\"post_thread_title\">", gettext("Subject"), ":", light_form_input_text("t_subject", isset($t_subject) ? htmlentities_array($t_subject) : "", 30, 64), "</div>\n";
echo "<div class=\"post_to\">", gettext("To"), ":", word_filter_add_ob_tags(format_user_name($pm_message_array['TLOGON'], $pm_message_array['TNICK']), true), "</div>\n";
echo "<div class=\"post_content\">", light_form_textarea("t_content", htmlentities_array($t_content), 10, 50, false, 'textarea editor mobile'), "</div>\n";
echo "<div class=\"post_buttons\">";
echo light_form_submit("apply", gettext("Apply"));
echo light_form_submit("preview", gettext("Preview"));
echo light_form_submit("cancel", gettext("Cancel"));
echo "</div>";
echo "</div>";
echo "</div>";
echo "</form>\n";
light_html_draw_bottom();
示例14: format_user_name
// Popup title.
$page_title = format_user_name($user_profile['LOGON'], $user_profile['NICKNAME']);
html_draw_top(array('title' => $page_title, 'js' => array('js/user_profile.js'), 'base_target' => '_blank', 'pm_popup_disabled' => true, 'class' => 'window_title'));
echo "<div align=\"center\">\n";
echo " <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"center\" class=\"posthead\">\n";
echo " <table class=\"profile_header\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo " <tr>\n";
echo " <td align=\"center\" width=\"95%\">\n";
echo " <table width=\"95%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\"><h2 class=\"profile_logon\" id=\"profile_options\">", word_filter_add_ob_tags(format_user_name($user_profile['LOGON'], $user_profile['NICKNAME']), true), " ", html_style_image('post_options', gettext("Options")), "</h2>\n";
echo " <div class=\"profile_options_container\" id=\"profile_options_container\">\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"3\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td class=\"subhead\" colspan=\"2\">", gettext("Options"), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\">\n";
echo " <table width=\"95%\" class=\"profile_options_menu\">\n";
if (isset($user_profile['HOMEPAGE_URL']) && filter_var($user_profile['HOMEPAGE_URL'], FILTER_VALIDATE_URL)) {
示例15: html_style_image
echo " <td align=\"left\" valign=\"top\" class=\"postbody\">", html_style_image('bullet', gettext("User")), "</td>\n";
}
} else {
echo " <td align=\"left\" valign=\"top\" class=\"postbody\">", html_style_image('bullet', gettext("User")), "</td>\n";
}
}
} else {
echo " <td align=\"left\" valign=\"top\" class=\"postbody\">", html_style_image('bullet', gettext("User")), "</td>\n";
}
if (isset($user_array['SID']) && !is_null($user_array['SID'])) {
echo " <td class=\"postbody\" align=\"left\" valign=\"top\"><a href=\"{$user_array['URL']}\" target=\"_blank\">", word_filter_add_ob_tags($user_array['NAME'], true), "</a></td>\n";
} else {
if ($user_array['UID'] > 0) {
echo " <td class=\"postbody\" align=\"left\" valign=\"top\"><a href=\"user_profile.php?webtag={$webtag}&uid={$user_array['UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "</a></td>\n";
} else {
echo " <td class=\"postbody\" align=\"left\" valign=\"top\">", word_filter_add_ob_tags(format_user_name($user_array['LOGON'], $user_array['NICKNAME']), true), "</td>\n";
}
}
foreach ($profile_items_selected_array as $key => $profile_item_selected) {
if (is_numeric($key) && isset($user_array["ENTRY_{$key}"])) {
if ($user_array["PROFILE_ITEM_TYPE_{$key}"] == PROFILE_ITEM_RADIO || $user_array["PROFILE_ITEM_TYPE_{$key}"] == PROFILE_ITEM_DROPDOWN) {
$profile_item_options_array = explode("\n", $user_array["PROFILE_ITEM_OPTIONS_{$key}"]);
if (isset($profile_item_options_array[$user_array["ENTRY_{$key}"]])) {
echo " <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"", htmlentities_array($profile_item_options_array[$user_array["ENTRY_{$key}"]]), "\">", word_filter_add_ob_tags($profile_item_options_array[$user_array["ENTRY_{$key}"]], true), " </div></td>\n";
} else {
echo " <td class=\"postbody\" align=\"right\" valign=\"top\" width=\"20%\"><div class=\"profile_item_overflow\" title=\"\"> </div></td>\n";
}
} else {
if ($user_array["PROFILE_ITEM_TYPE_{$key}"] == PROFILE_ITEM_HYPERLINK) {
$profile_item_hyper_link = str_replace("[ProfileEntry]", word_filter_add_ob_tags(urlencode($user_array["ENTRY_{$key}"])), $user_array["PROFILE_ITEM_OPTIONS_{$key}"]);
$profile_item_hyper_link = sprintf("<a href=\"%s\" target=\"_blank\">%s</a>", $profile_item_hyper_link, word_filter_add_ob_tags($user_array["ENTRY_{$key}"], true));