本文整理汇总了PHP中forum_htmlencode函数的典型用法代码示例。如果您正苦于以下问题:PHP forum_htmlencode函数的具体用法?PHP forum_htmlencode怎么用?PHP forum_htmlencode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了forum_htmlencode函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: do_redirect
function do_redirect($matches, $post_id, $user_id)
{
global $forum_db, $lang_redirect_links;
if (count($matches) > 0) {
foreach ($matches as $cur_url) {
if (forum_hash(forum_htmlencode($cur_url), '') == $_POST['hash']) {
// update counters, add if not exist
$subquery = array();
if ($post_id) {
$subquery[] = ' post_id=' . $post_id;
}
if ($user_id) {
$subquery[] = ' user_id=' . $user_id;
}
$query = array('SELECT' => '*', 'FROM' => 'hcs_redirect_links', 'WHERE' => 'link=\'' . $forum_db->escape($cur_url) . '\' AND ' . implode(' AND ', $subquery));
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
if (!$forum_db->num_rows($result)) {
$query = array('INSERT' => 'link, counter, post_id, user_id', 'INTO' => 'hcs_redirect_links', 'VALUES' => '\'' . $forum_db->escape($cur_url) . '\', 1, \'' . $post_id . '\', \'' . $user_id . '\'');
} else {
$cur_redirect_link = $forum_db->fetch_assoc($result);
$counter = $cur_redirect_link['counter'] + 1;
$query = array('UPDATE' => 'hcs_redirect_links', 'SET' => 'counter = ' . $counter, 'WHERE' => 'link=\'' . $forum_db->escape($cur_url) . '\' AND ' . implode(' AND ', $subquery));
}
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
redirect($cur_url, $lang_redirect_links['Go redirect']);
exit;
}
}
}
}
开发者ID:mdb-webdev,项目名称:punbb_extensions,代码行数:30,代码来源:common.php
示例2: show_activity
public function show_activity()
{
global $forum_db, $forum_user, $forum_config, $forum_page, $lang_fancy_user_activity, $user, $id;
$out = '';
$query = array('SELECT' => 'a.activity_type, INET_NTOA(a.ip) AS ip, a.activity_time', 'FROM' => 'fancy_user_activity AS a', 'WHERE' => 'a.user_id=' . $id, 'ORDER BY' => 'a.id DESC', 'LIMIT' => '50');
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
$acts = array();
while ($cur_act = $forum_db->fetch_assoc($result)) {
$acts[] = $cur_act;
}
if (empty($acts)) {
$out = '<div class="ct-box info-box"><p>' . $lang_fancy_user_activity['No activity'] . '</p></div>';
} else {
foreach ($acts as $act) {
$out .= '<tr> <td>' . $this->get_activity_name($act['activity_type']) . '</td> <td>' . $act['ip'] . '</td> <td>' . format_time($act['activity_time']) . '</td> </tr>';
}
$summary = sprintf($forum_user['id'] == $id ? $lang_fancy_user_activity['Activity welcome'] : $lang_fancy_user_activity['Activity welcome user'], forum_htmlencode($user['username']));
$table = '<div class="ct-group">
<table cellpadding="0" summary="' . $summary . '">
<thead>
<tr>
<th class="tc0" scope="col">' . $lang_fancy_user_activity['Type'] . '</th>
<th class="tc1" scope="col">' . $lang_fancy_user_activity['IP'] . '</th>
<th class="tc2" scope="col">' . $lang_fancy_user_activity['Time'] . '</th>
</tr>
</thead>
<tbody>%s</tbody>
</table>
</div>';
$out = sprintf($table, $out);
}
echo $out;
}
开发者ID:mdb-webdev,项目名称:Fancy-Extensions,代码行数:33,代码来源:functions.inc.php
示例3: show
public function show($just_return = false)
{
if (empty($this->message)) {
return;
}
$message = sprintf(self::TEMPLATE_MSG, forum_htmlencode($this->message[1]), forum_htmlencode($this->message[0]));
$m = sprintf(self::TEMPLATE_MSG_BLOCK, $message);
if ($just_return) {
$this->clear();
return $m;
}
echo $m;
$this->clear();
}
开发者ID:ZerGabriel,项目名称:punbb,代码行数:14,代码来源:flash_messenger.php
示例4: reputation_get_user_id
function reputation_get_user_id($username, &$errors)
{
global $forum_db, $forum_user;
$receiver_id = 'NULL';
if ($username != '') {
$query = array('SELECT' => 'id', 'FROM' => 'users', 'WHERE' => 'username=\'' . $forum_db->escape($username) . '\'');
$result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
$row = $forum_db->fetch_assoc($result);
if (!$row) {
$errors[] = sprintf($lang_pun_pm['Non-existent username'], forum_htmlencode($username));
} else {
$receiver_id = intval($row['id']);
}
if ($forum_user['id'] == $receiver_id) {
$errors[] = $lang_pun_pm['Message to yourself'];
}
}
return $receiver_id;
}
开发者ID:torepublicStartpageCode,项目名称:torepublic2,代码行数:19,代码来源:reputation.php
示例5: vt_row_pre_display
/**
* Hook vt_row_pre_display handler
* Create block thanks info
*
* @param array $forum_page
* @param array $cur_post
*/
public static function vt_row_pre_display(&$forum_page, $cur_post)
{
$bufer = array();
if (isset($forum_page['thanks_info'][$cur_post['id']])) {
foreach ($forum_page['thanks_info'][$cur_post['id']] as $cur_thanks_info) {
if ($cur_post['id'] == $cur_thanks_info['post_id'] && App::$forum_user['id'] == $cur_thanks_info['from_user_id']) {
$forum_page['post_actions']['thanks'] = '';
}
$bufer[] = '<a href="' . forum_link(App::$forum_url['user'], $cur_thanks_info['from_user_id']) . '">' . forum_htmlencode($cur_thanks_info['username']) . '</a>';
}
if (!empty($bufer)) {
$thanks = '<div class="thanks_sig"><span class="thanks_sig_head">' . App::$lang['Thanks assessed'] . '</span><span>' . implode(', ', $bufer) . '</span>';
if (!isset($forum_page['message']['signature'])) {
$forum_page['message']['thanks_sig'] = '<div class="sig-content"><span class="sig-line"><!-- --></span>' . $thanks . '<span class="thanks">' . $cur_post['thanks'] . '</span></div></div>';
} else {
$forum_page['message']['thanks_sig'] = '<div class="sig-content">' . $thanks . '<span class="thanks">' . $cur_post['thanks'] . '</span></div></div>';
}
}
}
$forum_page['post_options']['actions'] = '<p class="post-actions">' . implode(' ', $forum_page['post_actions']) . '</p>';
}
开发者ID:xSTRIGx,项目名称:PunBB.Extensions,代码行数:28,代码来源:hook_dispatcher.php
示例6: foreach
echo App::$lang['First Post Category'];
?>
</span></label><br />
<span class="fld-input"><select id="fld<?php
echo App::$forum_page['fld_count'];
?>
" name="cat_fp_id">
<?php
$cur_category = 0;
foreach ($forums as $cur_forum) {
if ($cur_forum['cid'] != $cur_category) {
if ($cur_category) {
echo "\t\t\t" . '</optgroup>' . "\n";
}
echo "\t\t\t" . '<optgroup label="' . forum_htmlencode($cur_forum['cat_name']) . '">' . "\n";
$cur_category = $cur_forum['cid'];
}
echo "\t\t\t\t\t\t\t\t" . '<option value="' . $cur_forum['fid'] . '">' . forum_htmlencode($cur_forum['forum_name']) . '</option>' . "\n";
}
?>
</select></span>
</div>
</div>
<div class="frm-buttons">
<span class="submit"><input type="submit" value="<?php
echo App::$lang['First Post Submit'];
?>
" name="fix_first_post"></span>
</div>
</form>
</div>
开发者ID:xSTRIGx,项目名称:PunBB.Extensions,代码行数:31,代码来源:admin_forums.php
示例7: forum_htmlencode
<div class="mf-field text mf-field1">
<label for="fld<?php
echo ++$forum_page['fld_count'];
?>
"><span><?php
echo $lang_admin_ranks['Rank title label'];
?>
</span></label><br />
<span class="fld-input"><input type="text" id="fld<?php
echo $forum_page['fld_count'];
?>
" name="rank[<?php
echo $cur_rank['id'];
?>
]" value="<?php
echo forum_htmlencode($cur_rank['rank']);
?>
" size="24" maxlength="50" /></span>
</div>
<?php
($hook = get_hook('ark_pre_edit_cur_rank_min_posts')) ? eval($hook) : null;
?>
<div class="mf-field text">
<label for="fld<?php
echo ++$forum_page['fld_count'];
?>
"><span class="fld-label"><?php
echo $lang_admin_ranks['Min posts label'];
?>
</span></label><br />
<span class="fld-input"><input type="text" id="fld<?php
开发者ID:vebnz,项目名称:lifelitup,代码行数:31,代码来源:ranks.php
示例8: forum_htmlencode
?>
">
<div class="sf-box text required">
<label for="fld<?php
echo ++$forum_page['fld_count'];
?>
"><span><?php
echo $lang_login['Password'];
?>
</span></label><br />
<span class="fld-input"><input type="password" id="fld<?php
echo $forum_page['fld_count'];
?>
" name="req_password" value="<?php
if (isset($_POST['req_password'])) {
echo forum_htmlencode($_POST['req_password']);
}
?>
" size="35" required /></span>
</div>
</div>
<?php
($hook = get_hook('li_login_pre_remember_me_checkbox')) ? eval($hook) : null;
?>
<div class="sf-set set<?php
echo ++$forum_page['item_count'];
?>
">
<div class="sf-box checkbox">
<span class="fld-input"><input type="checkbox" id="fld<?php
echo ++$forum_page['fld_count'];
开发者ID:torepublicStartpageCode,项目名称:torepublic2,代码行数:31,代码来源:login.php
示例9: array
$forum_page['ban_info'] = array();
$forum_page['ban_creator'] = $cur_ban['ban_creator_username'] != '' ? '<a href="' . forum_link($forum_url['user'], $cur_ban['ban_creator']) . '">' . forum_htmlencode($cur_ban['ban_creator_username']) . '</a>' : $lang_admin_common['Unknown'];
if ($cur_ban['username'] != '') {
$forum_page['ban_info']['username'] = '<li><span>' . $lang_admin_bans['Username'] . '</span> <strong>' . forum_htmlencode($cur_ban['username']) . '</strong></li>';
}
if ($cur_ban['email'] != '') {
$forum_page['ban_info']['email'] = '<li><span>' . $lang_admin_bans['E-mail'] . '</span> <strong>' . forum_htmlencode($cur_ban['email']) . '</strong></li>';
}
if ($cur_ban['ip'] != '') {
$forum_page['ban_info']['ip'] = '<li><span>' . $lang_admin_bans['IP-ranges'] . '</span> <strong>' . $cur_ban['ip'] . '</strong></li>';
}
if ($cur_ban['expire'] != '') {
$forum_page['ban_info']['expire'] = '<li><span>' . $lang_admin_bans['Expires'] . '</span> <strong>' . format_time($cur_ban['expire'], 1) . '</strong></li>';
}
if ($cur_ban['message'] != '') {
$forum_page['ban_info']['message'] = '<li><span>' . $lang_admin_bans['Message'] . '</span> <strong>' . forum_htmlencode($cur_ban['message']) . '</strong></li>';
}
($hook = get_hook('aba_view_ban_pre_display')) ? eval($hook) : null;
?>
<div class="ct-set set<?php
echo ++$forum_page['item_num'];
?>
">
<div class="ct-box">
<div class="ct-legend">
<h3 class=""><span><?php
printf($lang_admin_bans['Current ban head'], $forum_page['ban_creator']);
?>
</span></h3>
<p><?php
printf($lang_admin_bans['Edit or remove'], '<a href="' . forum_link($forum_url['admin_bans']) . '?edit_ban=' . $cur_ban['id'] . '">' . $lang_admin_bans['Edit ban'] . '</a>', '<a href="' . forum_link($forum_url['admin_bans']) . '?del_ban=' . $cur_ban['id'] . '&csrf_token=' . generate_form_token('del_ban' . $cur_ban['id']) . '">' . $lang_admin_bans['Remove ban'] . '</a>');
开发者ID:vebnz,项目名称:lifelitup,代码行数:31,代码来源:bans.php
示例10: forum_link
<?php
}
else
{
$cur_panel['title'] = $lang_common['Login'];
require_once FORUM_ROOT.'lang/'.$forum_user['language'].'/login.php';
$form_action = forum_link($forum_url['login']);
$forum_page['redirect_url'] = 'https://flazy.us/index.php';
?>
<div class="blocks">
<form method="post" action="<?php echo $form_action ?>">
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="redirect_url" value="<?php echo forum_htmlencode($forum_page['redirect_url']) ?>" /><?get_current_url()?>
<input type="hidden" name="csrf_token" value="<?php echo generate_form_token($form_action) ?>" />
<div align="center" class="logform">
<ul class="reset">
<label for="login_name"><?php echo $lang_login['Username'] ?>:</label><br /><input type="text" name="req_username" id="login_name" size="23" />
<label for="login_password"><?php echo $lang_login['Password'] ?> (<a href="forum/login.php?action=forget">Forgoten password</a>)</label><br /><input type="password" name="req_password" id="login_password" size="23" />
<?php echo $lang_login['Remember me'] ?></span> <input type="checkbox" size="3" id="fld-remember-me" name="save_pass" value="1" />
<button class="fbutton" onclick="submit();" type="submit" title="Login"><span>Login</span></button>
</ul>
<input name="login" type="hidden" id="login" value="submit" />
</div>
</form>
<noindex></noindex>
</div>
开发者ID:arielrossanigo,项目名称:trabajo_final,代码行数:31,代码来源:752ssuAe.PHP
示例11: forum_htmlencode
<div class="sf-box text">
<label for="fld<?php
echo ++$forum_page['fld_count'];
?>
"><span><?php
echo $lang_om_warnings['Search for username'];
?>
</span> <small><?php
echo $lang_om_warnings['Username help'];
?>
</small></label><br />
<span class="fld-input"><input type="text" id="fld<?php
echo $forum_page['fld_count'];
?>
" name="username" value="<?php
echo forum_htmlencode($forum_page['username']);
?>
" size="35" maxlength="25" /></span>
</div>
</div>
<?php
($hook = get_hook('om_warnings_list_pre_show_expired')) ? eval($hook) : null;
?>
<div class="sf-set set<?php
echo ++$forum_page['item_count'];
?>
">
<div class="sf-box checkbox">
<span class="fld-input"><input type="checkbox" id="fld<?php
echo ++$forum_page['fld_count'];
?>
开发者ID:keeshii,项目名称:punbb-extensions,代码行数:31,代码来源:list.php
示例12: while
<div class="main-subhead">
<h2 class="hn"><span><?php
echo $lang_admin_reports['Read reports heading'];
echo $forum_db->num_rows($result) ? '' : ' ' . $lang_admin_reports['No new reports'];
?>
</span></h2>
</div>
<div class="main-content main-frm">
<?php
while ($cur_report = $forum_db->fetch_assoc($result)) {
$reporter = $cur_report['reporter'] != '' ? '<a href="' . forum_link($forum_url['user'], $cur_report['reported_by']) . '">' . forum_htmlencode($cur_report['reporter']) . '</a>' : $lang_admin_reports['Deleted user'];
$forum = $cur_report['forum_name'] != '' ? '<a href="' . forum_link($forum_url['forum'], array($cur_report['forum_id'], sef_friendly($cur_report['forum_name']))) . '">' . forum_htmlencode($cur_report['forum_name']) . '</a>' : $lang_admin_reports['Deleted forum'];
$topic = $cur_report['subject'] != '' ? '<a href="' . forum_link($forum_url['topic'], array($cur_report['topic_id'], sef_friendly($cur_report['subject']))) . '">' . forum_htmlencode($cur_report['subject']) . '</a>' : $lang_admin_reports['Deleted topic'];
$message = str_replace("\n", '<br />', forum_htmlencode($cur_report['message']));
$post_id = $cur_report['pid'] != '' ? '<a href="' . forum_link($forum_url['post'], $cur_report['pid']) . '">Post #' . $cur_report['pid'] . '</a>' : $lang_admin_reports['Deleted post'];
$zapped_by = $cur_report['zapped_by'] != '' ? '<a href="' . forum_link($forum_url['user'], $cur_report['zapped_by_id']) . '">' . forum_htmlencode($cur_report['zapped_by']) . '</a>' : $lang_admin_reports['Deleted user'];
($hook = get_hook('arp_report_pre_display')) ? eval($hook) : null;
?>
<div class="ct-set report data-set set<?php
echo ++$forum_page['item_count'];
?>
">
<div class="ct-box data-box">
<h3 class="ct-legend hn"><strong><?php
echo ++$forum_page['item_num'];
?>
</strong> <cite class="username"><?php
printf($lang_admin_reports['Reported by'], $reporter);
?>
</cite> <span><?php
echo format_time($cur_report['created']);
开发者ID:vebnz,项目名称:lifelitup,代码行数:31,代码来源:reports.php
示例13: forum_htmlencode
<div class="sf-box text">
<label for="fld<?php
echo ++$forum_page['fld_count'];
?>
"><span><?php
echo $lang_admin_settings['SMTP password label'];
?>
</span><small><?php
echo $lang_admin_settings['SMTP password help'];
?>
</small></label><br />
<span class="fld-input"><input type="text" id="fld<?php
echo $forum_page['fld_count'];
?>
" name="form[smtp_pass]" size="35" maxlength="50" value="<?php
echo forum_htmlencode($forum_config['o_smtp_pass']);
?>
" /></span>
</div>
</div>
<?php
($hook = get_hook('aop_email_pre_smtp_ssl')) ? eval($hook) : null;
?>
<div class="sf-set set<?php
echo ++$forum_page['item_count'];
?>
">
<div class="sf-box checkbox">
<span class="fld-input"><input type="checkbox" id="fld<?php
echo ++$forum_page['fld_count'];
?>
开发者ID:ZerGabriel,项目名称:punbb,代码行数:31,代码来源:settings.php
示例14: defined
<?php
/**
* Make links redirectly
*
* hcs_redirect_links
* @copyright (C) 2012 hcs [email protected]
* @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*
* Extension for PunBB (C) 2008-2012 PunBB
* @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
// Make sure no one attempts to run this script "directly"
defined('FORUM') or die;
$forum_page['form_action'] = forum_link($forum_url['hcs_redirect_confirm']);
$forum_page['hidden_fields'] = array('csrf_token' => '<input type="hidden" name="csrf_token" value="' . generate_form_token($forum_page['form_action']) . '" />', 'prev_url' => '<input type="hidden" name="prev_url" value="' . forum_htmlencode($forum_user['prev_url']) . '" />', 'pid' => '<input type="hidden" name="pid" value="' . $pid . '" />', 'uid' => '<input type="hidden" name="uid" value="' . $uid . '" />', 'profile_id' => '<input type="hidden" name="profile_id" value="' . $profile_id . '" />', 'hash' => '<input type="hidden" name="hash" value="' . forum_htmlencode($_GET['hash']) . '" />');
define('FORUM_ALLOW_INDEX', 0);
$forum_head['robots'] = '<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />';
define('FORUM_PAGE', 'redirect-links-form');
require FORUM_ROOT . 'header.php';
// START SUBST - <!-- forum_main -->
ob_start();
?>
<div id="brd-main" class="main">
<div class="main-head">
<h2 class="hn"><span><?php
echo $lang_common['Confirm action head'];
?>
</span></h2>
</div>
开发者ID:mdb-webdev,项目名称:punbb_extensions,代码行数:31,代码来源:redirect_form.php
示例15: isset
?>
"><span><?php
echo $lang_profile['Confirm e-mail'];
?>
<em><?php
echo $lang_common['Required'];
?>
</em></span> <small><?php
echo $lang_profile['Confirm e-mail help'];
?>
</small></label><br />
<span class="fld-input"><input type="text" id="fld<?php
echo $forum_page['fld_count'];
?>
" name="req_email2" value="<?php
echo isset($_POST['req_email2']) ? forum_htmlencode($_POST['req_email2']) : '';
?>
" size="35" maxlength="80" /></span>
</div>
</div>
<?php
}
$languages = array();
$d = dir(FORUM_ROOT . 'lang');
while (($entry = $d->read()) !== false) {
if ($entry != '.' && $entry != '..' && is_dir(FORUM_ROOT . 'lang/' . $entry) && file_exists(FORUM_ROOT . 'lang/' . $entry . '/common.php')) {
$languages[] = $entry;
}
}
$d->close();
($hook = get_hook('rg_register_pre_language')) ? eval($hook) : null;
开发者ID:vebnz,项目名称:lifelitup,代码行数:31,代码来源:register.php
示例16: output_html
function output_html($feed)
{
// Send the Content-type header in case the web server is setup to send something else
header('Content-type: text/html; charset=utf-8');
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
foreach ($feed['items'] as $item) {
if (utf8_strlen($item['title']) > FORUM_EXTERN_MAX_SUBJECT_LENGTH) {
$subject_truncated = forum_htmlencode(forum_trim(utf8_substr($item['title'], 0, FORUM_EXTERN_MAX_SUBJECT_LENGTH - 5))) . '…';
} else {
$subject_truncated = forum_htmlencode($item['title']);
}
echo '<li><a href="' . $item['link'] . '" title="' . forum_htmlencode($item['title']) . '">' . $subject_truncated . '</a></li>' . "\n";
}
}
开发者ID:ZerGabriel,项目名称:punbb,代码行数:16,代码来源:extern.php
示例17: forum_htmlencode
<div class="entry-content">
<code>[url=<?php
echo $base_url . '/';
?>
]<?php
echo forum_htmlencode($forum_config['o_board_title']);
?>
[/url]</code> <span><?php
echo $lang_help['produces'];
?>
</span>
<samp><a href="<?php
echo $base_url . '/';
?>
"><?php
echo forum_htmlencode($forum_config['o_board_title']);
?>
</a></samp>
</div>
<div class="entry-content">
<code>[url]<?php
echo $base_url . '/';
?>
[/url]</code> <span><?php
echo $lang_help['produces'];
?>
</span>
<samp><a href="<?php
echo $base_url;
?>
"><?php
开发者ID:torepublicStartpageCode,项目名称:torepublic2,代码行数:31,代码来源:help.php
示例18: ob_start
ob_start();
}
}
// Define standard date/time formats
$forum_time_formats = array($forum_config['o_time_format'], 'H:i:s', 'H:i', 'g:i:s a', 'g:i a');
$forum_date_formats = array($forum_config['o_date_format'], 'Y-m-d', 'Y-d-m', 'd-m-Y', 'm-d-Y', 'M j Y', 'jS M Y');
// Create forum_page array
$forum_page = array();
// Login and fetch user info
$forum_user = array();
cookie_login($forum_user);
// Attempt to load the common language file
if (file_exists(FORUM_ROOT . 'lang/' . $forum_user['language'] . '/common.php')) {
include FORUM_ROOT . 'lang/' . $forum_user['language'] . '/common.php';
} else {
error('There is no valid language pack \'' . forum_htmlencode($forum_user['language']) . '\' installed.<br />Please reinstall a language of that name.');
}
// Setup the URL rewriting scheme
if ($forum_config['o_sef'] != 'Default' && file_exists(FORUM_ROOT . 'include/url/' . $forum_config['o_sef'] . '/forum_urls.php')) {
require FORUM_ROOT . 'include/url/' . $forum_config['o_sef'] . '/forum_urls.php';
} else {
require FORUM_ROOT . 'include/url/Default/forum_urls.php';
}
// A good place to modify the URL scheme
($hook = get_hook('co_modify_url_scheme')) ? eval($hook) : null;
// Check if we are to display a maintenance message
if ($forum_config['o_maintenance'] && $forum_user['g_id'] > FORUM_ADMIN && !defined('FORUM_TURN_OFF_MAINT')) {
maintenance_message();
}
// Load cached updates info
if ($forum_user['g_id'] == FORUM_ADMIN) {
开发者ID:ZerGabriel,项目名称:punbb,代码行数:31,代码来源:common.php
示例19: forum_htmlencode
<div class="mf-field">
<label for="fld<?php
echo ++$forum_page['fld_count'];
?>
"><span><?php
echo $lang_admin_censoring['Replacement label'];
?>
</span></label><br />
<span class="fld-input"><input type="text" id="fld<?php
echo $forum_page['fld_count'];
?>
" name="replace_with[<?php
echo $cur_word['id'];
?>
]" value="<?php
echo forum_htmlencode($cur_word['replace_with']);
?>
" size="24" maxlength="60" /></span>
</div>
<?php
($hook = get_hook('acs_pre_edit_submit')) ? eval($hook) : null;
?>
<div class="mf-field">
<span class="submit"><input type="submit" name="update[<?php
echo $cur_word['id'];
?>
]" value="<?php
echo $lang_admin_common['Update'];
?>
" /> <input type="submit" name="remove[<?php
echo $cur_word['id'];
开发者ID:vebnz,项目名称:lifelitup,代码行数:31,代码来源:censoring.php
示例20: get_hook
</div>
<?php
($hook = get_hook('vt_end')) ? eval($hook) : null;
$tpl_temp = forum_trim(ob_get_contents());
$tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <!-- forum_main -->
// Display quick post if enabled
if ($forum_config['o_quickpost'] == '1' && !$forum_user['is_guest'] && ($cur_topic['post_replies'] == '1' || $cur_topic['post_replies'] == '' && $forum_user['g_post_replies'] == '1') && ($cur_topic['closed'] == '0' || $forum_page['is_admmod'])) {
// START SUBST - <!-- forum_qpost -->
ob_start();
($hook = get_hook('vt_qpost_output_start')) ? eval($hook) : null;
// Setup form
$forum_page['form_action'] = forum_link($forum_url['new_reply'], $id);
$forum_page['form_attributes'] = array();
$forum_page['hidden_fields'] = array('form_sent' => '<input type="hidden" name="form_sent" value="1" />', 'form_user' => '<input type="hidden" name="form_user" value="' . (!$forum_user['is_guest'] ? forum_htmlencode($forum_user['username']) : 'Guest') . '" />', 'csrf_token' => '<input type="hidden" name="csrf_token" value="' . generate_form_token($forum_page['form_action']) . '" />');
if (!$forum_user['is_guest'] && $forum_config['o_subscriptions'] == '1' && ($forum_user['auto_notify'] == '1' || $cur_topic['is_subscribed'])) {
$forum_page['hidden_fields']['subscribe'] = '<input type="hidden" name="subscribe" value="1" />';
}
// Setup help
$forum_page['main_head_options'] = array();
if ($forum_config['p_message_bbcode'] == '1') {
$forum_page['text_options']['bbcode'] = '<span' . (empty($forum_page['text_options']) ? ' class="first-item"' : '') . '><a class="exthelp" href="' . forum_link($forum_url['help'], 'bbcode') . '" title="' . sprintf($lang_common['Help page'], $lang_common['BBCode']) . '">' . $lang_common['BBCode'] . '</a></span>';
}
if ($forum_config['p_message_img_tag'] == '1') {
$forum_page['text_options']['img'] = '<span' . (empty($forum_page['text_options']) ? ' class="first-item"' : '') . '><a class="exthelp" href="' . forum_link($forum_url['help'], 'img') . '" title="' . sprintf($lang_common['Help page'], $lang_common['Images']) . '">' . $lang_common['Images'] . '</a></span>';
}
if ($forum_config['o_smilies'] == '1') {
$forum_page['text_options']['smilies'] = '<span' . (empty($forum_page['text_options']) ? ' class="first-item"' : '') . '><a class="exthelp" href="' . forum_link($forum_url['help'], 'smilies') . '" title="' . sprintf($lang_common['Help page'], $lang_common['Smilies']) . '">' . $lang_common['Smilies'] . '</a></span>';
}
($hook = get_hook('vt_quickpost_pre_display')) ? eval($hook) : null;
开发者ID:vebnz,项目名称:lifelitup,代码行数:31,代码来源:viewtopic.php
注:本文中的forum_htmlencode函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论