Copyright© 2001-2009, 99 Ranch Market, All Rights Reserved
dable format // Borrowed the code from the PHP.net annoted manual, origanally written by: // Jesse (jesse@jess.on.ca) // if($avatar_dir_size >= 1048576) { $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB"; } else if($avatar_dir_size >= 1024) { $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB"; } else { $avatar_dir_size = $avatar_dir_size . " Bytes"; } } else { // Couldn't open Avatar dir. $avatar_dir_size = $lang['Not_available']; } if($posts_per_day > $total_posts) { $posts_per_day = $total_posts; } if($topics_per_day > $total_topics) { $topics_per_day = $total_topics; } if($users_per_day > $total_users) { $users_per_day = $total_users; } // // DB size ... MySQL only // // This code is heavily influenced by a similar routine // in phpMyAdmin 2.2.0 // if( preg_match("/^mysql/", SQL_LAYER) ) { $sql = "SELECT VERSION() AS mysql_version"; if($result = $db->sql_query($sql)) { $row = $db->sql_fetchrow($result); $version = $row['mysql_version']; if( preg_match("/^(3\.23|4\.|5\.)/", $version) ) { $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)|(5\.)/", $version) ) ? "`$dbname`" : $dbname; $sql = "SHOW TABLE STATUS FROM " . $db_name; if($result = $db->sql_query($sql)) { $tabledata_ary = $db->sql_fetchrowset($result); $dbsize = 0; for($i = 0; $i < count($tabledata_ary); $i++) { if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" ) { if( $table_prefix != "" ) { if( strstr($tabledata_ary[$i]['Name'], $table_prefix) ) { $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; } } else { $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; } } } } // Else we couldn't get the table status. } else { $dbsize = $lang['Not_available']; } } else { $dbsize = $lang['Not_available']; } } else if( preg_match("/^mssql/", SQL_LAYER) ) { $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles"; if( $result = $db->sql_query($sql) ) { $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available']; } else { $dbsize = $lang['Not_available']; } } else { $dbsize = $lang['Not_available']; } if ( is_integer($dbsize) ) { if( $dbsize >= 1048576 ) { $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 )); } else if( $dbsize >= 1024 ) { $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 )); } else { $dbsize = sprintf("%.2f Bytes", $dbsize); } } $template->assign_vars(array( "NUMBER_OF_POSTS" => $total_posts, "NUMBER_OF_TOPICS" => $total_topics, "NUMBER_OF_USERS" => $total_users, "START_DATE" => $start_date, "POSTS_PER_DAY" => $posts_per_day, "TOPICS_PER_DAY" => $topics_per_day, "USERS_PER_DAY" => $users_per_day, "AVATAR_DIR_SIZE" => $avatar_dir_size, "DB_SIZE" => $dbsize, "GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF']) ); // // End forum statistics // // // Get users online information. // $sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s WHERE s.session_logged_in = " . TRUE . " AND u.user_id = s.session_user_id AND u.user_id <> " . ANONYMOUS . " AND s.session_time >= " . ( time() - 300 ) . " ORDER BY u.user_session_time DESC"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql); } $onlinerow_reg = $db->sql_fetchrowset($result); $sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start FROM " . SESSIONS_TABLE . " WHERE session_logged_in = 0 AND session_time >= " . ( time() - 300 ) . " ORDER BY session_time DESC"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql); } $onlinerow_guest = $db->sql_fetchrowset($result); $sql = "SELECT forum_name, forum_id FROM " . FORUMS_TABLE; if($forums_result = $db->sql_query($sql)) { while($forumsrow = $db->sql_fetchrow($forums_result)) { $forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name']; } } else { message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql); } $reg_userid_ary = array(); if( count($onlinerow_reg) ) { $registered_users = 0; for($i = 0; $i < count($onlinerow_reg); $i++) { if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) ) { $reg_userid_ary[] = $onlinerow_reg[$i]['user_id']; $username = $onlinerow_reg[$i]['username']; if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) { $registered_users++; $hidden = FALSE; } else { $hidden_users++; $hidden = TRUE; } if( $onlinerow_reg[$i]['user_session_page'] < 1 ) { switch($onlinerow_reg[$i]['user_session_page']) { case PAGE_INDEX: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_POSTING: $location = $lang['Posting_message']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_LOGIN: $location = $lang['Logging_on']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_SEARCH: $location = $lang['Searching_forums']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PROFILE: $location = $lang['Viewing_profile']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWONLINE: $location = $lang['Viewing_online']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWMEMBERS: $location = $lang['Viewing_member_list']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PRIVMSGS: $location = $lang['Viewing_priv_msgs']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; default: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; } } else { $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']); $location = $forum_data[$onlinerow_reg[$i]['user_session_page']]; } $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; $reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']); $template->assign_block_vars("reg_user_row", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "USERNAME" => $username, "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']), "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']), "FORUM_LOCATION" => $location, "IP_ADDRESS" => $reg_ip, "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$reg_ip", "U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']), "U_FORUM_LOCATION" => append_sid($location_url)) ); } } } else { $template->assign_vars(array( "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing']) ); } // // Guest users // if( count($onlinerow_guest) ) { $guest_users = 0; for($i = 0; $i < count($onlinerow_guest); $i++) { $guest_userip_ary[] = $onlinerow_guest[$i]['session_ip']; $guest_users++; if( $onlinerow_guest[$i]['session_page'] < 1 ) { switch( $onlinerow_guest[$i]['session_page'] ) { case PAGE_INDEX: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_POSTING: $location = $lang['Posting_message']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_LOGIN: $location = $lang['Logging_on']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_SEARCH: $location = $lang['Searching_forums']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PROFILE: $location = $lang['Viewing_profile']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWONLINE: $location = $lang['Viewing_online']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_VIEWMEMBERS: $location = $lang['Viewing_member_list']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_PRIVMSGS: $location = $lang['Viewing_priv_msgs']; $location_url = "index.$phpEx?pane=right"; break; case PAGE_FAQ: $location = $lang['Viewing_FAQ']; $location_url = "index.$phpEx?pane=right"; break; default: $location = $lang['Forum_index']; $location_url = "index.$phpEx?pane=right"; } } else { $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']); $location = $forum_data[$onlinerow_guest[$i]['session_page']]; } $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; $guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']); $template->assign_block_vars("guest_user_row", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "USERNAME" => $lang['Guest'], "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']), "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']), "FORUM_LOCATION" => $location, "IP_ADDRESS" => $guest_ip, "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$guest_ip", "U_FORUM_LOCATION" => append_sid($location_url)) ); } } else { $template->assign_vars(array( "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing']) ); } // Check for new version $current_version = explode('.', '2' . $board_config['version']); $minor_revision = (int) $current_version[2]; $errno = 0; $errstr = $version_info = ''; if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10)) { @fputs($fsock, "GET /updatecheck/20x.txt HTTP/1.1\r\n"); @fputs($fsock, "HOST: www.phpbb.com\r\n"); @fputs($fsock, "Connection: close\r\n\r\n"); $get_info = false; while (!@feof($fsock)) { if ($get_info) { $version_info .= @fread($fsock, 1024); } else { if (@fgets($fsock, 1024) == "\r\n") { $get_info = true; } } } @fclose($fsock); $version_info = explode("\n", $version_info); $latest_head_revision = (int) $version_info[0]; $latest_minor_revision = (int) $version_info[2]; $latest_version = (int) $version_info[0] . '.' . (int) $version_info[1] . '.' . (int) $version_info[2]; if ($latest_head_revision == 2 && $minor_revision == $latest_minor_revision) { $version_info = '

' . $lang['Version_up_to_date'] . '

'; } else { $version_info = '

' . $lang['Version_not_up_to_date']; $version_info .= '
' . sprintf($lang['Latest_version_info'], $latest_version) . ' ' . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '

'; } } else { if ($errstr) { $version_info = '

' . sprintf($lang['Connect_socket_error'], $errstr) . '

'; } else { $version_info = '

' . $lang['Socket_functions_disabled'] . '

'; } } $version_info .= '

' . $lang['Mailing_list_subscribe_reminder'] . '

'; $template->assign_vars(array( 'VERSION_INFO' => $version_info, 'L_VERSION_INFORMATION' => $lang['Version_information']) ); $template->pparse("body"); include('./page_footer_admin.'.$phpEx); } else { // // Generate frameset // $template->set_filenames(array( "body" => "admin/index_frameset.tpl") ); $template->assign_vars(array( "S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"), "S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right")) ); header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $template->pparse("body"); $db->sql_close(); exit; } ?> henery hudson azizi johari kelis wedding dress line chaserz 7teen parvati patil john melloncamp alex broskow sheri moon nude nude pinays dahlia tubers grundig s350 booby valentino ankyloglossia blueprint for a trebuchet watersports.com eddie cibrian nude wealllivetogether.com gretchin pinkseeker flavian amphitheater melissa detwiller chris craft roamer intermatic pool timer mr wiggles graffiti alphabet stickmen fighting sonny and carly fanfiction sally struthers nude ford aod transmission john stanard vx6600 hinahanap ng puso lena heady peirced nipples dsentry.exe therasense freestyle coburn - we interrupt this program mathew lillard ftwebcam.com shelliconhiddenwindow ulnar collateral ligament devon devasquez remy lebeau odysseus and the cyclops aaron carter in boxers high tibial osteotomy freepics.tv clarion vrx935vd philip pearlstein jack nickolson anthony henday vigana hardcore junky.com issei sagawa feltch morphed bodybuilders norbert rillieux budapest apartment touristenzentrale ferienhaus divine comedy summary morecock greek gyro recipe apartment budapest touristenzentrale ferienhaus islameyat legato bluesummers saggerz ganstas paradise testicle kicking seabiscut senioras tessco.com jilling toyota celicas samuel gridley howe algerbra lippizaner lou gherig lou gerig superalexx bbs leatherman crunch dj camy li syaoran phoebe buffay camp navistar eurobabez richard proenneke panty poopers tokemon pokemon lemons unequally yoked winchester commemorative rifles wycleff jean four winns liberator noahs wish veronika hanakova hanz zimmer nicole narian sonicflood lyrics rey mysterio theme treeing walker hounds gwen hajek nike secutor pom poko anamal sex ujackum flying ants vs termites heather elizabeth parkhurst gyrocopter for sale moonraker farm soul reaver 2 walkthrough crysler crossfire laser declawing dressforms bryce avary skatman kamodo dragon high scool musical gabrielle hames phentex carol and darlene bernaola calexotics wendy whoopers lucy liu flypaper leyland cypress dealers aaron dismuke chimara hiv aids datin... wovel mississippi squirrel revival evitas playhouse ciabatta recipe ernie dingo altronic motal kombat vangar wrestling newzbot jeremy markum tubetop angela melillo surebetpro rob zomby anabolicstore.com culasos mirei kuroda paz vega desnuda fordirelifesake viking longboats mipsor fender showmaster pterophyta cristina marsillach micael jackson bonnie sommerville pinky cheung blood tissue holly yashi jewelry athena cage all or nothing hissing cockroach leeann tweeden playboy bascule bridges irql rosiane pinheiro olympus c7000 lao shu ai da mi assagio gaetan dugas zach roerig edm sinker machining snuggies ngto doujinshi gravitation wonderslim rollerblade tricks avet fishing reels b2k uh huh montly crew adultcommunitiesonline justin mcroberts phillipe charriol wideners the opening of misty beethoven vegimite poision ivy belt lipectomy nuwave oven nauto seedless vascular plants emtek door knob apkws bacardi and cola commercial nstra nickystarks swiper the fox rakheesworld grupo foxa melody damayo ukranian nymphets camp buehring dr seuss printable coloring page ello furniture frontal wedgie jupiter hammon dorothys cum city devyn devine april wilkner raviv ullman monolaurin annanova lauren pheonix honalulu rachel lutzker medecision chad conners brutalgals.com sinead o conner damian kulash sheer negligee mare gestation brandi trentham raven darkholme kyocera kx1v exploited black teens krystal anal valley.com first class airline flights chedule newschoolers.com taco outriggers alteena alfred louis vassallo aly landry threadworm stede bonnet zodiak signs alicia keys butterflyz assless chaps pajamas.com ssj2 gohan polunsky unit lilli xene shenendoah ying yang twins naggin toppless women jessica simpsion daz simpson teenage life letter unscrambler signs she likes you garcelle beauvais nude stevie nicks edge of seventeen penski truck rental coprophagy hockey brawls 18jack biceps flexing code lyoko yumi playboy cybergirls tinkerbell cake decorations bulletproofing gyrobee rockies express pipeline red tip photinia las vegas wedding chaples popover recipes foyza cheryl rixon moonangel wendy melvoin ratu felisha dualing banjos canine addisons disease trivium pull harder on the strings of your martyr fred shuttlesworth croquembouche homemovies personalized post-its red belly pacu dangerous dongs.com mylivewebcam garth marenghi cub cadet riding mowers gerardo rico suave sbqr master fard muhammad natalia semanova supercub movietrials.com home made kazoku brotown lowe pontoon boats kay summersby fagina faulkner awning daniela amavia mathew broderick tuberous breasts holly vallance niki ziering roofers tear off tarps barenjager better than ezra juicy ronaldinho crossbar shower enclosers halo montages banff crag and canyon spandex bulge ampworld cyclopia freestyle kingz endometrial polyp tim migraw woodmans pal perinium youoncam.com biography of donatello buttnaked mastisol capresso mt500 shane barbi erika norell kloey love cabarrus arena ravishment motorized wheelbarrow hoda kotb busyteacherscafe.com gilad janklowicz treenware pwgalleries magmahal muli dervla kirwan leak ender 2000 coumidin chillis restaurant jmrolen ejacu petpound lithum butch walker mixtape donna decianni gagagogo stevie nicks landslide kuryakan gunged girls albertsons job application vepr fruko y sus tesos massage parlor sex bentbunz.com admiral krag goldenwolf conical fermenter quiet birdmen sibila vargas beetle borgs sic transit gloria...glory fades brad paisley we danced mia finnegan anabolex.com bumber stickers pinger.exe kentuck knob mulan soundtrack torrent ocsea dueling banjos mp3 ayame sohma infant scarecrow costume golf cart windshields kumbayah transwheel gabriel shock absorbers arabian oryx monk parakeet deeb real estate dobsonfly jared leto wallpaper 0x8004210a eavan boland superbeauty hurican katrina zeps guide gateway wu tang clan gravel pit gulf fritillary wes scantlin quilted keepers hiromi saimon laika jenny agutter nude certs powerful mints bikinimodelz.com inderol magicspin backhandspring masahiro swords beastailty isabella soprano pics winkin blinkin and nod matureland driveway alarms dimango door chimes queensryche silent lucidity clit peircing millermatic 135 orange peel asheville habbo scripts kira clavell landslide stevie nicks go2net.com hpcmpmgr spacegodzilla wpht freemartin bemidji evangelical covenant church evangelical covenant church bemidji hp m7160n seether driven under b2k websites inflatable moonwalks tonya ballinger chinese crested powder puff macoun apples artemis antone tony stewert sprinklesgold natalie sokolova anallingus heidi noelle lenhart terry goodlad alyssa milano poison ivy warka vase chromoplast singhsons northeast michigan romantic getaways haley joel osment biographies spiltmilk showyourpics clenzology arabella kiesbauer dir en grey wallpapers dorkas kiefer sockjob puffie transmatic miracle by cascada sorme lcmc ciliac disease britney spears wardrobe malfunction funny monologs judy francesconi alexondra lee gaterade thitima jesseca turner nightmare before chrismas mlf videos debt card elimination danielradcliffe achromatopsia tallest nba player sigmund romberg sohryu asuka langley cathedral by raymond carver fennec fox pictures fydolla ho kubotans 1933 willys georgy porgy hollarback girl servomex roxxi leilene onrade headfirst for halos sliceoftheday telescoping fishing rod solotouch humanna frisbee inventor cary stayner vilas county news review marbled orb weaver jimminy peak paipan kj52 lyrics nfl gifts maryln monroe deer antler chandelier sportz tent scrotal inflation blitzkreig bop briges patrick labyorteaux travelacity goliath tarantula envirolet sweetgrass baskets napolian dinomite tia mowry nude peavy mart senor wences peachs mostbeautifulmen.com blackhawk striker unlock code sabrina harman miho fukada grannypics castle superstores digimon lemons walkaway joe drawing giantess rainbow flipflops caldrea cleaning products trippy screensaver gojyo saraevans john jude palencar bone thugz-n-harmony postage stamp dispensers anna d caans panty sniffer missy crider nonnudes nicole scherzinger naked jamie escalante jeep m715 igayvideos.com obangerion helen ganzarolli usarc owa anita korsos bonny portmore tig o bitties ssj9 goku christopher mineo vmrc th400 arrogant bastard ale rowanne brewer viva la bam theme song squidward tentacles homecoming mums msfcu rufoto.com alma llanera cacapon resort state park haldex barnes snaggables josh harting naplex review haley hilderbrand boricua flag vannesa anne hudgens amanyara the shins caring is creepy hellogoodbye mp3 phillips aed al copone wada kouji wickedweasle samsung sir-t451 elon musk foxyangel sirrius radio stompmania jimmy valvano titwank ten rounds with jose cuervo towable boom lifts whiffle ball tegan presley ellina giani 99 grand cherokee jeep fix it yourself mentalshed erosive gastritis victor villasenor jereme rogers erotic asphyxia rsmeans okwrestle nigger hating me antherium arianna jollee clause.com maincoon diane kruger naked arma angelus scuppernong wine sergei federov bomar sights stephanie kwolek regclean.exe oprahwinfrey show.com onetruelove.net willy wanka b-52s rock lobster pearl neckless kazemon mbuti 1037theq back handsprings capspray kellie pickler prom ratemenaked luara gina lolabrigida parawood