Advertisement
Guest User

Untitled

a guest
Jun 12th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1.  
  2. // Function Make Picks
  3. //Access To Registered Users
  4. function actionMakepicks($leagueID){
  5.  
  6. if (!$GLOBALS['logged']['member'] && !$GLOBALS['logged']['admin']) { // check access to the page
  7. $this->_oTemplate->displayAccessDenied ();
  8. return;
  9. }
  10.  
  11. $this->_oTemplate->pageStart();
  12.  
  13.  
  14.  
  15. $username = "xmlsofton";
  16. $password = "sports";
  17.  
  18.  
  19.  
  20. // opening lines
  21. $today = date('Y-m-d')."T".date('H:i:s')."Z";
  22. $lines= new LinesService();
  23. $BookId = new BookIdsType();
  24. $params = new LinesRequestType();
  25.  
  26.  
  27.  
  28. $params->TimeStamp = $today; //The date for the date retrieve
  29. $params->BookIds = array(
  30. 'BookId'=>$BookId->BookId = 74); //Represent the BookMaker
  31. $params->LeagueId = $leagueID; //The League ID Ex("NFL" = 1)
  32.  
  33.  
  34.  
  35. $result = $lines->OpeningLines($params,$username,$password);
  36.  
  37. if (is_soap_fault($result)) {
  38. trigger_error("SOAP Fault: (faultcode: {$result->faultcode},
  39. faultstring: {$result->faultstring})", E_USER_ERROR);
  40. }
  41.  
  42. $result = object_to_array($result); //Convert The Object Request to array
  43.  
  44. if (is_soap_fault($result)) {
  45. trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring:
  46. {$result->faultstring})", E_USER_ERROR);
  47. }
  48. $aVars = array ();
  49.  
  50. echo $this->_oTemplate->parseHtmlByName('makepicks', $aVars);
  51. $this->_oTemplate->pageCode(_t('_soft_bet'), true);
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement