From 10eef51a0f086ad148928ba965c330599b4765cb Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 4 Jun 2017 17:16:11 +0200 Subject: Update package for new web plugin interface --- radicale_web/web/infcloud/auth/plugins/generic.inc | 58 ---------------------- 1 file changed, 58 deletions(-) delete mode 100644 radicale_web/web/infcloud/auth/plugins/generic.inc (limited to 'radicale_web/web/infcloud/auth/plugins/generic.inc') diff --git a/radicale_web/web/infcloud/auth/plugins/generic.inc b/radicale_web/web/infcloud/auth/plugins/generic.inc deleted file mode 100644 index 8e6b14b..0000000 --- a/radicale_web/web/infcloud/auth/plugins/generic.inc +++ /dev/null @@ -1,58 +0,0 @@ -\n"; - return -2; - } - else - { - $request=""; - - $out="PROPFIND ".$pluginconfig['request']." HTTP/1.1\r\n"; - $out.="Host: $hostname_clean\r\n"; - $out.="Authorization: Basic ".base64_encode($_SERVER['PHP_AUTH_USER'].':'.$_SERVER['PHP_AUTH_PW'])."\r\n"; - $out.="Depth: 0\r\n"; - $out.="Content-Type: text/xml; charset=\"utf-8\"\r\n"; - $out.="Content-Length:". strlen($request)."\r\n\r\n"; - $out.=$request; - fwrite($fp, $out); - - $result=''; - if(!feof($fp)) - $result.=fgets($fp); - fclose($fp); - - if(strpos($result, 'HTTP/1.1 207')===0) - return 1; // auth successful - else - return -1; // auth unsuccessful - } - } - return 0; // empty username or password - } -?> \ No newline at end of file -- cgit