Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: index.php 2164 2006-08-30 06:17:49Z chris $
| * $Id: index.php 2208 2006-09-10 02:01:17Z chris $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 141 | Zeile 141 |
---|
// Parse the message $parser_options = array(
|
// Parse the message $parser_options = array(
|
"allow_html" => $forum['allow_html'], "allow_mycode" => $forum['allow_mycode'],
| "allow_html" => $forum['allowhtml'], "allow_mycode" => $forum['allowmycode'],
|
"allow_smilies" => $forum['allowsmilies'], "allow_imgcode" => $forum['allowimgcode'], "me_username" => $post['username']
| "allow_smilies" => $forum['allowsmilies'], "allow_imgcode" => $forum['allowimgcode'], "me_username" => $post['username']
|
Zeile 159 | Zeile 159 |
---|
{ foreach($acache[$post['pid']] as $aid => $attachment) {
|
{ foreach($acache[$post['pid']] as $aid => $attachment) {
|
$post['message'] = str_replace("[attachment=$attachment[aid]]", "[<a href=\"".$mybb->settings['bburl']."/attachment.php?aid=$attachment[aid]\">attachment=$attachment[aid]</a>]", $post['message']);
| $post['message'] = str_replace("[attachment={$attachment['aid']}]", "[<a href=\"".$mybb->settings['bburl']."/attachment.php?aid={$attachment['aid']}\">attachment={$attachment['aid']}</a>]", $post['message']);
|
} }
| } }
|
Zeile 246 | Zeile 246 |
---|
// Get the announcements if the forum is not a category. if($forum['type'] == 'f') {
|
// Get the announcements if the forum is not a category. if($forum['type'] == 'f') {
|
$sql = build_parent_list($forum['fid'], "fid", "OR", $form['parentlist']);
| $sql = build_parent_list($forum['fid'], "fid", "OR", $forum['parentlist']);
|
$time = time(); $query = $db->simple_select(TABLE_PREFIX."announcements", "*", "startdate < '{$time}' AND (enddate > '{$time}' OR enddate=0) AND ({$sql} OR fid='-1')"); if($db->num_rows($query) > 0)
| $time = time(); $query = $db->simple_select(TABLE_PREFIX."announcements", "*", "startdate < '{$time}' AND (enddate > '{$time}' OR enddate=0) AND ({$sql} OR fid='-1')"); if($db->num_rows($query) > 0)
|