Subversion Repositories SmartDukaan

Rev

Rev 12694 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12694 Rev 13062
Line 42... Line 42...
42
		return function_exists('curl_multi_init');
42
		return function_exists('curl_multi_init');
43
	}
43
	}
44
	// method to add curl requests to the multi request queue
44
	// method to add curl requests to the multi request queue
45
	function add_call($key=null, $method, $url, $params = array(), $options = array())
45
	function add_call($key=null, $method, $url, $params = array(), $options = array())
46
	{
46
	{
47
		error_log("URL = $url ".print_r($params,1));	
47
		$authorized=$this->_ci->session->userdata('authorized');
-
 
48
		if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) {
-
 
49
			$params['privateDealUser'] = 'true';
-
 
50
		}
48
		if (is_null($key))
51
		if (is_null($key))
49
		{
52
		{
50
			$key = count($this->calls);
53
			$key = count($this->calls);
51
		}
54
		}
52
		
55