// ******************************************************************* // directory a copy of index.php with some added functions // for use with .htaccess // ******************************************************************* echo "dinesh sharma"; $self = "directory"; //this files name same as in the Files line of .htaccess include("include/config.php"); include("include/common.php"); include("include/functions.php"); //page generation time is may be inaccurate on a multi-CPU box if ($debug == "1" || $timer == "1"){$start_time = getmicrotime();} // determine wether to use SESSION_IDs // simple but should help the more popular bots spider your pages, as well as many automated // recipricol link checkers. You can uncomment the example and enter you browser's user // agent string for testing $agent = $_SERVER['HTTP_USER_AGENT']; if ((stristr($agent, "rchive"))|| // for testing ... // (stristr($agent, "your browser"))|| (stristr($agent, "IE"))|| (stristr($agent, "bot"))|| (stristr($agent, "crawl"))|| (stristr($agent, "index"))|| (stristr($agent, "eeves"))|| (stristr($agent, "eck"))|| (stristr($agent, "link"))|| (stristr($agent, "cooter"))|| (stristr($agent, "slurp"))|| (stristr($agent, "pider"))) { $usesession="no"; } else { include("include/session.php"); $usesession="yes"; session_start(); } // grab the values from the search form // $logic = $_POST['logic'];if (empty($logic)){$term = $_GET['logic'];} $term = $_POST['term'];if (empty($term)){$term = $_GET['term'];} if (!empty($_GET['sr'])){$sr = $_GET['sr'];} if (!empty($_GET['pp'])){$pp = $_GET['pp'];} if (!empty($_GET['cp'])){$cp = $_GET['cp'];} $language = $gl["Language"]; include("include/lang/$language.php"); $theme = $gl["Theme"]; include("themes/$theme/tables.php"); if(!empty($PATH_INFO)){ $url_array = explode("/",$PATH_INFO); if ($url_array[1] == "new.html"){$show="new"; $iii_category="What's New";} if ($url_array[1] == "popular.html"){$show="pop"; $iii_category="What's Popular";} if ($url_array[1] == "cool.html"){$show="cool"; $iii_category="What's Cool";} if ($url_array[1] == "add.html"){$show="add"; $iii_category="Add a Site";} if ($url_array[1] == "about.html"){$show="about"; $iii_category="About";} if ($url_array[1] == "review.html"){$show="review"; $iii_category="Review";} if ($url_array[1] == "update.html"){$show="update"; $iii_category="Update";} if ($url_array[1] == "owner.html"){$show="owner"; $iii_category="Owner";} if ($url_array[1] == "review_add.html"){$show="review_add"; } if (is_numeric (ereg_replace (".html", '', $url_array[1]))){ $PID = (ereg_replace (".html", '', $url_array[1])); $iii = @mysql_query("SELECT Category FROM $tb_categories WHERE ID = '$PID' LIMIT 1"); $iii_data = @mysql_fetch_object($iii); if( @is_object($iii_data) ) $iii_category = $iii_data->Category; } } else {$PID ="";} // ////////$here = "$gl[BaseURL]$gl[BasePath]"; $iii_category = empty($iii_category)? '' : strtoupper( str_replace('_', ' ', $iii_category) ); ?>
Adding your site to our directory is free and no link back is required. Click 'ADD A SITE' above to get started!"; $htmlsrc .= "