1{* 2 * $Revision: 16235 $ 3 * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates 4 *} 5<div class="gbBlock gcBackground1"> 6 <h2> {g->text text="WebDAV Settings"} </h2> 7</div> 8 9{if !$WebDavSiteAdmin.code} 10 <div class="gbBlock"> 11 <h3 class="giSuccess"> {g->text text="Configuration checked successfully"} </h3> 12 13 <p class="giDescription"> 14 {g->text text="Most WebDAV clients will successfully connect. Documentation on mounting Gallery with WebDAV is in the %sGallery Codex%s." arg1="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:user\">" arg2="</a>"} 15 </p> 16 17 <p class="giDescription"> 18 {g->text text="The URL to connect to Gallery with WebDAV is:"} <a href="{g->url arg1="controller=webdav.WebDav" forceFullUrl=true forceSessionId=false useAuthToken=false}"> {g->url arg1="controller=webdav.WebDav" forceFullUrl=true forceSessionId=false useAuthToken=false} </a> 19 </p> 20 </div> 21{/if} 22 23{if $WebDavSiteAdmin.code & WEBDAV_STATUS_NO_XML_PARSER} 24 <div class="gbBlock"> 25 <h3 class="giError"> {g->text text="PHP has no XML support"} </h3> 26 27 <p class="giDescription"> 28 {g->text text="You can't connect with WebDAV because PHP has no XML support on this server. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg2="</a>"} 29 </p> 30 </div> 31{/if} 32 33{if $WebDavSiteAdmin.code & WEBDAV_STATUS_METHOD_NOT_HANDLED} 34 <div class="gbBlock"> 35 <h3 class="giError"> {g->text text="WebDAV requests not handled"} </h3> 36 37 <p class="giDescription"> 38 {g->text text="You can't connect with WebDAV because this server doesn't pass WebDAV requests to Gallery. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg2="</a>"} 39 </p> 40 </div> 41{/if} 42 43{if $WebDavSiteAdmin.code & WEBDAV_STATUS_HTTPAUTH_MODULE_DISABLED} 44 <div class="gbBlock"> 45 <h3 class="giWarning"> {g->text text="HTTP auth module disabled"} </h3> 46 47 <p class="giDescription"> 48 {capture assign="adminPluginsUrl"}{g->url arg1="view=core.SiteAdmin" arg2="subView=core.AdminPlugins" return=true}{/capture} 49 {g->text text="You can connect with WebDAV anonymously, but you can't do anything which requires you to login because the HTTP auth module is disabled. You should activate the HTTP auth module in the %sSite Admin Plugins option%s. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"$adminPluginsUrl\">" arg2="</a>" arg3="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg4="</a>"} 50 </p> 51 </div> 52{elseif $WebDavSiteAdmin.code & WEBDAV_STATUS_HTTPAUTH_AUTH_PLUGINS_DISABLED} 53 <div class="gbBlock"> 54 <h3 class="giWarning"> {g->text text="HTTP auth plugin disabled"} </h3> 55 56 <p class="giDescription"> 57 {g->text text="You can connect with WebDAV anonymously, but you can't do anything which requires you to login because neither HTTP authentication nor server authentication are enabled in the HTTP auth module. You should activate HTTP authentication in the settings of the HTTP auth module."} 58 </p> 59 </div> 60 61{/if} 62 63{if $WebDavSiteAdmin.code & WEBDAV_STATUS_CONNECT_RULE_DISABLED} 64 <div class="gbBlock"> 65 <h3 class="giWarning"> {g->text text="'Connect to WebDAV' rule disabled"} </h3> 66 67 <p class="giDescription"> 68 {capture assign="adminRewriteUrl"}{g->url arg1="view=core.SiteAdmin" arg2="subView=rewrite.AdminRewrite" return=true}{/capture} 69 {g->text text="Most WebDAV clients will fail to connect because the URL rewrite rule to generate short WebDAV URLs is disabled. You should activate the 'Connect to WebDAV' rule in the %sSite Admin URL Rewrite option%s. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"$adminRewriteUrl\">" arg2="</a>" arg3="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg4="</a>"} 70 </p> 71 72 <p class="giDescription"> 73 {g->text text="The URL to connect to Gallery with WebDAV is:"} <a href="{g->url arg1="controller=webdav.WebDav" forceFullUrl=true forceSessionId=false useAuthToken=false}"> {g->url arg1="controller=webdav.WebDav" forceFullUrl=true forceSessionId=false useAuthToken=false} </a> 74 </p> 75 </div> 76{/if} 77 78{if $WebDavSiteAdmin.code & WEBDAV_STATUS_MISSING_DAV_HEADERS} 79 <div class="gbBlock"> 80 <h3 class="giWarning"> {g->text text="Missing DAV headers"} </h3> 81 82 <p class="giDescription"> 83 {g->text text="Some WebDAV clients, e.g. Mac OS X WebDAVFS, will fail to connect because OPTIONS responses are missing DAV headers. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg2="</a>"} 84 </p> 85 </div> 86{/if} 87 88{if $WebDavSiteAdmin.code & WEBDAV_STATUS_ALTERNATIVE_URL_HEADERS} 89 <div class="gbBlock"> 90 <h3 class="giWarning"> {g->text text="Alternative URL missing DAV headers"} </h3> 91 92 <p class="giDescription"> 93 {g->text text="Because OPTIONS responses are missing DAV headers, we try to fall back on an alternative URL, but alternative URL responses are also missing DAV headers. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg2="</a>"} 94 </p> 95 </div> 96{/if} 97 98{if $WebDavSiteAdmin.code & WEBDAV_STATUS_REWRITE_MODULE_DISABLED} 99 <div class="gbBlock"> 100 <h3 class="giWarning"> {g->text text="URL rewrite module disabled"} </h3> 101 102 <p class="giDescription"> 103 {capture assign="adminPluginsUrl"}{g->url arg1="view=core.SiteAdmin" arg2="subView=core.AdminPlugins" return=true}{/capture} 104 {g->text text="Most WebDAV clients will fail to connect because the URL rewrite module is disabled. You should activate the URL rewrite module in the %sSite Admin Plugins option%s and choose either Apache mod_rewrite or ISAPI_Rewrite. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"$adminPluginsUrl\">" arg2="</a>" arg3="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg4="</a>"} 105 </p> 106 </div> 107{/if} 108 109{if $WebDavSiteAdmin.code & WEBDAV_STATUS_BAD_REWRITE_PARSER} 110 <div class="gbBlock"> 111 <h3 class="giWarning"> {g->text text="Bad URL rewrite configuration"} </h3> 112 113 <p class="giDescription"> 114 {capture assign="adminPluginsUrl"}{g->url arg1="view=core.SiteAdmin" arg2="subView=core.AdminPlugins" return=true}{/capture} 115 {g->text text="PHP PathInfo rewrite doesn't support the rule to fall back on an alternative URL. You should uninstall and reinstall the URL rewrite module in the %sSite Admin Plugins option%s and choose either Apache mod_rewrite or ISAPI_Rewrite. Troubleshooting information is in the %sGallery Codex%s." arg1="<a href=\"$adminPluginsUrl\">" arg2="</a>" arg3="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg4="</a>"} 116 </p> 117 </div> 118{/if} 119 120{if $WebDavSiteAdmin.code & WEBDAV_STATUS_OPTIONS_RULE_DISABLED} 121 <div class="gbBlock"> 122 <h3 class="giWarning"> {g->text text="'OPTIONS Requests' rule disabled"} </h3> 123 124 <p class="giDescription"> 125 {capture assign="adminRewriteUrl"}{g->url arg1="view=core.SiteAdmin" arg2="subView=rewrite.AdminRewrite" return=true}{/capture} 126 {g->text text="The URL rewrite rule to fall back on an alternative URL is disabled. You should activate the WebDAV 'OPTIONS Requests' rule in the %sSite Admin URL Rewrite option%s. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"$adminRewriteUrl\">" arg2="</a>" arg3="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg4="</a>"} 127 </p> 128 </div> 129{/if} 130 131{if $WebDavSiteAdmin.code & WEBDAV_STATUS_ERROR_UNKNOWN} 132 <div class="gbBlock"> 133 <h3 class="giWarning"> {g->text text="Unknown Cause"} </h3> 134 135 <p class="giDescription"> 136 {g->text text="Some WebDAV clients, e.g. Mac OS X WebDAVFS, will fail to connect and automated checks failed to find a cause. Troubleshooting documentation is in the %sGallery Codex%s." arg1="<a href=\"http://codex.gallery2.org/index.php/Gallery2:Modules:webdav:admin\">" arg2="</a>"} 137 </p> 138 </div> 139{/if} 140