• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP pun_htmlspecialchars函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: message

//
// If the "Show text" button was clicked
if (isset($_POST['show_text'])) {
    // Make sure something something was entered
    if (trim($_POST['text_to_show']) == '') {
        message('You didn\'t enter anything!');
    }
    // Display the admin navigation menu
    generate_admin_menu($plugin);
    ?>
	<div class="block">
		<h2><span>Example plugin</span></h2>
		<div class="box">
			<div class="inbox">
				<p>You said "<?php 
    echo pun_htmlspecialchars($_POST['text_to_show']);
    ?>
". Great stuff.</p>
				<p><a href="javascript: history.go(-1)">Go back</a></p>
			</div>
		</div>
	</div>
<?php 
} else {
    // Display the admin navigation menu
    generate_admin_menu($plugin);
    ?>
	<div id="exampleplugin" class="blockform">
		<h2><span>Example plugin</span></h2>
		<div class="box">
			<div class="inbox">
开发者ID:patrickod,项目名称:City-Blogger,代码行数:31,代码来源:AMP_Example.php


示例17: trim

                $mail_message = trim(substr($mail_tpl, $first_crlf));
                $mail_subject = str_replace('<board_title>', $pun_config['o_board_title'], $mail_subject);
                $mail_message = str_replace('<base_url>', $pun_config['o_base_url'] . '/', $mail_message);
                $mail_message = str_replace('<username>', $username, $mail_message);
                $mail_message = str_replace('<password>', $password1, $mail_message);
                $mail_message = str_replace('<login_url>', $pun_config['o_base_url'] . '/login.php', $mail_message);
                $mail_message = str_replace('<board_mailer>', $pun_config['o_board_title'] . ' ' . $lang_common['Mailer'], $mail_message);
                pun_mail($email1, $mail_subject, $mail_message);
                message($lang_register['Reg e-mail'] . ' <a href="mailto:' . $pun_config['o_admin_email'] . '">' . $pun_config['o_admin_email'] . '</a>.', true);
            }
            pun_setcookie($new_uid, $password_hash, $save_pass != '0' ? $now + 31536000 : 0);
            redirect('index.php', $lang_register['Reg complete']);
        }
    }
}
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / ' . $lang_register['Register'];
$required_fields = array('req_username' => $lang_common['Username'], 'req_password1' => $lang_common['Password'], 'req_password2' => $lang_prof_reg['Confirm pass'], 'req_email1' => $lang_common['E-mail'], 'req_email2' => $lang_common['E-mail'] . ' 2');
$focus_element = array('register', 'req_username');
require PUN_ROOT . 'header.php';
?>
<div class="blockform">
	<h2><span><?php 
echo $lang_register['Register'];
?>
</span></h2>
	<div class="box">
		<!-- fix submit button will stay disabled until the page is reloaded -->
		<form id="register" method="post" action="register.php?action=register">
<!--		<form id="register" method="post" action="register.php?action=register" onsubmit="this.register.disabled=true;if(process_form(this)){return true;}else{this.register.disabled=false;return false;}"> -->
			<div class="inform">
				<div class="forminfo">
开发者ID:neofutur,项目名称:MyBestBB,代码行数:31,代码来源:register.php


示例18: pun_htmlspecialchars

" value="<?php 
    echo pun_htmlspecialchars(isset($_POST['req_subject']) ? $_POST['req_subject'] : $cur_post['subject']);
    ?>
" /><br /></label>
<?php 
}
?>
						<label><?php 
echo $lang_common['Message'];
?>
<br />
						<textarea name="req_message" rows="20" cols="95" tabindex="<?php 
echo $cur_index++;
?>
"><?php 
echo pun_htmlspecialchars(isset($_POST['req_message']) ? $message : $cur_post['message']);
?>
</textarea><br /></label>
						<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 
echo $lang_common['img tag'];
?>
</a>: <?php 
echo $pun_config['p_message_img_tag'] == '1' ? $lang_common['on'] : $lang_common['off'];
开发者ID:patrickod,项目名称:City-Blogger,代码行数:31,代码来源:edit.php


示例19: pun_htmlspecialchars

echo $id;
?>
">
			<div class="inform">
				<fieldset>
					<legend class="warntext"><?php 
echo $lang_delete['Warning'];
?>
</legend>
					<div class="infldset">
						<div class="postmsg">
							<p><?php 
echo $lang_common['Author'];
?>
: <strong><?php 
echo pun_htmlspecialchars($cur_post['poster']);
?>
</strong></p>
							<?php 
echo $cur_post['message'];
?>
						</div>
					</div>
				</fieldset>
			</div>
			<p><input type="submit" name="delete" value="<?php 
echo $lang_delete['Delete'];
?>
" /><a href="javascript:history.go(-1)"><?php 
echo $lang_common['Go back'];
?>
开发者ID:tetratec,项目名称:runescape-classic-dump,代码行数:31,代码来源:delete.php


示例20: generate_config_cache

if (!defined('PUN_CONFIG_LOADED')) {
    include PUN_ROOT . 'include/cache.php';
    generate_config_cache();
    include PUN_ROOT . 'cache/cache_config.php';
}
// Enable output buffering
if (!defined('PUN_DISABLE_BUFFERING')) {
    @ob_start();
}
// Check/update/set cookie and fetch user info
$pun_user = array();
check_cookie($pun_user);
// Attempt to load the common language file
@(include PUN_ROOT . 'lang/' . $pun_user['language'] . '/common.php');
if (!isset($lang_common)) {
    exit('There is no valid language pack "' . pun_htmlspecialchars($pun_user['language']) . '" installed. Please reinstall a language of that name.');
}
@iconv_set_encoding('internal_encoding', 'UTF-8');
@mb_internal_encoding('UTF-8');
// Check if we are to display a maintenance message
if ($pun_config['o_maintenance'] && $pun_user['g_id'] > PUN_ADMIN && !defined('PUN_TURN_OFF_MAINT')) {
    maintenance_message();
}
// Load cached bans
@(include PUN_ROOT . 'cache/cache_bans.php');
if (!defined('PUN_BANS_LOADED')) {
    include_once PUN_ROOT . 'include/cache.php';
    generate_bans_cache();
    include PUN_ROOT . 'cache/cache_bans.php';
}
// Check if current user is banned
开发者ID:tipsun91,项目名称:punbb-mod,代码行数:31,代码来源:common.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP pun_linebreaks函数代码示例发布时间:2022-05-15
下一篇:
PHP pun_hash函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap