?php // This security check can be kept as is. if(substr_count($_SERVER['REQUEST_URI'], "/") > 3 || strstr($_SERVER['REQUEST_URI'],"/match/") || strstr($_SERVER['REQUEST_URI'],"/stats/")) { header('HTTP/1.0 403 Forbidden'); exit(); } include("top.php"); // Includes the and new stylesheet // This logic for including different headers is preserved. if (isset($_GET['commid']) || isset($_GET['contribid']) || isset($_GET['channelid'])){ include("topcf.php"); } elseif ($_SERVER['REQUEST_URI']=="/" || $_SERVER['REQUEST_URI']=="/index.php"){ include("topcf.php"); } else { include("topnocf.php"); // This now includes the modern header and opens
} // All your GET parameter processing logic is preserved. if (isset($_GET['commid'])){ $commarray=explode("/",$_GET['commid']); $getcommid=$commarray[0]; $getcommid=preg_replace('/[^0-9]/', '', $getcommid); $fromdate = date("d/m/Y",time()-315569520); $todate = date("d/m/Y",time()+63113904); $getchannelid="ANY"; $getcontribid="ANY"; } elseif(isset($_GET['contribid'])){ $getcontribid=explode("/",$_GET['contribid'])[0]; $fromdate = date("d/m/Y",time()-315569520); $todate = date("d/m/Y",time()+63113904); $getcommid="ANY"; $getchannelid="ANY"; } elseif (isset($_GET['channelid'])){ $channelarray=explode("/",$_GET['channelid']); $getchannelid=$channelarray[0]; $getchannelid=preg_replace('/[^0-9]/', '', $getchannelid); $fromdate = date("d/m/Y",time()-315569520); $todate = date("d/m/Y",time()+63113904); $getcommid="ANY"; $getcontribid="ANY"; } elseif (isset($_GET['unknown'])){ $getcommid=0; $fromdate = date("d/m/Y",time()-315569520); $todate = date("d/m/Y",time()+63113904); $getchannelid="ANY"; $getcontribid="ANY"; } else { $getchannelid="ANY"; $getcommid="ANY"; $getcontribid="ANY"; $fromdate = date("d/m/Y",time()-172800); if ($oneteam){ $todate = date("d/m/Y",time()+345600); } else { $todate = date("d/m/Y",time()+172800); } } ?>
Error query:1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1