replace_tags(array( "TITLE" => "$title", "PAGETITLE" => "$faq[title]", "BGCOLOR" => "$bg_color", "TEXTCOLOR" => "$text_color", "LINKCOLOR" => "$link", "VLINKCOLOR" => "$vlink", "FONTFACE" => "$font")); $page->output(); //check to see if the install file is stil on the user's server. if (file_exists("install.php")){ if ($stat == "Admin"){ $error = $txt['installadmin']; echo error($error, "error"); } else{ $error = $txt['install']; echo error($error, "general"); } } //check to see if this user is able to access this board. echo check_ban(); //check to see if the board is on or off. if ($board_status == "Off"){ $error = $off_msg; echo error($error, "general"); if ($stat == "Admin"){ echo "

$menu[cp]"; } } //output top if ($stat == "Admin"){ $page = new template($template_path ."/top-admin.htm"); $page->replace_tags(array( "TITLE" => "$title", "LANG-WELCOME" => "$txt[welcome]", "LOGGEDUSER" => "$logged_user", "LANG-LOGOUT" => "$txt[logout]", "LANG-IM" => "$menu[launchim]", "LANG-CP" => "$menu[cp]", "TABLE1" => "$table1", "ADDRESS" => "$address", "LANG-HOME" => "$menu[home]", "LANG-SEARCH" => "$menu[search]", "LANG-FAQ" => "$menu[faq]", "LANG-MEMBERLIST" => "$menu[members]", "LANG-PROFILE" => "$menu[profile]")); $page->output(); //check to see if user is marked as online, if not mark them as online. $time = time(); $db->run = "select * from ebb_online where Username='$logged_user'"; $count_member = $db->num_results(); $db->close(); if ($count_member == 0){ //user seems to be just getting on. $db->run = "insert into ebb_online (Username, time, location) values('$logged_user', '$time', '$_SERVER[PHP_SELF]')"; $db->query(); $db->close(); } else{ //user is still here so lets up their time to let the script know the user is still around. $db->run = "update ebb_online Set time='$time', location='$_SERVER[PHP_SELF]' where Username='$logged_user'"; $db->query(); $db->close(); } } if (($stat == "Member") OR ($stat == "Moderator")){ $page = new template($template_path ."/top-logged.htm"); $page->replace_tags(array( "TITLE" => "$title", "LANG-WELCOME" => "$txt[welcome]", "LOGGEDUSER" => "$logged_user", "LANG-LOGOUT" => "$txt[logout]", "LANG-IM" => "$menu[launchim]", "TABLE1" => "$table1", "ADDRESS" => "$address", "LANG-HOME" => "$menu[home]", "LANG-SEARCH" => "$menu[search]", "LANG-FAQ" => "$menu[faq]", "LANG-MEMBERLIST" => "$menu[members]", "LANG-PROFILE" => "$menu[profile]")); $page->output(); //check to see if user is marked as online, if not mark them as online. $time = time(); $db->run = "select * from ebb_online where Username='$logged_user'"; $count_member = $db->num_results(); $db->close(); if ($count_member == 0){ //user seems to be just getting on. $db->run = "insert into ebb_online (Username, time, location) values('$logged_user', '$time', '$_SERVER[PHP_SELF]')"; $db->query(); $db->close(); } else{ //user is still here so lets up their time to let the script know the user is still around. $db->run = "update ebb_online Set time='$time', location='$_SERVER[PHP_SELF]' where Username='$logged_user'"; $db->query(); $db->close(); } } if ($stat == "guest"){ $page = new template($template_path ."/top-guest.htm"); $page->replace_tags(array( "TITLE" => "$title", "LANG-WELCOME" => "$txt[welcomeguest]", "LANG-LOGIN" => "$txt[login]", "LANG-REGISTER" => "$txt[register]", "TABLE1" => "$table1", "ADDRESS" => "$address", "LANG-HOME" => "$menu[home]", "LANG-SEARCH" => "$menu[search]", "LANG-FAQ" => "$menu[faq]", "LANG-MEMBERLIST" => "$menu[members]")); $page->output(); //check to see if guest is marked as online, if not mark them as online. $time = time(); $ip = $_SERVER["REMOTE_ADDR"]; $db->run = "select * from ebb_online where ip='$ip'"; $count_guest = $db->num_results(); $db->close(); if ($count_guest == 0){ $db->run = "insert into ebb_online (ip, time, location) values('$ip', '$time', '$_SERVER[PHP_SELF]')"; $db->query(); $db->close(); } else{ //user is still here so lets up their time to let the script know the user is still around. $db->run = "update ebb_online Set time='$time', location='$_SERVER[PHP_SELF]' where ip='$ip'"; $db->query(); $db->close(); } } //display faq page $page = new template($template_path ."/faq.htm"); $page->replace_tags(array( "BORDER" => "$border", "TABLE1" => "$table1", "TABLE2" => "$table2", "TITLE" => "$title", "LANG-TITLE" => "$faq[title]", "LANG-TEXT" => "$faq[text]", "LANG-Q1" => "$faq[Q1]", "LANG-A1" => "$faq[A1]", "LANG-Q2" => "$faq[Q2]", "LANG-A2" => "$faq[A2]", "LANG-Q3" => "$faq[Q3]", "LANG-A3" => "$faq[A3]", "LANG-Q4" => "$faq[Q4]", "LANG-A4" => "$faq[A4]", "LANG-Q5" => "$faq[Q5]", "LANG-A5" => "$faq[A5]", "LANG-Q6" => "$faq[Q6]", "LANG-A6" => "$faq[A6]", "LANG-Q7" => "$faq[Q7]", "LANG-A7" => "$faq[A7]", "LANG-Q8" => "$faq[Q8]", "LANG-A8" => "$faq[A8]", "LANG-Q9" => "$faq[Q9]", "LANG-A9" => "$faq[A9]", "LANG-Q10" => "$faq[Q10]", "LANG-A10" => "$faq[A10]", "LANG-Q11" => "$faq[Q11]", "LANG-A11" => "$faq[A11]", "LANG-Q12" => "$faq[Q12]", "LANG-A12" => "$faq[A12]", "LANG-Q13" => "$faq[Q13]", "LANG-A13" => "$faq[A13]", "LANG-Q14" => "$faq[Q14]", "LANG-A14" => "$faq[A14]", "LANG-TEXT2" => "$faq[text2]")); $page->output(); //display footer $page = new template($template_path ."/footer.htm"); $page->replace_tags(array( "LANG-POWERED" => "$index[poweredby]")); $page->output(); ob_end_flush(); ?>