Coder Social home page Coder Social logo

morristech / gamerz-file-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lesterchan/gamerz-file-explorer

0.0 1.0 0.0 84 KB

Enables you to browse and search for folders/files on the web just like Windows Explorer.

Home Page: https://files.lesterchan.net

PHP 100.00%

gamerz-file-explorer's Introduction

Build Status

GaMerZ File Explorer

Enables you to browse a folder on the web like Windows Explorer. It has the ability to search for folders and files too.

Installation

Config

  • GFE_ROOT_DIR - The absolute path of the folder that you want to show it's contents (without trailing slash).
  • Example: /home/user/public_html/files
  • GFE_ROOT_URL - The URL to that folder (without trailing slash).
  • Example: http://files.yoursite.com
  • GFE_DIR - The absolute path of the folder you uploaded the files of GaMerZ File Explorer (without trailing slash).
  • Note: You can upload GaMerZ File Explorer into the same folder as the contents that you want to show.
  • Example: /home/user/public_html/files
  • GFE_URL - The URL to that folder (without trailing slash).
  • Note: You can upload GaMerZ File Explorer into the same folder as the contents that you want to show.
  • Example: http://files.yoursite.com
  • GFE_SITE_NAME - Your site name
  • GFE_SITE_DESCRIPTION - Your site description
  • GFE_ROOT_FILENAME - Web Server directory index. Normally you do not need to change this.
  • GFE_NICE_URL - Search engine friendly URLs. See below.
  • Example Nice URL: http://files.yoursite.com/browse/folder1/.
  • Example Normal URL: http://files.yoursite.com/index.php?dir=folder1.
  • GFE_CAN_SEARCH - By setting to true, you allow users to search for files in GaMerZ File Explorer.
  • GFE_DEFAULT_SORT_BY - Default sort field.
  • Values can be name, size, type or date.
  • GFE_DEFAULT_SORT_ORDER - Default sort order.
  • Values can be asc or desc.

To Enable Search Engine Friendly URLs

If you are using Apache, upload .htaccess to the folder where you uploaded GaMerZ File Explorer.

If you are using Nginx, paste the below configuration in your nginx.conf file.

location / {
    try_files $uri $uri/ /index.php;
}
rewrite ^/sortby/(.+[^/])/sortorder/(.+[^/])/?$ /index.php?by=$1&order=$2 last;
rewrite ^/browse/(.+[^/])/sortby/(.+[^/])/sortorder/(.+[^/])/?$ /index.php?dir=$1&by=$2&order=$3 last;
rewrite ^/browse/(.+[^/])/?$ /index.php?dir=$1 last;
rewrite ^/viewing/(.+[^/])/?$ /view.php?file=$1 last;
rewrite ^/download/(.+[^/])/?$ /view.php?file=$1&dl=1 last;

Upload These Files To The Directory You Specify In GFE_DIR

  • Folder: resources
  • File: .htaccess (might be hidden)
  • File: 404.php
  • File: config.php
  • File: functions.php
  • File: index.php
  • File: search.php
  • File: settings.php
  • File: view.php

Changelog

Version 2.0.0 Beta 1 (21-09-2015)

  • NEW: New design using Bootstrap with Font Awesome

Version 1.2.0 (01-02-2006)

  • NEW: XHTML 1.1 Comptible Now

Version 1.20 Beta 3 (24-10-2006)

  • FIXED: Error Displaying File Size More Than 2GB

Version 1.20 Beta 2 (25-03-2005)

  • NEW: Added Default Sort Options
  • NEW: HTML View Using IFRAME
  • NEW: Added HTML View/HTML Source Option For HTML Files
  • NEW: Added A JavaScript File Called javasript.js
  • FIXED: Moved <style></style> Before
  • FIXED: Changed content-type To utf-8

Version 1.20 Beta (01-02-2005)

  • NEW: Search Engine Now Implemented
  • NEW: Added GB To The File Size
  • NEW: .w3x Extensions Added
  • FIXED: File Type Will Be 'Unknown' If File Type Is Not Registered In settings.php Instead Of Blank

Version 1.10 (01-12-2005)

  • NEW: Now Support Nice URL Via Apache's mod_rewrite. User Can Choose To Enable/Disble Nice URL Option It In config.php
  • NEW: Rewrote The Codes That Displays The Files And Folders, Now There Will Be No '/' In Front Of Any Folders Or Files
  • NEW: settings.php Will Now Contain Most Of The Default Settings, So For Future Versions, You Do Not Need To Overwrite config.php Anymore
  • NEW: Ability To Sort By Type
  • NEW: Proper HTML Error Page
  • NEW: title="" Being Added To Almost Every <td>
  • NEW: favicon.ico Added
  • NEW: .mdb|.mov|.msi|.ra|.rm|.tif|.wma|.wmv Extensions Added
  • FIXED: Extension Not Showing When It Is In Upper Case
  • FIXED: Files Listed In $ignore_files And $ignore_folders Will Now Be More Specified. If Ignore File Is 'test/test.htm', Only 'test.htm' In 'test' Folder Will Be Ignored Rather Than 'test.htm' Throughout All The Folders
  • FIXED: No More Use Of PHP Short Tag
  • FIXED: Unknown Or Undefined File Extension, The File Extension Image Will Now Be unknown.gif
  • FIXED: Invalid Checking Of Directory in view.php
  • FIXED: Grammer Mistakes For Singular And Pural
  • FIXED: No Extension Given If There Is Spaces In The File Name That Is Being Downloaded

Version 1.00 (09-09-2005)

  • NEW: Public Release Of GaMerZ File Explorer

gamerz-file-explorer's People

Contributors

lesterchan avatar

Watchers

 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.