settings['bbname']; } else { $title = $mybb->settings['bbname']." - ".$title; } // If the language doesn't have a charset, make it UTF-8. if($lang->settings['charset']) { $charset = $lang->settings['charset']; } else { $charset = "utf-8"; } $dir = ''; if($lang->settings['rtl'] == 1) { $dir = " dir=\"rtl\""; } if($lang->settings['htmllang']) { $htmllang = " xml:lang=\"".$lang->settings['htmllang']."\" lang=\"".$lang->settings['htmllang']."\""; } else { $htmllang = " xml:lang=\"en\" lang=\"en\""; } ?> > <?php echo $title; ?>

settings['bbname_orig']; ?>

archive_fullversion; ?>
sprintf($lang->archive_note, $fullurl); ?>
$navbit) { if($navbits[$key+1]) { if($navbits[$key+2]) { $sep = $navsep; } else { $sep = ""; } $nav .= "".$navbit['name']."$sep"; } } } $navsize = count($navbits); $navbit = $navbits[$navsize-1]; if($nav) { $activesep = $navsep; } $nav .= $activesep.$navbit['name']; return $nav; } /** * Output multipage navigation. * * @param int The total number of items. * @param int The items per page. * @param int The current page. * @param string The URL base. */ function archive_multipage($count, $perpage, $page, $url) { global $lang; if($count > $perpage) { $pages = $count / $perpage; $pages = ceil($pages); for($i = 1; $i <= $pages; ++$i) { if($i == $page) { $mppage .= "$i "; } else { $mppage .= "$i "; } } $multipage = "
".$lang->archive_pages." $mppage
"; echo $multipage; } } /** * Output the archive footer. * */ function archive_footer() { global $mybb, $lang, $db, $nav, $maintimer, $fulltitle, $fullurl, $sent_header; $totaltime = $maintimer->stop(); if($mybb->settings['showvernum'] == 1) { $mybbversion = ' '.$mybb->version; } else { $mybbversion = ""; } ?>
archive_reference_urls; ?>
settings['bbname'], $mybb->settings['bburl']."/index.php"); } ?>
error; ?>
'1', "location1" => 0, "location2" => 0 ); $db->update_query("sessions", $noperm_array, "sid='{$session->sid}'", 1); archive_error($lang->archive_nopermission); } /** * Check the password given on a certain forum for validity * * @param int The forum ID * @param boolean The Parent ID */ function check_forum_password_archive($fid, $pid=0) { global $forum_cache; if(!is_array($forum_cache)) { $forum_cache = cache_forums(); if(!$forum_cache) { return false; } } // Loop through each of parent forums to ensure we have a password for them too $parents = explode(',', $forum_cache[$fid]['parentlist']); rsort($parents); if(!empty($parents)) { foreach($parents as $parent_id) { if($parent_id == $fid || $parent_id == $pid) { continue; } if($forum_cache[$parent_id]['password'] != "") { check_forum_password_archive($parent_id, $fid); } } } $password = $forum_cache[$fid]['password']; if($password) { if(!$mybb->cookies['forumpass'][$fid] || ($mybb->cookies['forumpass'][$fid] && md5($mybb->user['uid'].$password) != $mybb->cookies['forumpass'][$fid])) { archive_error_no_permission(); } } } ?>