Title="Index of $dir"
Tag="navicon"
---
<?PHP
/* Copyright 2005-2017, Lime Technology
 * Copyright 2012-2017, Bergware International.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 2,
 * as published by the Free Software Foundation.
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 */
?>
<script>
$(function(){
  $.get('/webGui/include/Browse.php',{dir:"<?=addslashes(htmlspecialchars($dir))?>",path:"<?=$path?>",user:<?=strpos($dir,'/mnt/user')===0?1:0?>},function(data){
    var table = $('table.indexer');
    var col = $.cookie('col')||1;
    var dir = $.cookie('dir')||0;
    table.html(data);
    table.bind('sortEnd',function(e,t){
      var sort = e.target.config.sortList.toString().split(',');
      $.cookie('col',sort[0],{path:'/'});
      $.cookie('dir',sort[1],{path:'/'});
    });
    table.tablesorter({sortList:[[col,dir]],sortAppend:[[1,0]],textExtraction:function(n,t,i){return $(n).attr('data')||$(n).text();}});
  });
});
</script>
<table class="indexer tablesorter">
 <thead><tr><th>Type</th><th>Name</th><th>Size</th><th>Last Modified</th><th>Location</th></tr></thead>
 <tbody><tr><td colspan="5" style="text-align:center;padding-top:12px"><i class='fa fa-spinner fa-spin icon'></i><em>Please wait, loading information ...</em></td></tr></tbody>
</table>
<input type="button" value="Done" onclick="done('Browse')">
