$val) { if(strstr("$HTTP_USER_AGENT", $val)) { $is_search_engine++; } } if($is_search_engine==0) { } if (isset($_REQUEST["catid"])) { $catid = round($_REQUEST["catid"]); } if (isset($_REQUEST["setlang"])) { $_SESSION["la"] = $_REQUEST["setlang"]; } include_once("admin/inc.php"); include_once("functions.php"); if ($catid) { $sql = "select catname from $cat_tbl where catid = $catid"; $row = mysql_fetch_array(q($sql)); $catname = " :: " . $row["catname"]; } else { $fp = 1; } include_once("header_inc.php"); if (!$special_mode) { include("navigation.php"); if (isset($menu_ordinary)) { print $menu_ordinary; } } if (!empty($catid)) { // Write out the link bar writeLinkedTitle($catid); } // Security check if (file_exists("install.php")) { print "

SECURITY WARNING
You have not followed our instructions to delete install.php immediately after install. Leaving this file here is a major security problem and opens your site up to wild hacking.

"; } print '
'; // If we are on the frontpage, write out welcome message and languages if ($catid==0 AND !$special_mode) { echo formatString($welcome_message, array("$name_of_site")); include "templates/ga.html"; } // If we have featured ads if (!empty($set_special) AND !isset($_REQUEST["catid"])) print "
"; // Print out categories include("catcol.php"); // This is the column containing special ads if (!empty($set_special) AND !isset($_REQUEST["catid"])) { print ""; include "special.php"; print "
"; } // Print out ad-listings include("links.php"); // If we are on the frontpage if ($catid==0 AND !$special_mode) { include_once("templates/topsites.html"); } // Counter (if activated from admin area) $frontpage=1; if (isset($set_count_dynamic)) { $str = ""; if (isset($validation)) { if ($validation<>"") $str = " where valid=1"; } $row = mysql_fetch_array(mysql_query("select count(ad_username) from $ads_tbl $str")); $upd_ads = $row["count(ad_username)"]; $row = mysql_fetch_array(mysql_query("select count(email) from $usr_tbl")); $upd_users = $row["count(email)"]; $row = mysql_fetch_array(mysql_query("select sum(sitehits) from $ads_tbl $str")); $upd_sitehits = $row["sum(sitehits)"]; if (!$upd_sitehits) $upd_sitehits = 0; $la_s_bar = formatString($la_s_bar, array("$upd_users","$upd_ads","$upd_sitehits")); $show_bar = 1; } print "
\n"; print ""; include_once("footer_inc.php"); ?>