diff --git a/hooks.php b/hooks.php index 88c0142..f81e45e 100644 --- a/hooks.php +++ b/hooks.php @@ -44,7 +44,7 @@ public function add_preferences(array $param): array { $prefs = $this->rcmail->user->get_prefs(); - self::log($prefs); +// self::log($prefs); $server = $this->rcmail->config->get(__("server")); $blocks = $param["blocks"]; @@ -74,7 +74,7 @@ public function add_preferences(array $param): array $server_format_tokens = explode(":", $this->rcmail->config->get(__("folder_layout"), "flat")); - self::log($server_format_tokens); +// self::log($server_format_tokens); $server_format = match ($server_format_tokens[0]) { "flat" => $this->gettext("folder_layout_flat"), @@ -196,7 +196,7 @@ private function save_preferences(array $param) : array } } - self::log($param); +// self::log($param); return $param; } @@ -416,7 +416,7 @@ public function upload(array $data): array $folder_suffix = $this->resolve_destination_folder($folder_uri, $data["path"], $username, $password); $folder .= "/".$folder_suffix; $folder_uri .= "/".$folder_suffix; - self::log($folder_uri); +// self::log($folder_uri); //get unique filename $filename = $this->unique_filename($folder_uri, $data["name"], $username, $password); @@ -496,11 +496,11 @@ public function upload(array $data): array } } $form_params["password"] = $share_password; - self::log($share_password); +// self::log($share_password); } try { - self::log($form_params); +// self::log($form_params); $res = $this->client->post($server . "/ocs/v2.php/apps/files_sharing/api/v1/shares", [ "headers" => [ "OCS-APIRequest" => "true" @@ -515,7 +515,7 @@ public function upload(array $data): array ]); $body = $res->getBody()->getContents(); - self::log($form_params); +// self::log($form_params); if ($res->getStatusCode() == 200) { //upload successful $ocs = new SimpleXMLElement($body); //inform client for insert to body