Permalink
Browse files

Get rid of last season, switch statsloader to pull 2013 stats

  • Loading branch information...
1 parent a97d8de commit 45d8f2f230f95e0e1b49334162d32667b7b23416 @hamilr2 hamilr2 committed Nov 2, 2012
Showing with 7 additions and 2 deletions.
  1. +6 −1 im_render_statscard.php
  2. +1 −1 statsloader.php
View
@@ -5,6 +5,8 @@
$id = $_GET["id"];
$cacheno = $_GET["c"];
+$lastSeason = false;
+
mysql_select_db("rpihockey");
@@ -129,7 +131,10 @@
if($stype && $stype != "txt")
{
- shadowedText($canvas,410,995,172,30,'Last Season:','center','fontN','white');
+ if($lastSeason == true)
+ {
+ shadowedText($canvas,410,995,172,30,'Last Season:','center','fontN','white');
+ }
$i = 2;
for(;strlen($slabel[$i])>0;$i++) {}
View
@@ -5,7 +5,7 @@
$tid = $_GET["tid"];
-$page = fopen("http://www.collegehockeynews.com/stats/team-overall.php?s=20112012&td=$tid","r");
+$page = fopen("http://www.collegehockeynews.com/stats/team-overall.php?td=$tid","r");
$contents = stream_get_contents($page);
$values = parser($contents);

0 comments on commit 45d8f2f

Please sign in to comment.