Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Function Make Picks
- //Access To Registered Users
- function actionMakepicks($leagueID){
- if (!$GLOBALS['logged']['member'] && !$GLOBALS['logged']['admin']) { // check access to the page
- $this->_oTemplate->displayAccessDenied ();
- return;
- }
- $this->_oTemplate->pageStart();
- $username = "xmlsofton";
- $password = "sports";
- // opening lines
- $today = date('Y-m-d')."T".date('H:i:s')."Z";
- $lines= new LinesService();
- $BookId = new BookIdsType();
- $params = new LinesRequestType();
- $params->TimeStamp = $today; //The date for the date retrieve
- $params->BookIds = array(
- 'BookId'=>$BookId->BookId = 74); //Represent the BookMaker
- $params->LeagueId = $leagueID; //The League ID Ex("NFL" = 1)
- $result = $lines->OpeningLines($params,$username,$password);
- if (is_soap_fault($result)) {
- trigger_error("SOAP Fault: (faultcode: {$result->faultcode},
- faultstring: {$result->faultstring})", E_USER_ERROR);
- }
- $result = object_to_array($result); //Convert The Object Request to array
- if (is_soap_fault($result)) {
- trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring:
- {$result->faultstring})", E_USER_ERROR);
- }
- $aVars = array ();
- echo $this->_oTemplate->parseHtmlByName('makepicks', $aVars);
- $this->_oTemplate->pageCode(_t('_soft_bet'), true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement