PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

PHP Directory Lister - The Simple Web Directory Lister

mardi 21 avril 2015 à 10:48
Liens en vrac de sebsauvage 21/04/2015
Une appli minimaliste pour présenter les fichiers sur un serveur. (via Mitsukarenai).
(Permalink)

Bookmark Bronco 21/04/2015
hop, coude direct (ça va m'éviter du boulot ^^ Merci Seb !)
(Permalink)

Shaarli de gamerz0ne.fr > Bookmark Bronco 21/04/2015
Moi j'utilise ça : http://larsjung.de/h5ai/

ça donne ça, c'est top, c'est très customisable : http://gamerz0ne.fr/data_other/gamerzone/

Seul petit bug rencontré : l'appli bug complètement avec des fichiers de plus de 1Go, la solution est de les caché de l'application (y'a une option prévu pour)
(Permalink)

Lien en vrac et message de Biniou 21/04/2015
application minimalist pr lister fichier sur serveur

a voir aussi http://larsjung.de/h5ai/

via sebsauvage et bronco
(Permalink)

Liens Ecyseo 21/04/2015
(via SebSauvage et Bronco)

Il peut y avoir un warning levé avec realpath à cause d'open_basedir (ligne 450 de DirectoryLister.php).

Pour y remédier, j'ai proposé cette fonction.
En attendant que la modif soit prise en compte, je vous la livre ici :

/**
    * When using realpath (and similar functions), PHP will take in to account open_basedir restrictions.
    * Because realpath() does not work on files that do not
    * exist, this function replaces (consecutive) occurences of / and \\ with
    * whatever is in DIRECTORY_SEPARATOR, and processes /. and /.. fine.
    *
    * @param $path string
    * @return absolute path Paths returned by get_absolute_path() contain no
    * (back)slash at position 0 (beginning of the string) or
    * position -1 (ending)
    *
    * @author Sven Arduwie (https://php.net/manual/fr/function.realpath.php#84012)
    */
   protected function _get_absolute_path($path) {
       $realPath = @realpath($path);
       if (! $realPath) {
           $path = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $path);
           $parts = array_filter(explode(DIRECTORY_SEPARATOR, $path), 'strlen');
           $absolutes = array();
           foreach ($parts as $part) {
               if ('.' == $part) continue;
               if ('..' == $part) {
                   array_pop($absolutes);
               } else {
                   $absolutes[] = $part;
               }
           }
           $realPath = implode(DIRECTORY_SEPARATOR, $absolutes);
       }
       return $realPath;
   }

Ceci dit, c'est vrai que h5ai est bien aussi mais moins minimaliste.
(Permalink)

Strak.ch | Actu et liens en vrac 21/04/2015
A simple PHP based directory lister that lists a directory and all it's sub-directories and allows you to navigate there within.
via sebsauvage.net
(Permalink)

Liens d'un Parigot-Manchot 22/04/2015
Un navigateur de fichier, dans la veine de h5ai, en moins "Ajax".

Via : http://sebsauvage.net/links/?z39ovA
(Permalink)