options['bburl'] . '/archive/index.php');
}
// parse query string
$f = 0;
$p = 0;
$t = 0;
$output = '';
$endbit = str_replace('.html', '', $archive_info);
if (SLASH_METHOD)
{
$endbit = substr(strrchr($endbit, '/') , 1);
}
else if (strpos($endbit, '&') !== false)
{
$endbit = substr(strrchr($endbit, '&') , 1);
}
if ($endbit != '' AND $endbit != 'index.php')
{
$queryparts = explode('-', $endbit);
foreach ($queryparts AS $querypart)
{
if ($lastpart != '')
{
// can be:
// f: forumid
// p: pagenumber
// t: threadid
$$lastpart = $querypart;
$lastpart = '';
}
else
{
switch ($querypart)
{
case 'f':
case 'p':
case 't':
$lastpart = $querypart;
break;
default:
$lastpart = '';
}
}
}
}
else
{
$do = 'index';
}
$vbulletin->input->clean_array_gpc('r', array(
'pda' => TYPE_BOOL,
'login' => TYPE_BOOL,
'message' => TYPE_BOOL
));
$vbulletin->input->clean_array_gpc('c', array(
COOKIE_PREFIX . 'pda' => TYPE_UINT
));
$vbulletin->input->clean_array_gpc('p', array(
'username' => TYPE_STR,
'password' => TYPE_STR,
));
// check to see if the person is using a PDA if so we'll sort in ASC
// force a redirect afterwards so we dont get problems with search engines
if ($t)
{
$t = intval($t);
$querystring = 't-' . $t . iif($p, '-p-' . intval($p)) . '.html';
}
else if ($f)
{
$f = intval($f);
$querystring = 'f-' . $f . iif($p, '-p-' . intval($p)) . '.html';
}
if ($vbulletin->GPC['pda'])
{
vbsetcookie('pda', '1', 1);
exec_header_redirect($querystring);
}
else if ($vbulletin->GPC[COOKIE_PREFIX . 'pda'])
{
$pda = true;
}
$title = $vbulletin->options['bbtitle'];
if ($vbulletin->userinfo['userid'] == 0 AND $vbulletin->GPC['login'])
{
if (!empty($vbulletin->GPC['username']) AND !empty($vbulletin->GPC['password']))
{
require_once(DIR . '/includes/functions_login.php');
$strikes = verify_strike_status($vbulletin->GPC['username'], true);
if ($strikes === false)
{ // user has got too many wrong passwords
$error_message = fetch_error('strikes', $vbulletin->options['bburl'], $vbulletin->session->vars['sessionurl']);
$do = 'error';
}
else if (verify_authentication($vbulletin->GPC['username'], $vbulletin->GPC['password'], '', '', false, true))
{
exec_unstrike_user($vbulletin->GPC['username']);
$db->query_write("DELETE FROM " . TABLE_PREFIX . "session WHERE sessionhash = '" . $db->escape_string($vbulletin->session->vars['dbsessionhash']) . "'");
$vbulletin->session->vars = $vbulletin->session->fetch_session($vbulletin->userinfo['userid']);
/*insert query*/
$db->query_write("
INSERT INTO " . TABLE_PREFIX . "session
(sessionhash, userid, host, idhash, lastactivity, styleid, loggedin, bypass, useragent)
VALUES
('" . $db->escape_string($vbulletin->session->vars['sessionhash']) . "', " . $vbulletin->session->vars['userid'] . ", '" . $db->escape_string($vbulletin->session->vars['host']) . "', '" . $db->escape_string($vbulletin->session->vars['idhash']) . "', " . TIMENOW . ", " . $vbulletin->session->vars['styleid'] . ", 1, " . iif ($logintype === 'cplogin', 1, 0) . ", '" . $db->escape_string($vbulletin->session->vars['useragent']) . "')
");
exec_header_redirect($querystring);
}
else
{ // wrong username / password
exec_strike_user($vbulletin->userinfo['username']);
$error_message = fetch_error('badlogin', $vbulletin->options['bburl'], $vbulletin->session->vars['sessionurl'], $strikes);
$do = 'error';
}
}
}
if ($do == 'error')
{
}
else if ($t)
{
$do = 'thread';
$threadinfo = fetch_threadinfo($t);
$foruminfo = fetch_foruminfo($threadinfo['forumid']);
$threadinfo['meta_description'] = strip_bbcode(strip_quotes($threadinfo['description']), false, true);
$threadinfo['meta_description'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title($threadinfo['meta_description'], 500, false)));
$forumperms = $vbulletin->userinfo['forumpermissions'][$foruminfo['forumid']];
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) OR in_coventry($threadinfo['postuserid']) OR $threadinfo['isdeleted'] OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')))
{
exit;
}
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
if (trim($foruminfo['link']) != '')
{
exec_header_redirect($foruminfo['link'], true);
}
$title = "$threadinfo[prefix_plain_html] $threadinfo[title] [$vbphrase[archive]] " . ($p > 1 ? ' - ' . construct_phrase($vbphrase['page_x'], $p) : '') . " - $title";
$p = intval($p);
$metatags = "
";
}
else if ($f)
{
$do = 'forum';
$forumperms = $vbulletin->userinfo['forumpermissions'][$f];
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
exit;
}
$foruminfo = fetch_foruminfo($f, false);
if (trim($foruminfo['link']) != '')
{
// add session hash to local links if necessary
if (preg_match('#^([a-z0-9_]+\.php)(\?.*$)?#i', $foruminfo['link'], $match))
{
if ($match[2])
{
// we have a ?xyz part, put session url at beginning if necessary
$query_string = preg_replace('/([^a-z0-9])(s|sessionhash)=[a-z0-9]{32}(&|&)?/', '\\1', $match[2]);
$foruminfo['link'] = $match[1] . '?' . $vbulletin->session->vars['sessionurl_js'] . substr($query_string, 1);
}
else
{
$foruminfo['link'] .= $vbulletin->session->vars['sessionurl_q'];
}
}
exec_header_redirect($foruminfo['link'], true);
}
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
$title = "$foruminfo[title_clean] [$vbphrase[archive]]" . ($p > 1 ? ' - ' . construct_phrase($vbphrase['page_x'], $p) : '') . " - $title";
$p = intval($p);
$metatags = " options['keywords'] . "\" />
1 ? construct_phrase($vbphrase['page_x'], $p) . " " : "") . $foruminfo['description_clean'] . "\" />
";
}
else
{
$do = 'index';
$metatags = " options['keywords'] . "\" />
options['description'] . "\" />";
}
($hook = vBulletinHook::fetch_hook('archive_process_start')) ? eval($hook) : false;
if ($pda AND $vbulletin->userinfo['userid'] == 0 AND $vbulletin->GPC['login'] AND $do != 'error')
{
$do = 'login';
}
if ($pda AND $vbulletin->userinfo['userid'] > 0 AND $vbulletin->GPC['message'] AND false)
{
$do = 'message';
}
// ad locations
$ad_templates = fetch_ad_templates(array('ad_archive_above_content1', 'ad_archive_above_content2', 'ad_archive_below_content'));
$output .= "
$metatags
$title
options['bburl'] . "/archive/archive.css\" />
";
($hook = vBulletinHook::fetch_hook('archive_postheader')) ? eval($hook) : false;
// ********************************************************************************************
// display board
if ($do == 'index')
{
$output .= print_archive_navigation(array());
$output .= "
$vbphrase[view_full_version]: options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php">' . $vbulletin->options['bbtitle'] . "
\n";
$output .= "
";
$output .= $ad_templates['ad_archive_above_content1'];
$output .= $ad_templates['ad_archive_above_content2'];
$output .= "
";
$output .= "
\n";
$output .= print_archive_forum_list();
$output .= "
\n";
}
if ($Coventry = fetch_coventry('string'))
{
$globalignore = "AND " . iif($do == 'forum', 'thread.post', 'post.') . "userid NOT IN ($Coventry) ";
}
else
{
$globalignore = '';
}
// ********************************************************************************************
// display forum
if ($do == 'forum')
{
// list threads
$output .= print_archive_navigation($foruminfo);
$output .= "
$vbphrase[view_full_version] : options['bburl'] . '/' . fetch_seo_url('forum', $foruminfo) . "\">$foruminfo[title_clean]
\n
\n";
$output .= "
";
$output .= $ad_templates['ad_archive_above_content1'];
$output .= $ad_templates['ad_archive_above_content2'];
$output .= "
";
if ($foruminfo['cancontainthreads'])
{
if (!$p)
{
$p = 1;
}
$output .= print_archive_page_navigation($foruminfo['threadcount'], $vbulletin->options['archive_threadsperpage'], "f-$foruminfo[forumid]");
$threads = $db->query_read_slave("
SELECT threadid, title, prefixid, lastpost, replycount
FROM " . TABLE_PREFIX . "thread AS thread
WHERE forumid = $foruminfo[forumid]
AND visible = 1
AND open <> 10
$globalignore
ORDER BY dateline " . iif($pda, 'DESC', 'ASC') . "
LIMIT " . ($p - 1) * $vbulletin->options['archive_threadsperpage'] . ',' . $vbulletin->options['archive_threadsperpage']
);
$start = ($p - 1) * $vbulletin->options['archive_threadsperpage'] + 1;
if ($pda AND false)
{
$output .= "
New Thread ";
}
$output .= "
\n
\n";
while ($thread = $db->fetch_array($threads))
{
if ($vbulletin->options['wordwrap'] != 0)
{
$thread['title'] = fetch_word_wrapped_string($thread['title']);
}
$thread['title'] = fetch_censored_text($thread['title']);
$thread['prefix_plain_html'] = ($thread['prefixid'] ? htmlspecialchars($vbphrase["prefix_$thread[prefixid]_title_plain"]) : '');
($hook = vBulletinHook::fetch_hook('archive_forum_thread')) ? eval($hook) : false;
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
{
$output .= "\t$thread[prefix_plain_html] $thread[title]" . iif($pda, " (" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ") ") . " \n";
}
else if ($vbulletin->options['archive_threadtype'] OR $pda)
{
$output .= "\t$thread[prefix_plain_html] options['bburl'] . '/archive/index.php' . (SLASH_METHOD ? '/' : '?') . "t-$thread[threadid].html\">$thread[title] " . iif($pda, " (" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ") ") . " \n";
}
else
{
$output .= "\t$thread[prefix_plain_html] options['bburl'] . '/' . fetch_seo_url('thread', $thread) . "\">$thread[title] \n";
}
}
$output .= " \n
\n";
}
else
{
$output .= "
\n";
$output .= print_archive_forum_list($f);
$output .= "
\n";
}
}
// ********************************************************************************************
// display thread
if ($do == 'thread')
{
if (!$vbulletin->options['archive_threadtype'])
{
// if we are not using the archive threadtype, invisibly redirect to the full thread view
exec_header_redirect($vbulletin->options['bburl'] . '/' . fetch_seo_url('thread|js', $threadinfo));
}
if ($vbulletin->options['wordwrap'] != 0)
{
$threadinfo['title'] = fetch_word_wrapped_string($threadinfo['title']);
}
$threadinfo['title'] = fetch_censored_text($threadinfo['title']);
$output .= print_archive_navigation($foruminfo, $threadinfo);
$output .= "
$vbphrase[view_full_version] : "
. ($threadinfo['prefix_plain_html'] ? "$threadinfo[prefix_plain_html] " : '' )
. "options['bburl'] . '/' . fetch_seo_url('thread', $threadinfo) . "\">$threadinfo[title]
\n
\n";
if ($p == 0)
{
$p = 1;
}
$output .= "
";
$output .= $ad_templates['ad_archive_above_content1'];
$output .= $ad_templates['ad_archive_above_content2'];
$output .= "
";
$output .= print_archive_page_navigation($threadinfo['replycount'] + 1, $vbulletin->options['archive_postsperpage'], "t-$threadinfo[threadid]");
$posts = $db->query_read_slave("
SELECT post.postid, post.pagetext, IFNULL( user.username , post.username ) AS username, dateline
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = post.userid)
WHERE threadid = $threadinfo[threadid]
AND visible = 1
$globalignore
ORDER BY dateline ASC
LIMIT " . (($p - 1) * $vbulletin->options['archive_postsperpage']) . ',' . $vbulletin->options[archive_postsperpage]
);
if ($pda AND false)
{
$output .= "
New Reply ";
}
$i = 0;
while ($post = $db->fetch_array($posts))
{
$i++;
$post['pagetext_simp'] = strip_bbcode($post['pagetext']);
$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);
if ($vbulletin->options['wordwrap'] != 0)
{
$post['pagetext_simp'] = fetch_word_wrapped_string($post['pagetext_simp']);
}
$post['pagetext_simp'] = fetch_censored_text($post['pagetext_simp']);
($hook = vBulletinHook::fetch_hook('archive_thread_post')) ? eval($hook) : false;
$output .= "\n
$post[username]
$post[postdate], $post[posttime]
";
$output .= "
" . nl2br(htmlspecialchars_uni($post['pagetext_simp'])) . "
\n\n";
}
}
// ********************************************************************************************
// display login
if ($do == 'login')
{
$output .= print_archive_navigation(array());
$output .= "
$vbphrase[view_full_version]: options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php">' . $vbulletin->options['bbtitle'] . "
\n";
$output .= "
";
$output .= $ad_templates['ad_archive_above_content1'];
$output .= $ad_templates['ad_archive_above_content2'];
$output .= "
";
if (SLASH_METHOD)
{
$loginlink = 'index.php' . (!empty($querystring) ? "/$querystring" : '') . '?login=1';
}
else
{
$loginlink = 'index.php?login=1';
}
$output .= "
\n";
$output .= "$vbphrase[log_in] \n";
$output .= "\n";
$output .= "
\n";
}
// ********************************************************************************************
// display error
if ($do == 'error')
{
$output .= print_archive_navigation(array());
$output .= "
$vbphrase[view_full_version]: options['bburl'] . '/' . $vbulletin->options['forumhome'] . '.php">' . $vbulletin->options['bbtitle'] . "
\n";
$output .= "
";
$output .= $ad_templates['ad_archive_above_content1'];
$output .= $ad_templates['ad_archive_above_content2'];
$output .= "
";
$output .= "
\n";
$output .= $error_message;
$output .= "
\n";
}
// ad locations
($hook = vBulletinHook::fetch_hook('archive_complete')) ? eval($hook) : false;
$output .= $ad_templates['ad_archive_below_content'];
$output .= "
$vbphrase[vbulletin_copyright]
Find and buy
toyota park .Official site of the 2009 Jeep
wrangler .Visit Subaru of America for reviews, pricing and photos of
impreza .2006 Nissan 350Z highlights from Consumer Guide Automotive. Learn about the
2006 nissan 350z .Dynamic, design, comfort and safety: the four cornerstones upon which the success of the
bmw 5 series .Find and buy
toyota center kennewick .Contact: View company contact information fo
protege .What does this mean for
legacy .The website of American
suzuki motorcycle .The site for all new 2009
chevy .Use the Organic
natural food stores .Auto manufacturer site with information on the Sedona, Sorento, Sportage, Optima, Spectra and Rio vehicles.
kia .Get more online information on
hyundai getz .Find and buy
used nissan 350z .Kia cars, commercial vehicles, dealers, news and history in Australia.
kia com .Site for Ford's cars and minivans, trucks, and SUVs. Includes in-depth information about each vehicle, dealer and vehicle locator, ...
fords dealers .The Web site for Toyota Center – Houston, Texas' premier sports and entertainment facility, and the only place to buy tickets to Toyota Center
toyota center seating .Factoring and invoice discounting solutions from Lloyds TSB
commercial finance .Read Fodor's reviews to find the best travel destinations, hotels and restaurants. Plan your trip online with Fodor's.
travel guide .Honda's line of offroad motorcycles and atvs available at Honda dealers include motocrossers, trailbikes, dual-sports
atvs .Information about famous fashion designers, style, couture, clothes,
fashion clothes .Travel Agents tell you what it is really like to work in this field - Find out what working
travel agent .Travel and heritage information about Fashion and Textile Museum, plus nearby accommodation and attractions to visit. Part of the Greater London Travel
fashion .Get buying advice on the Mazda
rx8 science of managing
online marketing
emission is distinctive
Kelley Blue
Atlanta based
World War
Mad Max
programming languages
suck him
Prime Minister
water particles
direct result
gift baskets
grow study still learn
aware of this
better way
online music
online casino
such follow
pregnant women
get around
person money serve
prescription drugs
ancient Swahili
deep inside
Intrinsa patches
make use
could easily
Australian visa
good idea
giving away
San Francisco
Australian people
often referred
market study
distilled water
philosophy had
last night
started rubbing
way associated
taken for granted
Audi Motorsport
suddenly realized
real estate
luxury car
get hold
emitted in a narrow
good way
ice climbing
bending over
free online
great way
could find
dance engine
dating sites
World War
customer service
Online Casino
secondary school
Version numbers
difficult doctor please
freely reprinted
dynamic online
programming language
goji juice
";
if (defined('NOSHUTDOWNFUNC'))
{
exec_shut_down();
}
echo $output;
($hook = vBulletinHook::fetch_hook('archive_complete_postoutput')) ? eval($hook) : false;
/*======================================================================*\
|| ####################################################################
|| # CVS: $RCSfile$ - $Revision: 32878 $
|| ####################################################################
\*======================================================================*/
?>