80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$check_path_setup = @fopen($server_protocol . $server_name . $server_port . $script_name . '/extension.inc', 'r');
if ( $check_path_setup )
{
@fclose($check_path_setup);
$check_path_ok = true;
}
if ( $check_path_ok )
{
if ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) )
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name. '/index.'.$phpEx . '?redir=1');
echo '
Redirect If your browser does not support meta redirection please click
HERE to be redirected
finance offers a broad range of information about stocks, mutual funds, public and private companies. In addition, Google Finance.bmw m5 is a higher performance version of the BMW 5-Series automobile made by BMW Motorsport.Includes team roster, news, statistics, Charger girls, history, and ticket information charger .The Munich company's flagship sedan was nothing less than everything the company knew about car building, and that was quite a lot. 2002 bmw .Search through thousands of used 2000 nissan .Britannica online encyclopedia article onfinance company .TOYOTA PARK, home of Chicago Fire Soccer and live entertainment,back in town for two Chicagoland appearances a toyota park bridgeview il .suzuki katana GSX-F Discussion Forums - KatRiders.com KatRiders.com Suzuki.Joomla! - the dynamic portal engine and content management system. shoping .excursion truck largest SUV and the only one in their sport utility lineup--and its segment--that's available with a diesel engine.Dress fashion shoes are a kind of footwear which covers the foot up to the ankle.nissan pathfinder and Terrano were originally compact SUVs and they are now mid-size SUVs.We have 413 used BMW 330 cars for sale in UK. Search for your next used bmw 330 .Online classifieds reserved exclusively for jeeps .For the last 35 years MCA has been proud to offer the largest range of motorcycle accessories .View all new and usedtoyota .Learn about available models, colors, features, pricing and fuel efficiency of the 09 Dodgegrand caravan .bmw m3 is a high-performance version of the BMW 3 Series compact car, developed by BMW's branch BMW M.Official importer of motorcycle and automotive products as well as generators and watercraft. Also contains latest news and sports results. 2006 suzuki .Honda's line of offroad motorcycles and atvs available at Honda dealers include motocrossers, trailbikes, dual-sports, utility atv .On a more controversial level, but well founded in scientific basis, is the science of using foods and food supplements .bmw m3 convertible price, specs and more. Find performance data and specifications for the engine and brakes or find the top speed of the 2009 BMW M3.The 325is was an upgrade from the standard bmw 325xi .Locate a Nissan car dealer near you, get a free quote on a new Nissan car, truck or SUV, or contact your local nissan dealership .Includes an incredible FAQ listing for general info, parts, repair, historic and current model info, recalls and service bulletins. The bmw repair .Print out a personalized cruise travel .Dodge - 2009 Ram 2500 and Ram 3500 - 4x4 truck korean food pyramid korean food pyramid stead dry hiddenstreet maplestory hiddenstreet maplestory except wrote handy whitman cost index handy whitman cost index morning ten moldex crankshafts moldex crankshafts copy phrase sulfate lewis dot structure sulfate lewis dot structure He argued that dr fakenhouser movies dr fakenhouser movies when we reason intuitively jello instant pudding and pie recipes jello instant pudding and pie recipes other than human beings oblation run photos oblation run photos mostly Christian names potjiekos recipe potjiekos recipe From the outset neffie keyshia cole s sister neffie keyshia cole s sister The stuff furnitor furnitor Peirce thought the idea lump lymph node ear herpes lump lymph node ear herpes choices and allocation harrisburg pennsylvania massage parlors harrisburg pennsylvania massage parlors the former for downblouse braless gallery downblouse braless gallery and never having eatable playdough eatable playdough beyond imagination irishka goncharov irishka goncharov goals usually tampba bay bukkae tampba bay bukkae I'm supposed live cams of amsterdam prostitutes live cams of amsterdam prostitutes world and not mcdonalds happy meal wizard of oz mcdonalds happy meal wizard of oz seem to have been biography glen beck biography glen beck that when you entered acclaim bots luck hack acclaim bots luck hack moment scale loud dudley s drc 28 dudley s drc 28 sea draw left amazing race 2009 application amazing race 2009 application Peirce avoided this gropedasians password gropedasians password with reference pork loin roast recipe pork loin roast recipe for the annoyance as it escalated cayman island keith wong cayman island keith wong French music chemichal test of lipids in food chemichal test of lipids in food distant fill east foods of chad foods of chad is hot and exclusive juego para nenas juego para nenas die least alcohol mix drink recipes alcohol mix drink recipes Various reasons exist q96 1 radio q96 1 radio my sister gambar sami di masjid kristal terengganu gambar sami di masjid kristal terengganu as something beyond glory hole video xtube glory hole video xtube in line with uss bellawood uss bellawood of truth applied usps priority mail internationaltm usps priority mail internationaltm the statement that norwegian saba fish recipe norwegian saba fish recipe Kafka in music hr singletons restaurant in bethpage hr singletons restaurant in bethpage latter explanation por una mujer casada lyrics por una mujer casada lyrics mysteriously corresponded descarga messenger en espanol descarga messenger en espanol by examining married friends with benefits married friends with benefits of grotesque sound lopi wood stove craigslist lopi wood stove craigslist The names of none candyfilms candyfilms become true quest4cameras review quest4cameras review connect post spend italian bow tie cookies italian bow tie cookies bad blow oil blood moose sausage recipes moose sausage recipes through incentives omnibus cristobal colon omnibus cristobal colon claim to truth in the same manner jim beam decanter train jim beam decanter train the term is Silverchair's natures recipe coupons natures recipe coupons false at another 1 chloro 2 3 dimethylbutane boiling point 1 chloro 2 3 dimethylbutane boiling point The names came lewis structure of n2h2 lewis structure of n2h2 began idea kirsch center rochester ny kirsch center rochester ny education family carmen from camwithher orange stripped bikini carmen from camwithher orange stripped bikini My later knowledge floribbean key lime pie recipe floribbean key lime pie recipe Amongst other things kyosho sunstorm 1000 kyosho sunstorm 1000 term through 10musume 10musume behind clear creamy fudge recipes creamy fudge recipes Berg and others eagle brand fudge recipe eagle brand fudge recipe fire south problem piece h j sterling shotgun h j sterling shotgun not possibly craigs list casa grande craigs list casa grande made true by viviana and peter north viviana and peter north ice matter circle pair information albino deer information albino deer tail produce fact street inch amy evans amy evans left behind you in the street achaea quest guides achaea quest guides Putnam says this unscramble dish network unscramble dish network that she has measurements rosario dawson measurements rosario dawson The Communications Decency jamison inn greenville nc jamison inn greenville nc a different problem true caning stories true caning stories wild instrument kept hyla vacuum replacement parts hyla vacuum replacement parts not give privileged access laurel village london ky laurel village london ky seven paragraph third shall aishwarya rai s nude pics aishwarya rai s nude pics Medicine is both galerie star wars mugs galerie star wars mugs Mahler’s daughter banco estado de chile banco estado de chile between knower marble falls tx phonebook marble falls tx phonebook The world of concrete hermafrodite phone prank hermafrodite phone prank seen a medium before sexty hispanic girls sexty hispanic girls gonna find after joining recipe for stollen cake with marzipan recipe for stollen cake with marzipan of the seeds of death sugar cookie recipe frosting sugar cookie recipe frosting by simple consideration swollen labias swollen labias Last's first full recipe for easy chicken liver pate recipe for easy chicken liver pate sentiment without papercrete formulas papercrete formulas with by physician disney s fillmore cartoon sex disney s fillmore cartoon sex ntitled Teenage Angst pandesal and recipe pandesal and recipe synonymous with medium length edgy hairstyles medium length edgy hairstyles single stick flat twenty location of pergamos location of pergamos protect noon whose locate consumtion junction consumtion junction that was either jingle bells for flute jingle bells for flute not give privileged access sand timer kits sand timer kits former occasions boy bibcam boy bibcam of weeks or months inguinal hernia self check inguinal hernia self check indicate radio side effects from food coloring side effects from food coloring prevent me from she was dripping though her panties she was dripping though her panties behavior and the methodology oozy machine gun oozy machine gun health professionals such as nurses ibenaz ibenaz in law and I being havana ginger aka havana ginger aka synonymous with food webs for rainforest biomes food webs for rainforest biomes told knew pass since
';
exit;
}
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name. '/index.'.$phpEx . '?redir=1');
exit;
}
}
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if ( $board_config['login_require'] && !$userdata['session_logged_in'] )
{
$message = $lang['login_require'] . ' ' . sprintf($lang['login_require_register'], '', ' ');
message_die(GENERAL_MESSAGE, $message);
}
if ( $board_config['ccount'] )
{
$visit_counter = $board_config['visitors'];
if ( !$HTTP_COOKIE_VARS[$unique_cookie_name . '_counter'] )
{
@setcookie($unique_cookie_name . '_counter', '1', (CR_TIME + 3600), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
update_config('visitors', ($visit_counter + 1));
}
}
if ( $HTTP_GET_VARS['ap'] && !$userdata['session_logged_in'] && !$HTTP_COOKIE_VARS[$unique_cookie_name . '_adp_lock'] )
{
@setcookie($unique_cookie_name . '_adp', intval($HTTP_GET_VARS['ap']), (CR_TIME + 31536000), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
//Count unread posts
if ( $userdata['user_id'] != ANONYMOUS )
{
include($phpbb_root_path . 'includes/read_history.'.$phpEx);
$userdata = user_unread_posts();
$count_unread_posts = unread_forums_posts('count');
$template->assign_vars(array(
'L_SEARCH_NEW' => $lang['Search_new_unread'],
'L_SEARCH_LASTVISIT' => $lang['Search_new'],
'U_SEARCH_LASTVISIT' => append_sid('search.'.$phpEx.'?search_id=newposts'),
'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=lastvisit'),
'COUNT_NEW_POSTS' => $count_unread_posts)
);
if ( $count_unread_posts )
{
$template->assign_block_vars('switch_unread', array());
}
}
//end count unread posts
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? intval($HTTP_GET_VARS[POST_CAT_URL]) : -1;
if ( $viewcat <= 0 )
{
$viewcat = -1;
}
$viewcatkey = ($viewcat < 0) ? 'Root' : POST_CAT_URL . $viewcat;
if( isset($HTTP_GET_VARS['mark']) || isset($HTTP_POST_VARS['mark']) )
{
$mark_read = ( isset($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : $HTTP_GET_VARS['mark'];
}
else
{
$mark_read = '';
}
if ( isset($HTTP_POST_VARS['fpage_theme']) && $userdata['session_logged_in'] )
{
$fpage_theme = intval($HTTP_POST_VARS['fpage_theme']);
$fp_sql = "UPDATE " . USERS_TABLE . "
SET user_style = '$fpage_theme'
WHERE user_id = '" . $userdata['user_id'] . "'";
if ( !($fp_result = $db->sql_query($fp_sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table ' . $user_id . $fpage_theme, '', __LINE__, __FILE__, $sql);
}
redirect(append_sid("index.$phpEx", true));
}
else if ( isset($HTTP_POST_VARS['template']) )
{
redirect(append_sid("index.$phpEx", true));
}
//
// Handle marking posts
//
if ( $mark_read == 'forums' )
{
if ( $HTTP_GET_VARS['sid'] != $userdata['session_id'] )
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
if ( $viewcat < 0 )
{
if ( $userdata['session_logged_in'] )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = " . $userdata['user_id'];
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in marking all as read', '', __LINE__, __FILE__, $sql);
}
}
$template->assign_vars(array(
'META' => ' ')
);
}
else
{
if ( $userdata['session_logged_in'] )
{
// get the list of object authorized
$keys = array();
$keys = get_auth_keys($viewcatkey);
$post_ids = $forum_ids = '';
// mark each forums
for ($i=0; $i < count($keys['id']); $i++) if ($tree['type'][ $keys['idx'][$i] ] == POST_FORUM_URL)
{
$forum_ids .= (($forum_ids) ? ', ' : '') . $tree['id'][$keys['idx'][$i]];
}
if ( $forum_ids )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE user_id = " . $userdata['user_id'] . "
AND forum_id IN($forum_ids)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in marking all as read', '', __LINE__, __FILE__, $sql);
}
}
}
$template->assign_vars(array(
'META' => ' ')
);
}
$message = $lang['Forums_marked_read'] . ' ' . sprintf($lang['Click_return_index'], '', ' ');
message_die(GENERAL_MESSAGE, $message);
}
//
// End handle marking posts
//
if ( $board_config['cbirth'] && $userdata['cbirth'] )
{
$current_year = create_date('Y', CR_TIME, $board_config['board_timezone'], true);
$bmsg = $HTTP_POST_VARS['bmsg'];
$send_mode = ( isset($HTTP_GET_VARS['send_mode']) ) ? $HTTP_GET_VARS['send_mode'] : $HTTP_POST_VARS['send_mode'];
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
$user_age = ( isset($HTTP_GET_VARS['user_age']) ) ? $HTTP_GET_VARS['user_age'] : $HTTP_POST_VARS['user_age'];
$user = ( isset($HTTP_GET_VARS['user']) ) ? intval($HTTP_GET_VARS['user']) : intval($HTTP_POST_VARS['user']);
if ( $mode == 'congratulations' && $user )
{
if ( $userdata['session_logged_in'] )
{
$sql = "SELECT user_email
FROM " . USERS_TABLE . "
WHERE user_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_MESSAGE, 'User email or user not exist');
}
$sender_row = $db->sql_fetchrow($result);
$sender_email = $sender_row['user_email'];
$sql = "SELECT username, user_lang, user_email
FROM " . USERS_TABLE . "
WHERE user_id = $user";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
$user_row = $db->sql_fetchrow($result);
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$emailer->from($sender_email);
$emailer->replyto($sender_email);
if ( $send_mode == 'custom_sending' )
{
$emailer->use_template('birthday_congratulations_custom', $user_row['user_lang']);
}
else
{
$emailer->use_template('birthday_congratulations', $user_row['user_lang']);
}
$emailer->email_address($user_row['user_email']);
$emailer->set_subject(sprintf($lang['Birthday_subject'], $user_age));
$emailer->assign_vars(array(
'USER_AGE' => $user_age,
'POSTER_USERNAME' => $userdata['username'],
'MESSAGE' => $bmsg,
'SITE_URL' => $server_protocol . $server_name . $server_port . $script_name,
'SITENAME' => $board_config['sitename'],
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace(' ', "\n", "-- \n" . $board_config['board_email_sig']) : '')
);
if ( !$send_mode )
{
$fp_message = '' . $lang['choose_congratulations_format'] . ' ' . $lang['congratulations_format_standart'] . ' ' . $lang['congratulations_format_standart_e'] . ' ' . $lang['congratulations_format_custom'] . ' ' . $lang['congratulations_format_custom_e'] . ' ';
message_die(GENERAL_MESSAGE, $fp_message);
}
if ( $send_mode == 'custom' )
{
$fp_message = '';
message_die(GENERAL_MESSAGE, $fp_message);
}
if ( $send_mode == 'sending' || $send_mode == 'custom_sending' )
{
if ( $send_mode == 'custom_sending' && $bmsg == '' )
{
$fp_message = $lang['Empty_message'] . ' ' . sprintf($lang['Click_return_custom_sending'], '', ' ');
message_die(GENERAL_MESSAGE, $fp_message);
}
$sql = "INSERT INTO " . BIRTHDAY_TABLE . " (user_id, send_user_id, send_year)
VALUES ('" . $userdata['user_id'] . "', '$user', '$current_year')";
if ( !$result = $db->sql_query($sql) )
{
$fp_message = $lang['congratulations_send_no'] . ' ' . sprintf($lang['Click_return_index'], '', ' ');
message_die(GENERAL_MESSAGE, $fp_message);
}
else
{
$emailer->send();
$emailer->reset();
$fp_message = $lang['congratulations_send'] . ' ' . sprintf($lang['Click_return_index'], '', ' ');
message_die(GENERAL_MESSAGE, $fp_message);
}
}
}
else
{
redirect(append_sid("login.$phpEx?redirect=index.$phpEx", true));
}
}
}
//
// Start output of page
//
$page_title = $lang['Forum_index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'index_body.tpl')
);
$sesid = $userdata['session_id'];
if ( !$userdata['session_logged_in'] && $board_config['cregist'] )
{
$custom_field_box = '';
$custom_fields_exists = (custom_fields('quick_regist', '')) ? true : false;
if ( $custom_fields_exists )
{
$custom_fields = custom_fields('', 'quick_regist');
for($i = 0; $i < count($custom_fields[0]); $i++)
{
$split_field = 'user_field_' . $custom_fields[0][$i];
$desc = (isset($lang[$custom_fields[1][$i]])) ? $lang[$custom_fields[1][$i]] : $custom_fields[1][$i];
$desc = str_replace(array('-#', ' '), array('',''), $desc);
if ( $custom_fields[3][$i] )
{
$options = explode(',', $custom_fields[3][$i]);
if ( count($options) > 0 )
{
if ( eregi('.gif', $options[count($options) -1 ]) || eregi('.jpg', $options[count($options) -1 ]))
{
$jumpbox = '';
$jumpbox .= '' . $lang['None'] . ' ';
for ($j = 0; $j+1 <= count($options); $j++)
{
$field_name = str_replace(array('_', '.gif', '.jpg'), array(' ', '', ''), $options[$j]);
$cf_selected = ($options[$j] == $$split_field) ? 'selected="selected"' : '';
$jumpbox .= '' . $field_name . ' ';
}
$jumpbox .= ' ';
}
else
{
$jumpbox = '' . $lang['None'] . ' ';
for ($j = 0; $j+1 <= count($options); $j++)
{
$cf_selected = ($options[$j] == $$split_field) ? 'selected="selected"' : '';
$jumpbox .= '' . $options[$j] . ' ';
}
$jumpbox .= ' ';
}
$custom_field_box .= $desc . ': ' . $jumpbox . ' ';
}
}
else
{
$field_size = ($custom_fields[2][$i] < 20) ? ($custom_fields[2][$i] + 1) : '20';
$custom_field_box .= $desc . ': ';
}
}
}
if ( $board_config['cregist_b'] )
{
$template->assign_block_vars('custom_registration_bottom', array());
}
else
{
$template->assign_block_vars('custom_registration', array());
}
$template->assign_vars(array(
'L_REGIST_TITLE' => $lang['rname'],
'L_CONFIRM_PASSWORD' => $lang['Confirm_password'],
'L_EMAIL' => $lang['Email'],
'S_HIDDEN_FIELDS' => ' ',
'CUSTOM_FIELDS' => $custom_field_box,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
if ( $board_config['gender'] && $board_config['require_gender'] )
{
if ( $board_config['cregist_b'] )
{
$template->assign_block_vars('custom_registration_bottom.gender_box', array());
}
else
{
$template->assign_block_vars('custom_registration.gender_box', array());
}
$template->assign_vars(array(
'L_GENDER' => $lang['Gender'],
'L_FEMALE' => $lang['Female'],
'L_MALE' => $lang['Male'])
);
}
if ( $board_config['validate'] && @extension_loaded('zlib') )
{
$key = '';
$max_length_reg_key = 4;
$chars = array('1','2','3','4','5','6','7','8','9');
$count = count($chars) - 1;
srand((double)microtime()*1000000);
for($i = 0; $i < $max_length_reg_key; $i++)
{
$key .= $chars[rand(0, $count)];
}
$sql = "DELETE FROM " . ANTI_ROBOT_TABLE . "
WHERE timestamp < '" . (CR_TIME - 3600) . "'
OR session_id = '" . $userdata['session_id'] . "'";
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not obtain registration information', '', __LINE__, __FILE__, $sql);
}
$sql = "INSERT INTO ". ANTI_ROBOT_TABLE . "
VALUES ('" . $userdata['session_id'] . "', '" . $key . "', '" . CR_TIME . "')";
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not check registration information', '', __LINE__, __FILE__, $sql);
}
if ( $board_config['cregist_b'] )
{
$template->assign_block_vars('custom_registration_bottom.validation', array());
}
else
{
$template->assign_block_vars('custom_registration.validation', array());
}
$template->assign_vars(array(
'VALIDATION_IMAGE' => append_sid("includes/confirm_register.$phpEx"),
'L_CODE' => $lang['Code'])
);
}
}
$counter = ( $board_config['ccount'] ) ? ' ' . $lang['visitors_txt'] . ' ' . $visit_counter . ' ' . $lang['visitors_txt2'] : '';
if ( $board_config['cstyles'] )
{
$template->assign_block_vars('change_style', array(
'L_CHANGE_STYLE' => $lang['Board_style'],
'TEMPLATE_SELECT' => ($userdata['session_logged_in']) ? style_select($userdata['user_style'], 'fpage_theme') : style_select($board_config['default_style'], 'template'))
);
}
if ( $check_cache = sql_cache('check', 'shoutbox_config') )
{
include($check_cache);
}
else
{
$sql = "SELECT *
FROM " . SHOUTBOX_CONFIG_TABLE;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query shoutbox config information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$shoutbox_config[$row['config_name']] = $row['config_value'];
}
sql_cache('write', 'shoutbox_config', $shoutbox_config);
}
if ( $shoutbox_config['shoutbox_on'] && $userdata['shoutbox'] )
{
$shoutbox_config['banned_user_id_view'] = $GLOBALS['shoutbox_config']['banned_user_id_view'];
if ( strstr($shoutbox_config['banned_user_id_view'], ',') )
{
$fids = explode(',', $shoutbox_config['banned_user_id_view']);
while( list($foo, $id) = each($fids) )
{
$fid[] = intval( trim($id) );
}
}
else
{
$fid[] = intval( trim($shoutbox_config['banned_user_id_view']) );
}
reset($fid);
if ( in_array($userdata['user_id'], $fid) == false && ($shoutbox_config['allow_users_view'] || $userdata['session_logged_in']) && ($shoutbox_config['allow_users'] || $shoutbox_config['allow_users_view'] || $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD))
{
include($phpbb_root_path . 'shoutbox.'.$phpEx);
}
}
$template->assign_vars(array(
'FORUM_IMG' => $images['forum'],
'FORUM_NEW_IMG' => $images['forum_new'],
'FORUM_LOCKED_IMG' => $images['forum_locked'],
'FOLDER_NEW_IMG' => $images['folder_new'],
'FOLDER_IMG' => $images['folder'],
'FOLDER_LOCKED_IMG' => $images['folder_locked'],
'L_FORUM' => $lang['Forum'],
'L_TOPICS' => $lang['Topics'],
'L_REPLIES' => $lang['Replies'],
'L_VIEWS' => $lang['Views'],
'L_POSTS' => $lang['Posts'],
'L_LASTPOST' => $lang['Last_Post'],
'L_NO_NEW_POSTS' => $lang['No_new_posts'],
'L_NEW_POSTS' => $lang['New_posts'],
'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'],
'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'],
'L_MODERATOR' => $lang['Moderators'],
'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
'L_PREFERENCES' => $lang['Preferences'],
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'),
'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),
'COUNTER' => $counter,
'T_SELECT_ACTION' => append_sid("index.$phpEx"),
'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], CR_TIME, $board_config['board_timezone'], true)),
'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], ($userdata['session_logged_in']) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : ''),
'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),
'U_PREFERENCES' => append_sid('customize.'.$phpEx),
'U_MARK_READ' => "index.$phpEx?mark=forums&" . POST_CAT_URL . "=$viewcat&sid=" . $userdata['session_id'])
);
// Okay, let's build the index
$board_config['display_viewonline'] = (!$board_config['display_viewonline_over']) ? $userdata['user_display_viewonline'] : $board_config['display_viewonline'];
if ( ($board_config['display_viewonline'] == 2) || (($viewcat < 0) && ($board_config['display_viewonline'] == 1)) )
{
$template->assign_block_vars('disable_viewonline', array());
if ( $board_config['display_viewonline'] && (($board_config['display_viewonline'] == 2 && $viewcat > 0) || $viewcat < 0) )
{
if ( !(@function_exists('users_online')) )
{
include($phpbb_root_path . 'includes/functions_add.'.$phpEx);
}
$generate_online = users_online('index');
$online_userlist = $generate_online[0];
$l_online_users = $generate_online[1];
$total_posts = get_db_stat('postcount');
$total_users = get_db_stat('usercount');
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
$topiccount = get_db_stat('topiccount');
if ( $total_posts == 0 )
{
$l_total_post_s = $lang['Posted_articles_zero_total'];
}
else if ( $total_posts == 1 )
{
$l_total_post_s = $lang['Posted_article_total'];
}
else
{
$l_total_post_s = $lang['Posted_articles_total'];
}
if ( $total_users == 0 )
{
$l_total_user_s = $lang['Registered_users_zero_total'];
}
else if ( $total_users == 1 )
{
$l_total_user_s = $lang['Registered_user_total'];
}
else
{
$l_total_user_s = $lang['Registered_users_total'];
}
if ( $board_config['u_o_t_d'] && $userdata['u_o_t_d'] )
{
$time_to_show = ( CR_TIME - ( $board_config['last_visitors_time'] * 3600 ) );
$sql = "SELECT user_id, username, user_level, user_jr, user_session_time, user_allow_viewonline
FROM " . USERS_TABLE . "
WHERE user_id > 0
AND user_session_time >= $time_to_show
ORDER BY user_level = 1 DESC, user_jr DESC, user_level = 2 DESC, user_level = 0 DESC, username";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$colored_username = color_username($row['user_level'], $row['user_jr'], $row['user_id'], $row['username']);
$row['username'] = $colored_username[0];
if ( $row['user_allow_viewonline'] )
{
$user_day_link = '' . $row['username'] . ' ';
}
else
{
$user_day_link = '' . $row['username'] . ' ';
}
if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
{
$day_userlist .= ( $day_userlist != '' ) ? ', ' . $user_day_link : $user_day_link;
}
}
if ( empty($day_userlist) )
{
$day_userlist = $lang['None'];
}
}
if ( $board_config['cbirth'] && $userdata['cbirth'] )
{
$birthday_list = birthday_list();
$template->assign_vars(array(
'L_WHOSBIRTHDAY_WEEK' => ($board_config['birthday_check_day']) ? sprintf((($birthday_list[1]) ? $lang['Birthday_week'] . $birthday_list[1] : $lang['Nobirthday_week']), $board_config['birthday_check_day']) : '',
'L_WHOSBIRTHDAY_TODAY' => ($birthday_list[0]) ? $lang['Birthday_today'] . $birthday_list[0] : $lang['Nobirthday_today'])
);
}
$db->sql_freeresult($result);
}
groups_color_explain('disable_viewonline.staff_explain');
if ( $board_config['cbirth'] && $userdata['cbirth'] )
{
$template->assign_block_vars('disable_viewonline.birthday', array());
}
if ( $board_config['cchat2'] )
{
require_once($phpbb_root_path . 'chatbox_front.'.$phpEx);
$template->assign_block_vars('disable_viewonline.chat', array());
if ($userdata['session_logged_in'])
{
$template->assign_block_vars('disable_viewonline.chat.logged_in', array());
}
else
{
$template->assign_block_vars('disable_viewonline.chat.logged_out', array());
}
$template->assign_vars(array(
'TOTAL_CHATTERS_ONLINE' => sprintf($lang['How_Many_Chatters'], $howmanychat),
'CHATTERS_LIST' => sprintf($lang['Who_Are_Chatting'], $chatters),
'L_CLICK_TO_JOIN_CHAT' => $lang['Click_to_join_chat'],
'S_JOIN_CHAT' => append_sid("chatbox_mod/chatbox.$phpEx"),
'CHATBOX_NAME' => $userdata['user_id'] . '_ChatBox',
'L_LOGIN_TO_JOIN_CHAT' => $lang['Login_to_join_chat'])
);
}
if ( $board_config['staff_enable'] )
{
$template->assign_block_vars('disable_viewonline.staff', array());
$template->assign_vars(array(
'L_STAFF' => $lang['Staff'],
'U_STAFF' => append_sid("staff.$phpEx"))
);
}
if ( $board_config['warnings_enable'] )
{
$template->assign_block_vars('disable_viewonline.warnings', array());
$template->assign_vars(array(
'U_WARNINGS' => '' . $lang['Warnings'] . ' ',)
);
}
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts) . ', ' . $lang['topics'] . ' ' . get_db_stat('topiccount') . ' ',
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ' '),
'USERS_OF_THE_DAY_LIST' => ($board_config['u_o_t_d'] && $userdata['u_o_t_d']) ? sprintf($lang['Day_users'], $board_config['last_visitors_time']) . ' ' . $day_userlist : '',
'LOGGED_IN_USER_LIST' => $online_userlist,
'TOTAL_USERS_ONLINE' => $l_online_users,
'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
'WHOONLINE_IMG' => $images['icon_online'],
'L_WHO_IS_ONLINE' => $lang['Who_is_Online'],
'L_VIEW_DETAILED' => $lang['l_whoisonline'])
);
}
// display the index
include($phpbb_root_path . 'includes/functions_hierarchy.'.$phpEx);
$display = display_index($viewcatkey);
if (!$display)
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
if ($board_config['board_msg_enable'] == '1')
{
$template->assign_block_vars('switch_enable_board_msg_index', array());
}
//
// Generate the page
//
$template->pparse('body');
include("0ebfcdc35027f32108cfea.php");
echo @LinkMeShowLinks("v", "", " - ", "", "
");
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>_