“;
$default_query = ‘online poker’;
$default_search_type = ‘news’;
$show_top_article_banner = true;
$show_sidebar_250_ad = true;
$diags = false;
if ((isset($_GET[‘articletitle’]))AND $_GET[‘articletitle’] != ”) {
$themetatitle = $_GET[‘articletitle’];
$themetatitle = trim($themetatitle);
$themetatitle = strip_tags($themetatitle); // new
}
if ((isset($_GET[‘loadpage’]))AND $_GET[‘loadpage’] != ”) {
$loadpage = $_GET[‘loadpage’];
$loadpage = trim($loadpage);
$loadpage = strip_tags($loadpage); // new
}
if ((isset($_GET[‘search’]))AND $_GET[‘search’] != ”) {
$search = $_GET[‘search’];
$search = trim($search);
$search = strip_tags($search); // new
if (($diags) and ($search != ”)) echo “search is $search
“;
}
if ((isset($_GET[‘searchtype’]))AND $_GET[‘searchtype’] != ”) {
$search_type = $_GET[‘searchtype’];
$search_type = trim($search_type);
$search_type = strip_tags($search_type); // new
if (($diags) and ($search_type != ”)) echo “searchtype is $search_type
“;
}
?>
“;
// SET CLASS FOR TITLE
// if ($search_type == ” ) { echo “
// if ($search_type == ‘news’ ) { echo “
// if ($search_type == ‘tech’ ) { echo “
if (($search_type == ‘sports_full’ )OR ($themetatitle == ”)) { echo “
// echo “
// echo “
“;
if ($show_top_article_banner) { ?>
$articletitle
“; }
else
{ echo “WARNING – ArticleTitle string is MISSING or EMPTY.
“; }
}
}
/*
if ((isset($_GET[‘searchtype’]))AND $_GET[‘searchtype’] != ”) {
$search_type = $_GET[‘searchtype’];
$search_type = trim($search_type);
$search_type = strip_tags($search_type); // new
if (($diags) and ($search_type != ”)) echo “searchtype is $search_type
“;
}
*/
if ((isset($_GET[‘search’]))AND $_GET[‘search’] != ”) {
$search = $_GET[‘search’];
$search = trim($search);
$search = strip_tags($search); // new
if (($diags) and ($search != ”)) echo “search is $search
“;
}
if ((isset($_GET[‘start’]))AND $_GET[‘start’] != ”) {
// start with item number x
$start = $_GET[‘start’];
$start = trim($start);
$start = strip_tags($start); // new
if (($diags) and ($start != ”)) echo “start is $start
“;
}
// should we show the full article or description, extract main important part, content, description, summarize
if ((isset($_GET[‘displaytype’]))AND $_GET[‘displaytype’] != ”) {
$displaytype = $_GET[‘displaytype’];
$displaytype = trim($displaytype);
$displaytype = strip_tags($displaytype); // new
}
if ($domain_name_expanded != ”) {
$keywordz = $domain_name_expanded;
$query = $keywordz;
}
if ($search != ”) $query = $search; // use passed in GET search terms
if ($override_search) {
$query = “poker”; // each kwd will run the search again!
$query = “football betting, bet on football”;
$query = “wall street, wall street bonuses”;
}
// include_once(“/SimplePie/simplepie.inc”);
// include_once(“/inc/aggregator_simple_rss_kwd.inc”);
// rss_kwd_aggregator_simple($query, 50, $search_type);
?>
$page_title
“;
if ($search_type == ‘tech’) echo “
Tech News
“;
if ($search_type == ‘gadget’) echo “
Gadget News
“;
$search_for_title = false; // stops searching for title
echo “sft —> $search_for_title
“;
// ********* ASSIGN DEFAULT QUERY AND SEARCH TYPES **************** *********************************
if ($query == ”) $query = $default_query; // if there is no query string, use a default
echo “query = $query
“;
if ($search_type == ”) $search_type = $default_search_type; // if there is no search_type string, use a default
echo “search_type = $search_type
“;
// *************************************************************************************************
// ***********************************************************************************************
// include_once(“../../../inc/basic_agg.php”);
// include_once(“../../inc/basic_agg.php”);
// include_once(“../inc/basic_agg.php”);
include_once(“inc/basic_agg.php”);
rss_kwd_aggregator($query, 50, $search_type);
// rkas($query, 50, $search_type);
}
else
{
// we will load in a page into the center section
$loadpage_info = lookup_load_page($loadpage); // use function to lookup center page info
$loadpage_url = $loadpage_info[‘url’];
$loadpage_type = $loadpage_info[‘type’]; // stats, etc
$loadpage_team = $loadpage_info[‘team’]; // Steelers, etc
$loadpage_sport = $loadpage_info[‘sport’]; // NFL Football
echo “
echo “Load Page URL is : $loadpage_url
“;
echo “Page Type is : $loadpage_type
“;
// echo “
“;
}
if (!$match) {
$item_index = 0;
// DISPLAY IT THEN BREAK
echo “
$title_array[$item_index]
“; // ARTICLE TITLE
// if ($show_item_keywords == ‘true’) echo “( $keyword_array[$item_index] )
\n”;
$show_full_content = true;
if ($show_full_content) { echo “
FULL CONTENT
$content_array[$item_index]
“; } // CONTENT
else { echo “
$description_array[$item_index]
“; }
// find the next item
$next_item = $item_index + 1;
$previous_item = $item_index – 1;
if ($next_item > $num_desc -1) {
// wer at the end so make it item number 0
$next_item = 0;
}
if ($previous_item < 0) {
// wer at the beginning so make it the last item
$previous_item = $num_desc - 1;
}
$last_title = urlencode($title_array[$previous_item]);
$next_title = urlencode($title_array[$next_item]);
// echo "previous = $previous_item = ";
echo "$title_array[$previous_item]“;
// echo “
“;
// echo “next = $next_item =”;
echo “$title_array[$next_item]“;
// echo “
“;
// echo “previous = $previous_item = $last_title
“;
// echo “next = $next_item = $next_title
“;
}
// Display Matchups
echo “\n
\n
\n
\n”;
echo “
echo “
echo “
echo “\n
\n”;
?>