|
Simple File Server in PHP
|
This is a simple file server that is great for users to pick up audio and video files directly
from your system.
It serves all the current folders and shows contents of each subfolder, but ignores 2nd level folders.
By not showing 2nd level folders, you can "hide" original source files, conversion scripts,
etc so it can be used as an archive simultaneously, without presenting files to the user they don't need to
accidentally download. (You can turn on 2nd level folders in line 143)
If folders named "invoices" or "_invoices" are found, they are put at the top, and "old depos" folder will be put last. These names can easily be edited to suit your needs. It requires users.php for usernames and passwords.
|
|
Picture slideshow in PHP
|
This is the picture slideshow code I use in the Pictures section on the main page of this site.
It serves up all the pictures contained in the "pictures" subfolder.
It's dynamic, so no coding is needed to change pictures in and out, just change them out as desired.
It requires a descriptions.txt file like this one for descriptions, and
for easier editing of descriptions, I named my pictures numberically (ie 01.jpg ... 56.jpg), but any
filenames will work and decriptions are optional -- although the dark bar at the bottom might still
show without descriptions. Note that my code contains an example at line 158 to implement an exception for 16.jpg so that the description is shown at the top instead of the bottom. You can expand this to any pictures that need this by adjusting that IF statement.
|
|
Movies fileserver in PHP
|
This PHP file will serve all subfolders, and assuming they are copied from an Emby collection, and you have Emby set to save the NFO files,
it will use the NFO file from each folder to show plots, ratings, poster.jpg cover pics, and even
figure out the Youtube trailer links.
Thus it's "self-updating", and all you have to do is add or remove folders from your Emby
collection as-is, and it will adapt. All that's needed is to edit line 3 of the login page to set your password.
Uses yellowstar.jpg,
styles.css,
category.php, and
login page.
|