mr.jay - line mover

SportID, SQLINT4); mssql_bind($proc,'@LeagueID',$event->LeagueID, SQLINT4); mssql_bind($proc,'@VisLine1ID',$event->VisLine1ID, SQLINT4); mssql_bind($proc,'@VisLine2ID',$event->VisLine2ID, SQLINT4); mssql_bind($proc,'@EventDate',$event->EventDate, SQLVARCHAR); mssql_bind($proc,'@EventID',$eventID,SQLINT4, true); // output parameter mssql_execute($proc); Close(); return $eventID; } function InsertEventImported($event) { $ExternalEventID = $event->ExternalEventID; $iEventID = 0; $SportID = $event->SportID; // 1 hockey , 2 football $siLeagueID = $event->siLeagueID; // 2 nfl $iVisLine1ID = $event->iVisLine1ID; $iVisLine2ID = $event->iVisLine2ID; $sdtEventDate = $event->sdtEventDate; echo "ExternalEventID: $ExternalEventID
"; echo "SportID: $SportID
"; echo "siLeagueID: $siLeagueID
"; echo "iVisLine1ID: $iVisLine1ID
"; echo "iVisLine2ID: $iVisLine2ID
"; echo "sdtEventDate: $sdtEventDate
"; Connect(); $proc = mssql_init('SP_InsertEventImported', $GLOBALS['conn']); mssql_bind($proc,'@ExternalEventID',$ExternalEventID, SQLINT4); mssql_bind($proc,'@SportID',$SportID,SQLINT4); mssql_bind($proc,'@siLeagueID',$siLeagueID, SQLINT4); mssql_bind($proc,'@iVisLine1ID',$iVisLine1ID, SQLINT4); mssql_bind($proc,'@iVisLine2ID',$iVisLine2ID, SQLINT4); mssql_bind($proc,'@sdtEventDate',$sdtEventDate,SQLVARCHAR); mssql_bind($proc,'@iEventID',&$iEventID,SQLINT4, true); // output parameter if ($result = mssql_execute($proc)) { Close(); return $iEventID; } else { return 0; } } function UpdatePS($line) { $event_id = $line->event_id; $siLeagueID = $line->siLeagueID; $tiEventPart = $line->EventPart; // 0 FG $siPST1 = $line->siPST1; $iPST1Lay = $line->iPST1Lay; $iPST1Get = $line->iPST1Get; $siPST2 = $line->siPST2; $iPST2Lay = $line->iPST2Lay; $iPST2Get = $line->iPST2Get; $sdtEventPartTime = $line->EventPartTime; Connect(); $proc = mssql_init('SP_UpdatePS2', $GLOBALS['conn']); mssql_bind($proc,'@nEventID',$event_id, SQLINT4); mssql_bind($proc,'@siLeagueID',$siLeagueID, SQLINT4); mssql_bind($proc,'@tiEventPart',$tiEventPart, SQLINT4); mssql_bind($proc,'@siPST1',$siPST1, SQLINT4); mssql_bind($proc,'@iPST1Lay',$iPST1Lay, SQLINT4); mssql_bind($proc,'@iPST1Get',$iPST1Get, SQLINT4); mssql_bind($proc,'@siPST2',$siPST2, SQLINT4); mssql_bind($proc,'@iPST2Lay',$iPST2Lay, SQLINT4); mssql_bind($proc,'@iPST2Get',$iPST2Get, SQLINT4); mssql_bind($proc,'@sdtEventPartTime',$sdtEventPartTime, SQLVARCHAR); $result = mssql_execute($proc); Close(); } function UpdateTotals($line) { $event_id = $line->event_id; $siLeagueID = $line->siLeagueID; $tiEventPart = $line->EventPart; // 0 FG $siOver = $line->siOver; $iOverLay = $line->iOverLay; $iOverGet = $line->iOverGet; $siUnder = $line->siUnder; $iUnderLay = $line->iUnderLay; $iUnderGet = $line->iUnderGet; $sdtEventPartTime = $line->EventPartTime; Connect(); $proc = mssql_init('SP_UpdateTotals2', $GLOBALS['conn']); mssql_bind($proc,'@nEventID',$event_id, SQLINT4); mssql_bind($proc,'@siLeagueID',$siLeagueID, SQLINT4); mssql_bind($proc,'@tiEventPart',$tiEventPart, SQLINT4); mssql_bind($proc,'@siOver',$siOver, SQLINT4); mssql_bind($proc,'@iOverLay',$iOverLay, SQLINT4); mssql_bind($proc,'@iOverGet',$iOverGet, SQLINT4); mssql_bind($proc,'@siUnder',$siUnder, SQLINT4); mssql_bind($proc,'@iUnderLay',$iUnderLay, SQLINT4); mssql_bind($proc,'@iUnderGet',$iUnderGet, SQLINT4); mssql_bind($proc,'@sdtEventPartTime',$sdtEventPartTime, SQLVARCHAR); $result = mssql_execute($proc); Close(); } function UpdateMoney($line) { $event_id = $line->event_id; $siLeagueID = $line->siLeagueID; $tiEventPart = $line->EventPart; // 0 FG $iML1Lay = $line->iML1Lay; $iML1Get = $line->iML1Get; $iML2Lay = $line->iML2Lay; $iML2Get = $line->iML2Get; $sdtEventPartTime = $line->EventPartTime; Connect(); $proc = mssql_init('SP_UpdateMoney2', $GLOBALS['conn']); mssql_bind($proc,'@nEventID',$event_id, SQLINT4); mssql_bind($proc,'@siLeagueID',$siLeagueID, SQLINT4); mssql_bind($proc,'@tiEventPart',$tiEventPart, SQLINT4); mssql_bind($proc,'@iML1Lay',$iML1Lay, SQLINT4); mssql_bind($proc,'@iML1Get',$iML1Get, SQLINT4); mssql_bind($proc,'@iML2Lay',$iML2Lay, SQLINT4); mssql_bind($proc,'@iML2Get',$iML2Get, SQLINT4); mssql_bind($proc,'@sdtEventPartTime',$sdtEventPartTime, SQLVARCHAR); $result = mssql_execute($proc); Close(); } //------------------------------------------------------------------- function GetTeamID($leagueID,$teamName) { $teamID = 0; $proc = mssql_init('SP_GetTeamID',$GLOBALS['conn']); mssql_bind($proc,'@leagueID',$leagueID, SQLINT4); mssql_bind($proc,'@teamName',$teamName, SQLVARCHAR); mssql_bind($proc,'@teamID',&$teamID,SQLINT4, true); // output parameter if ($result = mssql_execute($proc)) { return $teamID; } else { return 0; } } function InsertLine($event_id,$line) { // Insert line for the game $siLeagueID = $line->siLeagueID; $siLineSetID = 1; $siOldLineSetID = 1; $bPublicLine = 0; // no salen si es 1 $tiEventPart = $line->EventPart; // 0 FG $iGroupID = null; $tiStatus = 1; $tiOriginalStatus = 1; $bShowOnInternet = 1; $siFavoriteTeam = null; $bSplitLines = 0; $bAutomaticallyUpdateStatus = 0; $bDeleted = 0; $tiCircleLevel = 0; $bolWithSubscribe = 0; // Line Propositions $siPST1 = $line->siPST1; $iPST1Lay = $line->iPST1Lay; $iPST1Get = $line->iPST1Get; $siPST2 = $line->siPST2; $iPST2Lay = $line->iPST2Lay; $iPST2Get = $line->iPST2Get; $tiPSCircledGamesID = 1; $siOver = $line->siOver; $iOverLay = $line->iOverLay; $iOverGet = $line->iOverGet; $siUnder = $line->siUnder; $iUnderLay = $line->iUnderLay; $iUnderGet = $line->iUnderGet; $tiOUCircledGamesID = 1; $iML1Lay = $line->iML1Lay; $iML1Get = $line->iML1Get; $iML2Lay = $line->iML2Lay; $iML2Get = $line->iML2Get; $tiMLCircledGamesID = 1; $siLastModifiedUser = 7; $dtLastModifiedDate = date('Y-m-d H:i:s'); $bitEnableGracePeriod = 0; $iRetVal = 0; $bDoNotPublishLine = 0; $sdtEventPartTime = $line->EventPartTime; $bitEventPartTimeChanged = 0; $proc = mssql_init('SP_INSERTLineFootball', $GLOBALS['conn']); mssql_bind($proc,'@nEventID',$event_id, SQLINT4); mssql_bind($proc,'@tiEventPart',$tiEventPart, SQLINT4); mssql_bind($proc,'@siLineSetID',$siLineSetID, SQLINT4); mssql_bind($proc,'@siOldLineSetID',$siOldLineSetID, SQLINT4); mssql_bind($proc,'@bPublicLine',$bPublicLine, SQLINT4); mssql_bind($proc,'@siLeagueID',$siLeagueID, SQLINT4); mssql_bind($proc,'@iGroupID',$iGroupID, SQLINT4); mssql_bind($proc,'@tiStatus',$tiStatus, SQLINT4); mssql_bind($proc,'@tiOriginalStatus',$tiOriginalStatus, SQLINT4); mssql_bind($proc,'@bShowOnInternet',$bShowOnInternet, SQLINT4); mssql_bind($proc,'@siFavoriteTeam',$siFavoriteTeam, SQLINT4); mssql_bind($proc,'@bSplitLines',$bSplitLines, SQLINT4); mssql_bind($proc,'@bAutomaticallyUpdateStatus',$bAutomaticallyUpdateStatus, SQLINT4); mssql_bind($proc,'@bDeleted',$bDeleted, SQLINT4); mssql_bind($proc,'@tiCircleLevel',$tiCircleLevel, SQLINT4); mssql_bind($proc,'@bolWithSubscribe',$bolWithSubscribe, SQLINT4); mssql_bind($proc,'@siPST1',$siPST1, SQLINT4); mssql_bind($proc,'@iPST1Lay',$iPST1Lay, SQLINT4); mssql_bind($proc,'@iPST1Get',$iPST1Get, SQLINT4); mssql_bind($proc,'@siPST2',$siPST2, SQLINT4); mssql_bind($proc,'@iPST2Lay',$iPST2Lay, SQLINT4); mssql_bind($proc,'@iPST2Get',$iPST2Get, SQLINT4); mssql_bind($proc,'@tiPSCircledGamesID',$tiPSCircledGamesID, SQLINT4); mssql_bind($proc,'@siOver',$siOver, SQLINT4); mssql_bind($proc,'@iOverLay',$iOverLay, SQLINT4); mssql_bind($proc,'@iOverGet',$iOverGet, SQLINT4); mssql_bind($proc,'@siUnder',$siUnder, SQLINT4); mssql_bind($proc,'@iUnderLay',$iUnderLay, SQLINT4); mssql_bind($proc,'@iUnderGet',$iUnderGet, SQLINT4); mssql_bind($proc,'@tiOUCircledGamesID',$tiOUCircledGamesID, SQLINT4); mssql_bind($proc,'@iML1Lay',$iML1Lay, SQLINT4); mssql_bind($proc,'@iML1Get',$iML1Get, SQLINT4); mssql_bind($proc,'@iML2Lay',$iML2Lay, SQLINT4); mssql_bind($proc,'@iML2Get',$iML2Get, SQLINT4); mssql_bind($proc,'@tiMLCircledGamesID',$tiMLCircledGamesID, SQLINT4); mssql_bind($proc,'@dtLastModifiedDate',$dtLastModifiedDate, SQLINT4); mssql_bind($proc,'@siLastModifiedUser',$siLastModifiedUser, SQLINT4); mssql_bind($proc,'@bitEnableGracePeriod',$bitEnableGracePeriod, SQLINT4); mssql_bind($proc,'@iRetVal',&$iRetVal, SQLINT4, true); // ret val mssql_bind($proc,'@bDoNotPublishLine',$bDoNotPublishLine, SQLINT4); mssql_bind($proc,'@sdtEventPartTime',$sdtEventPartTime, SQLVARCHAR); mssql_bind($proc,'@bitEventPartTimeChanged',$bitEventPartTimeChanged, SQLINT4); if ($result = mssql_execute($proc)) { echo $iRetVal; } } ?>

NFL


Fatal error: Call to undefined function ProcessLeague() in /var/www/html/feed.10stars.net/linemover.php on line 47