EOL - This project is no longer maintained.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ljoonal fb93a97808
Small progress
1 year ago
dist Small progress 1 year ago
src making things really work 1 year ago
.gitignore broke things but made progress 2 years ago
.htaccess Working again 2 years ago
build-css.js Working again 2 years ago
license broke things but made progress 2 years ago
package-lock.json broke things but made progress 2 years ago
package.json broke things but made progress 2 years ago
readme.md Intial commit 2 years ago
setup.md broke things but made progress 2 years ago
todo.md Added a task to do 1 year ago

readme.md

What is this?

FiBr - File Browser. It allows you to customize your file names and the date’s of the files. Or even folders for that matter. It uses mySQL databases to store all of the file information, so it doesn’t need to rely on the actual date modified attributes of the files, or the actual names.

Requirements

These are what it’s tested on, might work on other setups as well:

  • Apache2.4
  • MySql 5.5 (Tested on MariaDB 5.5.60)
  • Knowledge on how to point index file to index.php
  • Knowledge to change some variables in index.php file

How do I use it?

Right now you don’t. This doesn’t work yet.

How would I use it when it’s ready?

You’d download this project folder, move index.php to some location, point your htacces to use that file as the index file, change some variables in the index.php to tell it where sorttable.js and the css files are along with the file icons. Then you’d set up the enviroment variables in apache vhosts config

<VirtualHost *:80>
  ServerName yourserverhere.com
  DocumentRoot /your/document/root
  SetEnv MYSQLNAME yourmysqluser
  SetEnv MYSQLPASS yourmysqluserpasswordhere
</VirtualHost>

and then you’d just open the folder you want to access and it’d just work.

Contributing

  • This is still in very early developement. Please make your code easy to read. If I cannot understand it in 5 seconds or less, and there’s no comment about it, it’s not going to pass.
  • Make sure that it works with php7.2 and Apache2.4.
  • Indent with 2 spaces
  • Declare configuration variabes at the top
  • Do not use short tags <? ... ?> (<?= ... ?> is fine along with the normal <?php ... ?>)

General usage idea: you can move all of the files to wherever you want, index.php will contain variables for all the needed file’s paths that you’ll change. Then it’ll read the url, and get the current location from there, not from where index.php is located. That way, you can use .htaccess to point from other folders to that file, or include it in the index file.