File: webdav.php

package info (click to toggle)
diogenes 0.9.20-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,976 kB
  • ctags: 3,271
  • sloc: php: 12,285; sh: 828; perl: 258; makefile: 137; sql: 85
file content (20 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
require_once 'diogenes.common.inc.php';
require_once 'diogenes.admin.inc.php';

$page = new DiogenesAdmin;

$page->assign('greeting',__("WebDAV"));

if ($globals->checkRootUrl())
{
  $page->assign('msg_webdav',__("You can access your barrel's files using WebDAV by pointing your WebDAV client to the following address."));
  $page->assign('url_webdav', $page->urlBarrel($page->alias, $page->barrel->vhost, "webdav/"));
} else {
  $page->assign('msg_webdav', __("In order to access your barrel's files using WebDAV, please ask your Diogenes administrator to enable this feature in the Diogenes configuration file."));

}

$page->display('admin-webdav.tpl');

?>