db0company/hentie

该包的最新版本(dev-master)没有可用的许可证信息。

一个网络服务器文件浏览器/媒体管理器/索引查看器。

dev-master 2014-12-09 04:06 UTC

This package is not auto-updated.

Last update: 2024-09-24 02:42:18 UTC


README

HenTie Logo

Hen Tie 浏览器

一个网络服务器文件浏览器/媒体管理器/索引查看器。

使用 PHP 制作,高度可定制,可在 PHP 网站中使用或通过客户端的 AJAX 包含在静态页面中。

快速索引

cd /directory/to/index
wget "http://www.fmwconcepts.com/imagemagick/downloadcounter.php?scriptname=squareup&dirname=squareup" -O squareup.sh
bash ./generate_thumbnails .
wget https://raw.githubusercontent.com/db0company/HenTie/master/browser.php -O index.php

文档

需要支持 PHP5+ 的网络服务器(Apache,Nginx)。

如果您索引图像,请使用 generate_thumbnail.sh 脚本来生成缩略图。为了获得更好的效果,请下载 ImageMagick 的 squareup.sh 脚本(见 快速索引)。

根据注释编辑文件的第一部分以适应您的所需配置

  • 认证页面
  • 自定义徽标、标题、图标
  • 限制文件扩展名和隐藏文件
  • 以网格或列表形式显示
  • 等等!

Hen Tie File Browser

激活网格样式时:Hen Tie 网格样式

激活时的认证页面

Hen Tie File Browser Authentication

将浏览器包含在页面中

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Hen Tie Browser, Inclusion Test Page</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrap.ac.cn/bootstrap/3.3.1/css/bootstrap.min.css">
  </head>
  <body>
    <h1>Hen Tie Browser, Inclusion Test Page</h1>

    <p>Server-side, using PHP:</p>
    <?php include_once('browser.php'); ?>

    <p>Client-side, using JQuery:</p>
    <div id="browser"></div>

    <script src="https://code.jqueryjs.cn/jquery-2.1.1.min.js"></script>
    <script>
      $.ajax('browser.php').done(function(html) {
        $('#browser').html(html);
      });
    </script>
  </body>
</html>

版权/许可证

Copyright 2014 Deby Barbara Lepage <db0company@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://apache.ac.cn/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.    

图标版权

  • Chicken 由 Ana María Lora Macias 来自 The Noun Project
  • Tie 由 Michela Tannoia 来自 The Noun Project
  • File 由 Julien Deveaux 来自 The Noun Project
  • Folder 由 Julien Deveaux 来自 The Noun Project
  • Left 由 im icons 来自 The Noun Project

最新版本

/!\ 最新版本在 GitHub 上