mirror of
https://github.com/nosial/FileServer.git
synced 2025-06-07 13:48:36 +00:00
Add configuration classes, enums, and database handling for FileServer
Some checks failed
Docker CI/CD / build-and-save (push) Has been cancelled
Docker CI/CD / build-and-push (push) Has been cancelled
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
Some checks failed
Docker CI/CD / build-and-save (push) Has been cancelled
Docker CI/CD / build-and-push (push) Has been cancelled
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / check-phpdoc (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
This commit is contained in:
parent
8db44e90d5
commit
72da412737
45 changed files with 3837 additions and 10 deletions
20
www/index.php
Normal file
20
www/index.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
# This is a simple single index file for loading in FileServer and passing on the request to be handled by the
|
||||
# server, modify this to your adjustments but this file in its current form will work
|
||||
|
||||
# Load ncc & import FileServer
|
||||
require 'ncc';
|
||||
import('net.nosial.fileserver');
|
||||
|
||||
try
|
||||
{
|
||||
# Pass on the request handler
|
||||
\FileServer\FileServer::handleRequest();
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
# Handle the exception
|
||||
http_response_code(500);
|
||||
print(sprintf("Internal Server Error: %s", $e->getMessage()));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue