Advertisement
Guest User

Untitled

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