Example #1
0
 /**
  * Constructor.
  *
  * @param string $username Rambla user account name
  * @param string $password Rambla user account pwd
  * @param string $server Name of the web-service (optional).
  * @param bool $ssl Set to True if you're using SSL (default = False, if you want to use SSL for file uploads make sure you have a 'secure' user account - contact support@rambla.be)
  * @param string $user_agent Name of the user agent (is passed in the 'User-Agent' HTTP header).
  */
 function __construct($username, $password, $server = null, $ssl = False, $user_agent = "raws-php")
 {
     $this->server = "rase.str01.rambla.be";
     if ($server) {
         $this->server = $server;
     }
     parent::__construct($username, $password, $this->server, $ssl, $user_agent);
 }
Example #2
0
 function json_decode($v, $t)
 {
     $js = new JsonService($t ? 16 : 0);
     return $js->decode($v);
 }
Example #3
0
 /**
  * Constructor.
  *
  * @param string $username Rambla user account name
  * @param string $password Rambla user account pwd
  * @param string $server Name of the web-service (either 'rass.cdn01.rambla.be' or 'rass.cdn02.rambla.be' depending on your sub-CDN).
  * @param bool $ssl Set to True if you're using SSL (default = False, if you want to use SSL for file uploads make sure you have a 'secure' user account - contact support@rambla.be)
  * @param string $user_agent Name of the user agent (is passed in the 'User-Agent' HTTP header).
  */
 function __construct($username, $password, $server = null, $ssl = False, $user_agent = "raws-php")
 {
     parent::__construct($username, $password, $server, $ssl, $user_agent);
 }
Example #4
0
if (!function_exists('json_decode')){function json_decode($v,$t){$js = new JsonService($t?16:0); return $js->decode($v);}}