diff --git a/inc/caldav-MKCOL.php b/inc/caldav-MKCOL.php new file mode 100644 index 00000000..db2c6e38 --- /dev/null +++ b/inc/caldav-MKCOL.php @@ -0,0 +1,30 @@ +user_no, $parent_container, $make_path, md5($session->user_no. $make_path), $displayname ); + +if ( $qry->Exec("MKCOL",__LINE__,__FILE__) ) { + header("HTTP/1.1 200 Created"); + dbg_error_log( "MKCOL", "New collection '%s' created named '%s' for user '%d' in parent '%s'", $make_path, $displayname, $session->user_no, $parent_container); +} +else { + header("HTTP/1.1 500 Infernal Server Error"); + dbg_error_log( "ERROR", " MKCOL Failed for '%s' named '%s', user '%d' in parent '%s'", $make_path, $displayname, $session->user_no, $parent_container); +} + +?> \ No newline at end of file