auth = new myCustomLockAuth( // Some configuration directory here dirname( __FILE__ ) . '/tokens.php' ); $server->pluginRegistry->registerPlugin( new ezcWebdavLockPluginConfiguration() ); $backend = new ezcWebdavFileBackend( // Your WebDAV directory here dirname( __FILE__ ) . '/backend' ); $server->handle( $backend ); ?>