当前位置: 首页>>代码示例>>PHP>>正文


PHP pun_htmlspecialchars函数代码示例

本文整理汇总了PHP中pun_htmlspecialchars函数的典型用法代码示例。如果您正苦于以下问题:PHP pun_htmlspecialchars函数的具体用法?PHP pun_htmlspecialchars怎么用?PHP pun_htmlspecialchars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了pun_htmlspecialchars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pun_htmlspecialchars

								</tr>
								<tr>
									<th scope="row">Subscription Length</th>
									<td>
										<input type="text" name="form[length]" style="width:400px" tabindex="7" value="<?php 
    echo pun_htmlspecialchars($pun_config['s_length']);
    ?>
" />
										<span>How long (in days) members should remain in this group for. This requires the crontab to be working correctly. Set at 0 to disable.</span>
									</td>
								</tr>
								<tr>
									<th scope="row">Subscription Description</th>
									<td>
										<textarea name="form[description]" style="width:400px;height:100px" tabindex="8" /><?php 
    echo pun_htmlspecialchars($pun_config['s_description']);
    ?>
</textarea>
										<span>A description to be shown on the subscribe page. This will not be parsed, and thus may contain html.</span>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<br />
					<div style="text-align:center"><input type="submit" name="submit" value="Update Settings" tabindex="9" /></div>
				</div>
			</form>
		</div>
	</div>
<?php 
开发者ID:tetratec,项目名称:runescape-classic-dump,代码行数:31,代码来源:AP_Subscriptions.php

示例2: parse_signature

function parse_signature($text)
{
    global $pun_config, $lang_common, $pun_user;
    if ($pun_config['o_censoring'] == '1') {
        $text = censor_words($text);
    }
    $text = pun_htmlspecialchars($text);
    if ($pun_config['o_make_links'] == '1') {
        $text = do_clickable($text);
    }
    if ($pun_config['o_smilies_sig'] == '1' && $pun_user['show_smilies'] != '0') {
        $text = do_smilies($text);
    }
    if ($pun_config['p_sig_bbcode'] == '1' && strpos($text, '[') !== false && strpos($text, ']') !== false) {
        $text = do_bbcode($text);
        if ($pun_config['p_sig_img_tag'] == '1') {
            //			$text = preg_replace('#\[img\]((ht|f)tps?://)([^\s<"]*?)\.(jpg|jpeg|png|gif)\[/img\]#e', 'handle_img_tag(\'$1$3.$4\', true)', $text);
            $text = preg_replace('#\\[img\\]((ht|f)tps?://)([^\\s<"]*?)\\[/img\\]#e', 'handle_img_tag(\'$1$3\', true)', $text);
        }
    }
    // Deal with newlines, tabs and multiple spaces
    $pattern = array("\n", "\t", '  ', '  ');
    $replace = array('<br />', '&nbsp; &nbsp; ', '&nbsp; ', ' &nbsp;');
    $text = str_replace($pattern, $replace, $text);
    return $text;
}
开发者ID:erdincay,项目名称:netsukuku,代码行数:26,代码来源:parser.php

示例3: pun_htmlspecialchars

}
?>
" size="50" maxlength="80" /><br /></label>
<?php 
if ($pun_config['o_regs_verify'] == '1') {
    ?>
						<label class="required"><strong><?php 
    echo $lang->t('Confirm email');
    ?>
 <span><?php 
    echo $lang->t('Required');
    ?>
</span></strong><br />
						<input type="text" name="req_email2" value="<?php 
    if (isset($_POST['req_email2'])) {
        echo pun_htmlspecialchars($_POST['req_email2']);
    }
    ?>
" size="50" maxlength="80" /><br /></label>
<?php 
}
?>
					</div>
				</fieldset>
			</div>
			<div class="inform">
				<fieldset>
					<legend><?php 
echo $lang->t('Localisation legend');
?>
</legend>
开发者ID:rakete,项目名称:affenbande-fluxbb,代码行数:31,代码来源:register.php

示例4: error

									<th scope="row">Prune from forum</th>
									<td>
										<select name="prune_from" tabindex="3">
											<option value="all">All forums</option>
<?php 
    $result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name FROM ' . $db->prefix . 'categories AS c INNER JOIN ' . $db->prefix . 'forums AS f ON c.id=f.cat_id WHERE f.redirect_url IS NULL ORDER BY c.disp_position, c.id, f.disp_position') or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
    $cur_category = 0;
    while ($forum = $db->fetch_assoc($result)) {
        if ($forum['cid'] != $cur_category) {
            if ($cur_category) {
                echo "\t\t\t\t\t\t\t\t\t\t\t" . '</optgroup>' . "\n";
            }
            echo "\t\t\t\t\t\t\t\t\t\t\t" . '<optgroup label="' . pun_htmlspecialchars($forum['cat_name']) . '">' . "\n";
            $cur_category = $forum['cid'];
        }
        echo "\t\t\t\t\t\t\t\t\t\t\t\t" . '<option value="' . $forum['fid'] . '">' . pun_htmlspecialchars($forum['forum_name']) . '</option>' . "\n";
    }
    ?>
											</optgroup>
										</select>
										<span>The forum from which you want to prune posts.</span>
									</td>
								</tr>
							</table>
							<p class="topspace">Use this feature with caution. Pruned posts can <strong>never</strong> be recovered. For best performance you should put the forum in maintenance mode during pruning.</p>
							<div class="fsetsubmit"><input type="submit" name="prune" value="Prune" tabindex="5" /></div>
						</div>
					</fieldset>
				</div>
			</form>
		</div>
开发者ID:patrickod,项目名称:City-Blogger,代码行数:31,代码来源:admin_prune.php

示例5: header

            ?>
</a></p>
		</form>
	</div>
</div>
<?php 
            require PUN_ROOT . 'footer.php';
        }
    }
}
if (!$pun_user['is_guest']) {
    header('Location: index.php');
}
// Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
$redirect_url = isset($_SERVER['HTTP_REFERER']) && preg_match('#^' . preg_quote($pun_config['o_base_url']) . '/(.*?)\\.php#i', $_SERVER['HTTP_REFERER']) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $lang_common['Login'];
$required_fields = array('req_username' => $lang_common['Username'], 'req_password' => $lang_common['Password']);
$focus_element = array('login', 'req_username');
require PUN_ROOT . 'header.php';
?>
<div class="blockform">
	<h2><span><?php 
echo $lang_common['Login'];
?>
</span></h2>
	<div class="box">
		<form id="login" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
			<div class="inform">
				<fieldset>
					<legend><?php 
echo $lang_login['Login legend'];
开发者ID:BackupTheBerlios,项目名称:vnkb-applet-svn,代码行数:31,代码来源:login.php

示例6: pun_htmlspecialchars

            ?>
								<tr>
									<th>IP/IP-ranges</th>
									<td><?php 
            echo $cur_ban['ip'];
            ?>
</td>
								</tr>
<?php 
        }
        if ($cur_ban['message'] != '') {
            ?>
								<tr>
									<th>Reason</th>
									<td><?php 
            echo pun_htmlspecialchars($cur_ban['message']);
            ?>
</td>
								</tr>
<?php 
        }
        ?>
							</table>
							<p class="linkactions"><a href="admin_bans.php?edit_ban=<?php 
        echo $cur_ban['id'];
        ?>
">Edit</a> - <a href="admin_bans.php?del_ban=<?php 
        echo $cur_ban['id'];
        ?>
">Remove</a></p>
						</div>
开发者ID:patrickod,项目名称:City-Blogger,代码行数:31,代码来源:admin_bans.php

示例7: error

        // Only update values that have changed
        if (array_key_exists('file_' . $key, $pun_config) && $pun_config['file_' . $key] != $input) {
            if ($input || is_int($input)) {
                $value = '\'' . $db->escape($input) . '\'';
            } else {
                $value = 'NULL';
            }
            $db->query('UPDATE ' . $db->prefix . 'config SET conf_value=' . $value . ' WHERE conf_name=\'file_' . $db->escape($key) . '\'') or error('Unable to update board config', __FILE__, __LINE__, $db->error());
        }
    }
    // Regenerate the config cache
    include_once PUN_ROOT . 'include/cache.php';
    generate_config_cache();
    redirect('admin_files.php', 'Options updated. Redirecting &#x2026;');
} else {
    $page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Admin / Files';
    $focus_element = array('files', 'form[upload_path]');
    require_once PUN_ROOT . 'header.php';
    // Display the admin navigation menu
    generate_admin_menu('files');
    if (isset($_POST['show_errors'])) {
        //confirm_referrer('admin_files.php');
        $log = show_problems();
        echo '<div id="imageupload" class="blockform">
<h2><span>Отчет об ошибках</span></h2>
<div class="box">
<div class="inform">
<div class="infldset">
<table class="aligntop" cellspacing="0">
<tr>
<td>';
开发者ID:tipsun91,项目名称:punbb-mod,代码行数:31,代码来源:admin_files.php

示例8: error

<tbody>';
    // Fetch messages
    $result = $db->query('SELECT * FROM ' . $db->prefix . 'messages WHERE owner=' . $pun_user['id'] . ' AND status=' . $box . ' ORDER BY posted DESC ' . $limit) or error('Unable to fetch messages list for forum', __FILE__, __LINE__, $db->error());
    $new_messages = $messages_exist = false;
    // If there are messages in this folder.
    if ($all = $db->num_rows($result)) {
        $messages_exist = true;
        while ($cur_mess = $db->fetch_assoc($result)) {
            $icon_text = $lang_common['Normal icon'];
            $icon_type = 'icon';
            if (!$cur_mess['showed']) {
                $icon_text .= ' ' . $lang_common['New icon'];
                $icon_type = 'icon inew';
            }
            $new_messages == false && $cur_mess['showed'] == '0' ? $new_messages = true : null;
            $subject = '<a href="message_list.php?id=' . $cur_mess['id'] . '&amp;p=' . $p . '&amp;box=' . $box . '">' . pun_htmlspecialchars($cur_mess['subject']) . '</a>';
            if (isset($_GET['id'])) {
                if ($cur_mess['id'] == $_GET['id']) {
                    $subject = '<strong>' . $subject . '</strong>';
                }
            }
            echo '<tr>
<td class="tcl">
<div class="intd">
<div class="' . $icon_type . '"><div class="nosize">' . $icon_text . '</div></div>
<div class="tclcon">' . $subject . '</div>
</div>
</td>
<td class="tc2" style="white-space:nowrap; overflow:hidden;"><a href="profile.php?id=' . $cur_mess['sender_id'] . '">' . $cur_mess['sender'] . '</a></td>
<td style="white-space:nowrap;">' . format_time($cur_mess['posted']) . '</td>
<td style="text-align:center;"><input type="checkbox" name="delete_messages[]" value="' . $cur_mess['id'] . '"/></td>
开发者ID:tipsun91,项目名称:punbb-mod,代码行数:31,代码来源:message_list.php

示例9: define

  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/
// Tell header.php to use the help template
// because we don't want to edit header.php lets use the standard header template
define('PUN_HELP', 1);
define('PUN_ROOT', './');
require PUN_ROOT . 'include/common.php';
if ($pun_user['g_read_board'] == '0') {
    message($lang_common['No view']);
}
// Load the help.php language file
require PUN_ROOT . 'lang/' . $pun_user['language'] . '/modern_bbcode.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Smilies';
require PUN_ROOT . 'header.php';
?>

<script type="text/javascript">
<!--
	function insert_text(open, close)
	{
		var docOpener = window.opener.document;

//		msgfield = (docOpener.all) ? docOpener.all.req_message : docOpener.forms['post']['req_message'];

		msgfield = docOpener.getElementsByName("req_message").item(0);

		// IE support	
		if (docOpener.selection && docOpener.selection.createRange)
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:smilies.php

示例10: implode

                ++$num_guests;
            }
        }
        echo $lang_index['Guests online'] . ': ' . $num_guests . '<br />';
        if ($_GET['action'] == 'online_full') {
            echo $lang_index['Users online'] . ': ' . implode(', ', $users) . '<br />';
        } else {
            echo $lang_index['Users online'] . ': ' . $num_users . '<br />';
        }
        return;
    } else {
        if ($_GET['action'] == 'stats') {
            // Load the index.php language file
            require PUN_ROOT . 'lang/' . $pun_config['o_default_lang'] . '/index.php';
            // Collect some statistics from the database
            $result = $db->query('SELECT COUNT(id)-1 FROM ' . $db->prefix . 'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
            $stats['total_users'] = $db->result($result);
            $result = $db->query('SELECT id, username FROM ' . $db->prefix . 'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
            $stats['last_user'] = $db->fetch_assoc($result);
            $result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM ' . $db->prefix . 'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
            list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
            echo $lang_index['No of users'] . ': ' . $stats['total_users'] . '<br />';
            echo $lang_index['Newest user'] . ': <a href="' . $pun_config['o_base_url'] . '/profile.php?id=' . $stats['last_user']['id'] . '">' . pun_htmlspecialchars($stats['last_user']['username']) . '</a><br />';
            echo $lang_index['No of topics'] . ': ' . $stats['total_topics'] . '<br />';
            echo $lang_index['No of posts'] . ': ' . $stats['total_posts'];
            return;
        } else {
            exit('Bad request');
        }
    }
}
开发者ID:patrickod,项目名称:City-Blogger,代码行数:31,代码来源:extern.php

示例11: VALUES

                            if ($pun_config['o_report_method'] == 0 || $pun_config['o_report_method'] == 2) {
                                $db->query('INSERT INTO ' . $db->prefix . 'reports (post_id, topic_id, forum_id, reported_by, created, message) VALUES(' . $post_id . ', ' . $topic_id . ', ' . $forum_id . ', ' . $pun_user['id'] . ', ' . time() . ', \'' . $db->escape($reason) . '\')') or error('Unable to create report', __FILE__, __LINE__, $db->error());
                            }
                            // Should we e-mail the report?
                            if ($pun_config['o_report_method'] == 1 || $pun_config['o_report_method'] == 2) {
                                // We send it to the complete mailing-list in one swoop
                                if ($pun_config['o_mailing_list'] != '') {
                                    $mail_subject = 'Report(' . $forum_id . ') - \'' . $subject . '\'';
                                    $mail_message = 'User \'' . $pun_user['username'] . '\' has reported the following message:' . "\n" . $pun_config['o_base_url'] . '/viewtopic.php?pid=' . $post_id . '#p' . $post_id . "\n\n" . 'Reason:' . "\n" . $reason;
                                    require PUN_ROOT . 'include/email.php';
                                    pun_mail($pun_config['o_mailing_list'], $mail_subject, $mail_message);
                                }
                            }
                            redirect('viewtopic.php?pid=' . $post_id . '#p' . $post_id, $lang_misc['Report redirect']);
                        }
                        $page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $lang_misc['Report post'];
                        $required_fields = array('req_reason' => $lang_misc['Reason']);
                        $focus_element = array('report', 'req_reason');
                        require PUN_ROOT . 'header.php';
                        ?>
<div class="blockform">
	<h2><span><?php 
                        echo $lang_misc['Report post'];
                        ?>
</span></h2>
	<div class="box">
		<form id="report" method="post" action="misc.php?report=<?php 
                        echo $post_id;
                        ?>
" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
			<div class="inform">
开发者ID:tetratec,项目名称:runescape-classic-dump,代码行数:31,代码来源:misc.php

示例12: error

											<option value="registered">registered</option>
										</select>&nbsp;&nbsp;&nbsp;<select name="direction" tabindex="21">
											<option value="ASC" selected="selected">ascending</option>
											<option value="DESC">descending</option>
										</select>
									</td>
								</tr>
								<tr>
									<th scope="row">User group</th>
									<td>
										<select name="user_group" tabindex="22">
												<option value="all" selected="selected">All groups</option>
<?php 
        $result = $db->query('SELECT g_id, g_title FROM ' . $db->prefix . 'groups WHERE g_id!=' . PUN_GUEST . ' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
        while ($cur_group = $db->fetch_assoc($result)) {
            echo "\t\t\t\t\t\t\t\t\t\t\t" . '<option value="' . $cur_group['g_id'] . '">' . pun_htmlspecialchars($cur_group['g_title']) . '</option>' . "\n";
        }
        ?>
										</select>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
				</div>
				<p class="submitend"><input type="submit" name="find_user" value="Submit search" tabindex="23" /></p>
			</form>
		</div>

		<h2 class="block2"><span>IP search</span></h2>
		<div class="box">
开发者ID:snouhaud,项目名称:camptocamp.org,代码行数:31,代码来源:admin_users.php

示例13: parse_message

function parse_message($text, $html = 'off')
{
    if ($html != 'on') {
        // Convert applicable characters to HTML entities
        $text = pun_htmlspecialchars($text);
    }
    // If the message contains a code tag we have to split it up (text within [code][/code] shouldn't be touched)
    if (strpos($text, '[code]') !== false && strpos($text, '[/code]') !== false) {
        list($inside, $outside) = split_text($text, '[code]', '[/code]');
        $outside = array_map('ltrim', $outside);
        $text = implode('<">', $outside);
    }
    $text = do_clickable($text);
    if (strpos($text, '[') !== false && strpos($text, ']') !== false) {
        $text = do_bbcode($text);
        $text = preg_replace('#\\[img\\]((ht|f)tps?://)([^\\s<"]*?)\\[/img\\]#e', 'handle_img_tag(\'$1$3\')', $text);
    }
    // Deal with newlines, tabs and multiple spaces
    $pattern = array("\n", "\t", '  ', '  ');
    $replace = array('<br />', '&nbsp; &nbsp; ', '&nbsp; ', ' &nbsp;');
    $text = str_replace($pattern, $replace, $text);
    // If we split up the message before we have to concatenate it together again (code tags)
    if (isset($inside)) {
        $outside = explode('<">', $text);
        $text = '';
        $num_tokens = count($outside);
        for ($i = 0; $i < $num_tokens; ++$i) {
            $text .= $outside[$i];
            if (isset($inside[$i])) {
                $num_lines = (substr_count($inside[$i], "\n") + 3) * 1.5;
                $height_str = $num_lines > 35 ? '35em' : $num_lines . 'em';
                $text .= '</p><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: ' . $height_str . '"><pre>' . $inside[$i] . '</pre></div></div></div><p>';
            }
        }
    }
    // Add paragraph tag around post, but make sure there are no empty paragraphs
    $text = str_replace('<p></p>', '', '<p class="IE_wrap">' . $text . '</p>');
    $pattern = '/@([0-9a-zA-Z_\\-åäöÅÄÖ]+)@/';
    $replacement = '<div style="font-weight: bold; font-style: italic;">Svarar till <a href="/traffa/quicksearch.php?username=$1">$1</a></div>';
    $text = preg_replace($pattern, $replacement, $text);
    $pattern = '/@([0-9a-zA-Z_\\-åäöÅÄÖ]+):([0-9]+)@/';
    function fix_postid($matches)
    {
        $query = 'SELECT timestamp FROM forum_posts, login WHERE forum_posts.id = ' . $matches[2] . ' AND login.username LIKE "' . $matches[1] . '" AND login.id = forum_posts.user';
        $result = mysql_query($query);
        $data = mysql_fetch_assoc($result);
        if (mysql_num_rows($result) > 0) {
            $extra_text .= '<strong><i> <a href="javascript: void(0);" onclick="window.open(\'read_post_popup.php?id=' . $matches[2] . '\'';
            $extra_text .= ', \'_blank\', \'width=600, height=450, scrollbars=yes\');">';
            $extra_text .= 'Svarar på inlägg skrivet av ' . $matches[1] . ', ' . date('Y-m-d H:i', $data['timestamp']) . '</a></strong></i>';
        }
        return $extra_text;
    }
    $text = preg_replace_callback($pattern, "fix_postid", $text);
    return $text;
}
开发者ID:Razze,项目名称:hamsterpaj,代码行数:56,代码来源:parser.php

示例14: pun_htmlspecialchars

				<input type="hidden" name="req_subject" value="<?php 
    echo $p_subject;
    ?>
" />
        		<?php 
}
?>
				<label for="req_message"><strong><?php 
echo $lang_common['Message'];
?>
</strong></label>
				<textarea name="req_message" id="req_message" rows="20" cols="95" tabindex="<?php 
echo $cur_index++;
?>
"><?php 
echo $p_message != '' ? pun_htmlspecialchars($p_message) : '';
?>
</textarea>
				<?php 
/* Si vous utilisez la PunToolbar, décomentez la ligne suivante : */
//require PUN_ROOT.'include/puntoolbar.php';
?>
				<ul class="bblinks">
					<li><a href="help.php#bbcode" onclick="window.open(this.href); return false;"><?php 
echo $lang_common['BBCode'];
?>
</a>: <?php 
echo $pun_config['p_message_bbcode'] == '1' ? $lang_common['on'] : $lang_common['off'];
?>
</li>
					<li><a href="help.php#img" onclick="window.open(this.href); return false;"><?php 
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:pms_send.php

示例15: implode

    }
}
if ($checkboxes) {
    echo '</div><div class="inform"><fieldset><legend>' . $lang_common['Options'] . '</legend><div class="infldset"><div class="rbox">' . implode('<br /></label>', $checkboxes) . '<br /></label></div></div></fieldset><input type="hidden" name="form_t" value="' . $_SERVER['REQUEST_TIME'] . '" />';
}
echo '</div><p><input type="submit" name="submit" value="' . $lang_common['Submit'] . '" accesskey="s" /><input type="submit" name="preview" value="' . $lang_post['Preview'] . '" accesskey="p" /><a href="javascript:history.go(-1)">' . $lang_common['Go back'] . '</a></p></form></div></div>';
// Check to see if the topic review is to be displayed.
if ($tid && $pun_config['o_topic_review']) {
    include_once PUN_ROOT . 'include/parser.php';
    $result = $db->query('SELECT id, poster, message, hide_smilies, posted FROM ' . $db->prefix . 'posts WHERE topic_id=' . $tid . ' ORDER BY id DESC LIMIT ' . $pun_config['o_topic_review']) or error('Unable to fetch topic review', __FILE__, __LINE__, $db->error());
    echo '<div id="postreview" class="blockpost"><h2><span>' . $lang_post['Topic review'] . '</span></h2>';
    //Set background switching on
    $bg_switch = true;
    $post_count = 0;
    while ($cur_post = $db->fetch_assoc($result)) {
        // Switch the background color for every message.
        $bg_switch = $bg_switch ? $bg_switch = false : ($bg_switch = true);
        $vtbg = $bg_switch ? ' roweven' : ' rowodd';
        $post_count++;
        // QUICK QUOTE MOD BEGIN
        // MOD: QUICK QUOTE - 1 LINE FOLLOWING CODE ADDED
        $username = '<a href="javascript:pasteN(\'' . pun_htmlspecialchars($cur_post['poster']) . '\');">' . pun_htmlspecialchars($cur_post['poster']) . '</a>';
        // QUICK QUOTE MOD END
        $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
        // MOD: QUICK QUOTE - 1 LINE FOLLOWING CODE MODIFIED
        echo '<div class="box' . $vtbg . '"><div class="inbox"><div class="postleft"><dl><dt><strong>' . $username . '</strong></dt><dd>' . format_time($cur_post['posted']) . '</dd></dl></div><div class="postright"><div class="postmsg">' . $cur_post['message'] . '</div></div><div class="clearer"></div><div class="postfootright"><ul><li class="postquote"><a href="javascript:pasteQ(\'' . $cur_post['id'] . '\',\'' . pun_htmlspecialchars($cur_post['poster']) . '\');">' . $lang_post['Quote'] . '</a></li></ul></div></div></div>';
        // MOD: QUICK QUOTE - 1 LINE FOLLOWING CODE ADDED
    }
    echo '</div>';
}
require_once PUN_ROOT . 'footer.php';
开发者ID:tipsun91,项目名称:punbb-mod,代码行数:31,代码来源:post.php


注:本文中的pun_htmlspecialchars函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。