Coder Social home page Coder Social logo

minixed's Introduction

Minixed is a minimal but nice-looking PHP directory indexer.
You can see it as a replacement for the Apache mod_autoindex.

«How does it look?» Like this.
«I don't like it.» You are a CSS master, right? Good, you know what to do.

How to use

Just drop the index.php script in the same directory that contains files you want to index.

wget https://raw.githubusercontent.com/lorenzos/Minixed/master/index.php

«Really? One single file?» Yes, really. Glad you asked.
«If so, where are icon files?» They are hard coded into the source, thanks Base-64.
«Was it really necessary?» I don't know, I just loved the idea you need only one file.

If you want Minixed to work also in subfolders, edit index.php setting:

$browseDirectories = true; // Navigate into sub-folders

Configuration

The script works well out-of-the-box, and generally you want to leave it as it is. However if you have some particular needs, there are some PHP variables placed in the first lines of index.php you can edit.

You can enable navigation into subfolders using:

$browseDirectories = true; // Navigate into sub-folders

You can change the page title (and subtitle) providing strings that can contains some placeholders that will be parsed at runtime:

$title = 'Index of {{path}}';
$subtitle = '{{files}} objects in this folder, {{size}} total'; // Empty to disable

You can tell the script how to build the files list using:

$showParent = false; // Display a (parent directory) link
$showDirectories = true;
$showHiddenFiles = false; // Display files starting with "." too

And how that list should look:

$alignment = 'left'; // You can use 'left' or 'center'
$showIcons = true;
$dateFormat = 'dd/mm/yyyy HH:ii'; // Used in date() function
$sizeDecimals = 1;

Finally, you can customize the content of the meta-tag "robots" if you want to give some search engine hints:

$robots = 'noindex, nofollow'; // Avoid robots by default

Of course, if PHP is a friend of yours you can easily understand the whole script source code, so the only limit to customization is your imagination.

Bug tracking and developing

If you find bugs, if you have suggestions, if you modified the script adding features or improvements, feel free to contribute by opening Issues or Pull Requests.

minixed's People

Contributors

lorenzos avatar tim-elmer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.