Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright © 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright © 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: index.php 2164 2006-08-30 06:17:49Z chris $
| * $Id: index.php 2951 2007-03-16 05:40:28Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 108 | Zeile 108 |
---|
$pids = array(); // Fetch list of post IDs to be shown
|
$pids = array(); // Fetch list of post IDs to be shown
|
$query = $db->simple_select(TABLE_PREFIX."posts", "pid", "tid='{$id}' AND visible='1'", array('limit_start' => $start, 'limit' => $perpage));
| $query = $db->simple_select(TABLE_PREFIX."posts", "pid", "tid='{$id}' AND visible='1'", array('order_by' => 'dateline', 'limit_start' => $start, 'limit' => $perpage));
|
while($post = $db->fetch_array($query)) { $pids[$post['pid']] = $post['pid'];
| while($post = $db->fetch_array($query)) { $pids[$post['pid']] = $post['pid'];
|
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 210 | Zeile 210 |
---|
{ $page = 1; }
|
{ $page = 1; }
|
if($page)
| if($page > 0)
|
{ $start = ($page-1) * $perpage; }
| { $start = ($page-1) * $perpage; }
|
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)
|