Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

djh816/doc.php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#doc.php doc.php is a PHP application that mimics a file explorer. It uses HTML5 to display audio and video and PHP Markdown by Michel Fortin to parse these files into a simple but interactive file browser.

A live example is available here.

doc.php was created by @makepanic.

##What does it do?

  • parse files the way you want
  • limits the access to a defined root folder
  • individual rules for extensions
  • displays .info files inside the filemanager

##Installation

  1. Download doc.php from GitHub.
  2. Extract index.php , config.php and the lib folder on your PHP enabled server
  3. Create a subfolder for your filesystem, default:docphp
  4. Copy all the files you want to use in doc.php into the created folder

##Default extensions

  • PDF - pdf Portable Document Format via embed object
  • Audio - wav,mp3,ogg Using HTML5 audio with an inline player that checks for compatibility
  • Code - php,js,java,vb,cs,html,css Display the code with pre and escape HTML chars
  • Image - jpg,jpeg,gif,png,apng,bmp Display images
  • Video - mp4,wma,webm,ogv Display an HTML5 video player

###Additional Config Open config.php and modify the define() commands if you want

DOC_TITLE:   		default: 'doc.php'
			 		this string sets the title of the navigation bar
ROOT_DIR:	 		default: 'raw'
			 		this string sets the root folder for your doc.php presentation
MAX_NAV :	 		default: '4'
			 		maximum number of breadcrumbs to display in the top navigation
SHORTEN_NAV: 		default: '15'
			 		maximum number of characters in the top navigation per folder
THEME:   	 		default: 'light'
			 		this string sets the title of the navigation bar
			 		choose between 'dark' and 'light'
SHOW_EXTENSIONS:   	default: 'false'
					enable if you want to display file extensions
HTACCESS:           default: 'false'
					enable if you want to use a .htaccess file for cleaner URLs

###License WTFPL

About

php filebrowser with markdown parser and html5 multimedia integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published