| 1 |
<?php
|
| 2 |
global $base_url;
|
| 3 |
?>
|
| 4 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
| 5 |
<html>
|
| 6 |
<head>
|
| 7 |
<title>Disknode - <?= $title ?></title>
|
| 8 |
<style type="text/css">
|
| 9 |
<?php readfile(dirname(__FILE__).'/disknode.style.css'); ?>
|
| 10 |
</style>
|
| 11 |
<script type="text/javascript">
|
| 12 |
</script>
|
| 13 |
<base href="<?= $base_url ?>/" />
|
| 14 |
</head>
|
| 15 |
<body>
|
| 16 |
<h1><?= $title ?></h1>
|
| 17 |
<h2>root <?php
|
| 18 |
foreach (explode("/", $subdir) as $elm)
|
| 19 |
{
|
| 20 |
if (empty($elm)) continue;
|
| 21 |
echo " / ".$elm;
|
| 22 |
}
|
| 23 |
?></h2>
|
| 24 |
|
| 25 |
<?php
|
| 26 |
|
| 27 |
if (!is_writable(file_create_path($subdir))) drupal_set_message("$subdir is not writeable", 'error');
|
| 28 |
echo theme_status_messages();
|
| 29 |
|
| 30 |
echo $form;
|
| 31 |
|
| 32 |
?>
|
| 33 |
|
| 34 |
<div id="controls">
|
| 35 |
<span title="Browse and select files"><?= l("Browse", "disknode/browse", null, "subdir=".$subdir) ?></span>
|
| 36 |
|
|
| 37 |
<span title="Create a new subdirectory"><?= l("Create dir", "disknode/mkdir", null, "subdir=".$subdir) ?></span>
|
| 38 |
</div>
|
| 39 |
</body>
|
| 40 |
</html>
|