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


PHP bbcode::auto_bb方法代码示例

本文整理汇总了PHP中bbcode::auto_bb方法的典型用法代码示例。如果您正苦于以下问题:PHP bbcode::auto_bb方法的具体用法?PHP bbcode::auto_bb怎么用?PHP bbcode::auto_bb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在bbcode的用法示例。


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

示例1: array

    echo '<div class="phdr"><a href="index.php?id=' . $id . '"><b>' . $lng['forum'] . '</b></a> | ' . $lng_forum['new_topic'] . '</div>';
    if ($msg && $th && !isset($_POST['submit'])) {
        echo '<div class="list1"><img src="../theme/default/images/op.gif" border="0" alt="op" /> <span style="font-weight: bold">' . $th . '</span></div>' . '<div class="list2">' . functions::display_user($datauser, array('iphide' => 1, 'header' => '<span class="gray">(' . functions::display_date(time()) . ')</span>', 'body' => $msg_pre)) . '</div>';
    }
    echo '<form name="form" action="index.php?act=nt&amp;id=' . $id . '" method="post">' . '<div class="gmenu">' . '<p><h3>' . $lng['section'] . '</h3>' . '<a href="index.php?id=' . $res_c['id'] . '">' . $res_c['text'] . '</a> | <a href="index.php?id=' . $res_r['id'] . '">' . $res_r['text'] . '</a></p>' . '<p><h3>' . $lng_forum['new_topic_name'] . '</h3>';
    echo '<select name="tiento">
			<option value="0">No Prefix</option>
			<option value="1">Discuss</option>
			<option value="2">Share</option>
			<option value="3">Info</option>
			<option value="4">Tutorial</option>
			<option value="5">Help</option>
			<option value="6">Ask</option>
			<option value="7">Request</option>
			<option value="8">Movie</option>
			<option value="9">Ongoing</option>
			<option value="10">Completed</option>
		</select>
		';
    echo '<input type="text" size="20" maxlength="100" name="th" value="' . $th . '"/></p>' . '<p><h3>' . $lng_forum['post'] . '</h3>';
    if (!$is_mobile) {
        echo '</p><p>' . bbcode::auto_bb('form', 'msg');
    }
    echo '<textarea rows="' . $set_user['field_h'] . '" name="msg">' . (isset($_POST['msg']) ? functions::checkout($_POST['msg']) : '') . '</textarea></p>' . '<p><input type="checkbox" name="addfiles" value="1" ' . (isset($_POST['addfiles']) ? 'checked="checked" ' : '') . '/> ' . $lng_forum['add_file'];
    if ($set_user['translit']) {
        echo '<br /><input type="checkbox" name="msgtrans" value="1" ' . (isset($_POST['msgtrans']) ? 'checked="checked" ' : '') . '/> ' . $lng['translit'];
    }
    $token = mt_rand(1000, 100000);
    $_SESSION['token'] = $token;
    echo '</p><p><input type="submit" name="submit" value="' . $lng['save'] . '" style="width: 107px; cursor: pointer;"/> ' . ($set_forum['preview'] ? '<input type="submit" value="' . $lng['preview'] . '" style="width: 107px; cursor: pointer;"/>' : '') . '<input type="hidden" name="token" value="' . $token . '"/>' . '</p></div></form>' . '<div class="phdr"><a href="../pages/faq.php?act=trans">' . $lng['translit'] . '</a> | ' . '<a href="../pages/faq.php?act=smileys">' . $lng['smileys'] . '</a></div>' . '<p><a href="index.php?id=' . $id . '">' . $lng['back'] . '</a></p>';
}
开发者ID:chegestar,项目名称:catroxs,代码行数:31,代码来源:nt.php

示例2: msg_form

 private function msg_form($submit_link = '', $text = '', $reply = '')
 {
     return '<div class="gmenu"><form name="form" action="' . $this->url . $submit_link . '" method="post"><p>' . (!empty($text) ? '<div class="quote">' . $text . '</div></p><p>' : '') . '<b>' . core::$lng['message'] . '</b>: <small>(Max. ' . $this->max_lenght . ')</small><br />' . (!core::$is_mobile ? '</p><p>' . bbcode::auto_bb('form', 'message') : '') . '<textarea rows="' . core::$user_set['field_h'] . '" name="message">' . $reply . '</textarea><br/>' . (core::$user_set['translit'] ? '<input type="checkbox" name="translit" value="1" />&nbsp;' . core::$lng['translit'] . '<br/>' : '') . '<input type="hidden" name="code" value="' . rand(1000, 9999) . '" /><input type="submit" name="submit" value="' . core::$lng['sent'] . '"/></p></form></div>';
 }
开发者ID:chegestar,项目名称:catroxs,代码行数:4,代码来源:comments.php

示例3: mt_rand

     if ($rights >= 7) {
         $menu[] = '<a href="index.php?act=clean">' . $lng['clear'] . '</a>';
     }
     echo '<div class="topmenu">' . functions::display_menu($menu) . '</div>';
 }
 // Форма ввода нового сообщения
 if (($user_id || $set['mod_guest'] == 2) && !isset($ban['1']) && !isset($ban['13'])) {
     $token = mt_rand(1000, 100000);
     $_SESSION['token'] = $token;
     echo '<div class="gmenu"><form name="form" action="index.php?act=say" method="post">';
     if (!$user_id) {
         echo $lng['name'] . ' (max 25):<br/><input type="text" name="name" maxlength="25"/><br/>';
     }
     echo '<b>' . $lng['message'] . '</b> <small>(max 5000)</small>:<br/>';
     if (!$is_mobile) {
         echo bbcode::auto_bb('form', 'msg');
     }
     echo '<textarea rows="' . $set_user['field_h'] . '" name="msg"></textarea><br/>';
     if ($set_user['translit']) {
         echo '<input type="checkbox" name="msgtrans" value="1" />&nbsp;' . $lng['translit'] . '<br/>';
     }
     if (!$user_id) {
         // CAPTCHA для гостей
         echo '<img src="../captcha.php?r=' . rand(1000, 9999) . '" alt="' . $lng['captcha'] . '"/><br />' . '<input type="text" size="5" maxlength="5"  name="code"/>&#160;' . $lng['captcha'] . '<br />';
     }
     echo '<input type="hidden" name="token" value="' . $token . '"/>' . '<input type="submit" name="submit" value="' . $lng['sent'] . '"/></form></div>';
 } else {
     echo '<div class="rmenu">' . $lng['access_guest_forbidden'] . '</div>';
 }
 if (isset($_SESSION['ga']) && $rights >= "1") {
     $req = mysql_query("SELECT COUNT(*) FROM `guest` WHERE `adm`='1'");
开发者ID:chegestar,项目名称:catroxs,代码行数:31,代码来源:index.php

示例4: mysql_query

        mysql_query("UPDATE `users` SET `lastpost` = '" . time() . "' WHERE `id` = '{$user_id}';");
        if ($ch == 0) {
            mysql_query("UPDATE `cms_contact` SET `time` = '" . time() . "' WHERE `user_id` = '" . $user_id . "' AND\n\t\t\t`from_id` = '" . $id . "';");
            mysql_query("UPDATE `cms_contact` SET `time` = '" . time() . "' WHERE `user_id` = '" . $id . "' AND\n\t\t\t`from_id` = '" . $user_id . "';");
        }
        Header('Location: index.php?act=write' . ($id ? '&id=' . $id : ''));
        exit;
    } else {
        $out .= '<div class="rmenu">' . implode('<br />', $error) . '</div>';
    }
}
if (!functions::is_ignor($id) && empty($ban['1']) && empty($ban['3'])) {
    $out .= isset($_SESSION['error']) ? $_SESSION['error'] : '';
    $out .= '<div class="gmenu">' . '<form name="form" action="index.php?act=write' . ($id ? '&amp;id=' . $id : '') . '" method="post"  enctype="multipart/form-data">' . ($id ? '' : '<p><input type="text" name="nick" maxlength="15" value="' . (!empty($_POST['nick']) ? functions::check($_POST['nick']) : '') . '" placeholder="' . $lng_mail['to_whom'] . '?"/></p>') . '<p>';
    if (!$is_mobile) {
        $out .= bbcode::auto_bb('form', 'text');
    }
    $out .= '<textarea rows="' . $set_user['field_h'] . '" name="text"></textarea></p>';
    if ($set_user['translit']) {
        $out .= '<input type="checkbox" name="msgtrans" value="1" ' . (isset($_POST['msgtrans']) ? 'checked="checked" ' : '') . '/> ' . $lng['translit'] . '<br />';
    }
    $out .= '<p><input type="file" name="fail" style="width: 100%; max-width: 160px"/></p>';
    $out .= '<p><input type="submit" name="submit" value="' . $lng['sent'] . '"/></p>' . '</form></div>' . '<div class="phdr"><b>' . ($id && isset($qs) ? $lng_mail['personal_correspondence'] . ' ' . $qs['name'] : $lng_mail['sending_the_message']) . '</b></div>';
}
if ($id) {
    $total = mysql_result(mysql_query("SELECT COUNT(*) FROM `cms_mail` WHERE ((`user_id`='{$id}' AND `from_id`='{$user_id}') OR (`user_id`='{$user_id}' AND `from_id`='{$id}')) AND `sys`!='1' AND `delete`!='{$user_id}' AND `spam`='0'"), 0);
    if ($total) {
        if ($total > $kmess) {
            $out .= '<div class="topmenu">' . functions::display_pagination('index.php?act=write&amp;id=' . $id . '&amp;', $start, $total, $kmess) . '</div>';
        }
        $req = mysql_query("SELECT `cms_mail`.*, `cms_mail`.`id` as `mid`, `cms_mail`.`time` as `mtime`, `users`.*\n            FROM `cms_mail`\n            LEFT JOIN `users` ON `cms_mail`.`user_id`=`users`.`id`\n            WHERE ((`cms_mail`.`user_id`='{$id}' AND `cms_mail`.`from_id`='{$user_id}') OR (`cms_mail`.`user_id`='{$user_id}' AND `cms_mail`.`from_id`='{$id}'))\n            AND `cms_mail`.`delete`!='{$user_id}'\n            AND `cms_mail`.`sys`!='1'\n            AND `cms_mail`.`spam`='0'\n            ORDER BY `cms_mail`.`time` DESC\n            LIMIT " . $start . "," . $kmess);
开发者ID:chegestar,项目名称:catroxs,代码行数:31,代码来源:write.php


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