Changeset View
Changeset View
Standalone View
Standalone View
lib/file_manticore_api.php
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | class file_manticore_api | ||||
/** | /** | ||||
* Class constructor. | * Class constructor. | ||||
* | * | ||||
* @param string $base_url Base URL of the Kolab API | * @param string $base_url Base URL of the Kolab API | ||||
*/ | */ | ||||
public function __construct($base_url) | public function __construct($base_url) | ||||
{ | { | ||||
require_once 'HTTP/Request2.php'; | |||||
$config = rcube::get_instance()->config; | $config = rcube::get_instance()->config; | ||||
$this->debug = rcube_utils::get_boolean($config->get('fileapi_manticore_debug')); | $this->debug = rcube_utils::get_boolean($config->get('fileapi_manticore_debug')); | ||||
$this->base_url = rtrim($base_url, '/') . '/'; | $this->base_url = rtrim($base_url, '/') . '/'; | ||||
$this->request = new HTTP_Request2(); | $this->request = new HTTP_Request2(); | ||||
self::configure($this->request); | self::configure($this->request); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |