blob: 39926f68f869f1d25410db68e04d370198046d2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<?php
$db = new SQLite3("../database/sqlite.db");
$scheme="http://";
if(isset($_SERVER["HTTPS"])){
if($_SERVER["HTTPS"] == "on"){
$scheme="https://";
}
}
require_once("constants.php");
$func_dir = "functions/";
require_once("class.files.php");
require_once($func_dir . "func_failure.php"); // 404 and other errors
require_once($func_dir . "func_interface.php"); // presents the vfs content
require_once($func_dir . "func_invite.php"); // handles the invite routine
require_once($func_dir . "func_login.php"); // handles also logout
require_once($func_dir . "func_register.php"); // processing the registration
require_once($func_dir . "func_rewrite.php"); // rewrites URL if user forgot to add the username while loged in
require_once($func_dir . "func_select.php"); // get the primary key from the last folder
require_once($func_dir . "func_user.php"); // gets the userid and account specific stuff
require_once($func_dir . "func_content.php"); // get the vfs content
require_once($func_dir . "func_password.php"); // changes the user password
require_once($func_dir . "func_folder.php"); // creates a new folder
require_once($func_dir . "func_delete.php"); // deletes files, folder and user
require_once($func_dir . "func_download.php"); // handles the file download
require_once($func_dir . "func_upload.php"); // handles the file upload
require_once("login.php"); // prints the login page
require_once("register.php"); // prints the register page
require_once("browse.php"); // prints the file browser page
|