103 Commits
test ... v1.0.0

Author SHA1 Message Date
SuperDev
a5da438d67 Update FUNDING.yml 2022-12-22 21:44:02 -06:00
SuperDev
5c48e4db84 Update latest.txt 2022-12-22 21:41:11 -06:00
SuperDev
fe7180faf6 Update index.php 2022-12-22 21:35:40 -06:00
SuperDev
61e008f257 Update latest.txt 2022-12-22 21:33:54 -06:00
SuperDev
ccded8fb0d Update latest.txt 2022-12-22 21:31:49 -06:00
SuperDev
0e9b3dbb22 Update index.php 2022-12-22 21:28:57 -06:00
SuperDev
3d711859fd Update index.php 2022-12-22 21:28:20 -06:00
SuperDev
0f3746ae00 Update index.php 2022-12-22 21:27:05 -06:00
SuperDev
bfdb470d5a Update index.php 2022-12-22 21:24:58 -06:00
SuperDev
0185b1692e Update index.php 2022-12-22 21:23:51 -06:00
SuperDev
3a35b5fcb2 Update main.php 2022-12-22 21:18:18 -06:00
SuperDev
7f2a86ff6f Create latest.txt 2022-12-22 21:14:58 -06:00
SuperDev
64ea075964 Update main.php 2022-12-22 15:30:01 -06:00
SuperDev
7bd25ca293 Update main.php 2022-12-22 15:16:54 -06:00
SuperDev
90f784abdc Update main.php 2022-12-22 15:15:19 -06:00
SuperDev
1e398437f1 Update main.php 2022-12-22 15:14:41 -06:00
SuperDev
db4d8b5c3a Update main.php 2022-12-22 15:14:01 -06:00
SuperDev
6e0d6b4e34 Update index.php 2022-12-22 15:12:07 -06:00
SuperDev
39741a2309 Update main.php 2022-12-22 15:11:11 -06:00
SuperDev
5092c0e8e2 Update README.md 2022-12-22 14:52:43 -06:00
SuperDev
6fb5e03614 Update README.md 2022-12-22 14:51:27 -06:00
SuperDev
9ffcdffe67 Update README.md 2022-12-22 14:42:59 -06:00
SuperDev
951cede255 Update README.md 2022-12-22 14:26:55 -06:00
SuperDev
26e13de11a Create mounts.md 2022-12-22 14:26:23 -06:00
SuperDev
cdcd99504b Update README.md 2022-12-22 14:24:08 -06:00
SuperDev
129452bb80 Update Dockerfile 2022-12-22 14:17:00 -06:00
SuperDev
3e7eb7e796 Update Dockerfile 2022-12-22 14:13:54 -06:00
SuperDev
0c2b434a18 Update index.php 2022-12-22 14:11:53 -06:00
SuperDev
ca29a23e1e Update download.php 2022-12-22 14:09:29 -06:00
SuperDev
7c442c2696 Update download.php 2022-12-22 14:08:28 -06:00
SuperDev
033e8b83ec Update download.php 2022-12-22 14:07:47 -06:00
SuperDev
291ccd45f3 Update download.php 2022-12-22 14:04:59 -06:00
SuperDev
c085776cf8 Update index.php 2022-12-22 14:03:41 -06:00
SuperDev
b084ba8106 Update index.php 2022-12-22 14:02:53 -06:00
SuperDev
c4bfc12b70 Update download.php 2022-12-22 13:54:03 -06:00
SuperDev
1722edbc7e Update download.php 2022-12-22 13:51:50 -06:00
SuperDev
4b2c042f7b Update download.php 2022-12-22 13:46:33 -06:00
SuperDev
72333d3bba Update download.php 2022-12-22 13:44:24 -06:00
SuperDev
e2f7de6984 Update download.php 2022-12-22 13:42:57 -06:00
SuperDev
688fb64b6a Update download.php 2022-12-22 13:37:33 -06:00
SuperDev
0d1170709f Update download.php 2022-12-22 13:30:28 -06:00
SuperDev
1ee55f1655 Update download.php 2022-12-22 13:28:57 -06:00
SuperDev
292e32a498 Update download.php 2022-12-22 13:27:26 -06:00
SuperDev
e6b76497dc Update download.php 2022-12-22 13:25:06 -06:00
SuperDev
6b80c19795 Update index.php 2022-12-22 13:24:40 -06:00
SuperDev
d8318f4cc7 Update index.php 2022-12-22 13:24:04 -06:00
SuperDev
732c65f687 Update config.php 2022-12-22 13:22:24 -06:00
SuperDev
b3ccd45fb2 Update env.md 2022-12-22 13:21:36 -06:00
SuperDev
98c03de931 Update env.md 2022-12-22 13:20:37 -06:00
SuperDev
757bc10daa Update config.php 2022-12-22 13:19:11 -06:00
SuperDev
77c734baf7 Update download.php 2022-12-22 13:16:01 -06:00
SuperDev
a86e24319e Update download.php 2022-12-22 13:14:43 -06:00
SuperDev
8fab7658c5 Update main.css 2022-12-22 13:13:17 -06:00
SuperDev
0191e0a72a Update main.css 2022-12-22 13:09:39 -06:00
SuperDev
8faa2daef4 Update main.css 2022-12-22 13:08:14 -06:00
SuperDev
f8fdfeb8a5 Update main.css 2022-12-22 13:03:44 -06:00
SuperDev
8937b15097 Update download.php 2022-12-22 12:58:45 -06:00
SuperDev
eb673fc36a Update download.php 2022-12-22 12:55:03 -06:00
SuperDev
dace69390a Update download.php 2022-12-22 12:54:05 -06:00
SuperDev
24d6fe6cdf Update download.php 2022-12-22 12:52:34 -06:00
SuperDev
de90a6f0ba Update download.php 2022-12-22 12:43:09 -06:00
SuperDev
a35eaace1f Update index.php 2022-12-22 12:36:13 -06:00
SuperDev
9b8689367a Update index.php 2022-12-22 12:35:26 -06:00
SuperDev
1d71e48efe Update config.php 2022-12-22 12:24:14 -06:00
SuperDev
87c997cfdc Update index.php 2022-12-22 12:22:26 -06:00
SuperDev
2b925831b1 Update download.php 2022-12-22 12:19:37 -06:00
SuperDev
9259fc964d Update main.css 2022-12-22 12:18:49 -06:00
SuperDev
fe50bd4112 Update download.php 2022-12-22 12:17:17 -06:00
SuperDev
8f9a13cb2d Update download.php 2022-12-22 12:14:21 -06:00
SuperDev
7003b156d2 Update index.php 2022-12-22 12:10:47 -06:00
SuperDev
87d2dc0524 Create download.php 2022-12-22 12:08:18 -06:00
SuperDev
b4bab3f1da Update config.php 2022-12-21 22:21:56 -06:00
SuperDev
aa2f2f499f Update config.php 2022-12-21 22:19:10 -06:00
SuperDev
d4b3233afb Update main.php 2022-12-21 22:18:19 -06:00
SuperDev
82b167d929 Update index.php 2022-12-21 22:06:16 -06:00
SuperDev
40f5026e1d Update index.php 2022-12-21 22:04:09 -06:00
SuperDev
603c8dbfdf Update index.php 2022-12-21 22:01:43 -06:00
SuperDev
1d928adede Update index.php 2022-12-21 22:01:17 -06:00
SuperDev
c45af78251 Update main.css 2022-12-21 21:56:56 -06:00
SuperDev
3c526a3346 Update main.css 2022-12-21 21:54:51 -06:00
SuperDev
0688bf176e Update index.php 2022-12-21 21:53:35 -06:00
SuperDev
c556d00dfa Update main.css 2022-12-21 21:51:47 -06:00
SuperDev
e5b557910c Update index.php 2022-12-21 21:50:38 -06:00
SuperDev
04c0abb8ed Update index.php 2022-12-21 21:50:02 -06:00
SuperDev
bce2d426f9 Update main.css 2022-12-21 21:31:32 -06:00
SuperDev
b9c0b359b7 Update index.php 2022-12-21 21:30:29 -06:00
SuperDev
4526edd4a9 Update index.php 2022-12-21 21:29:43 -06:00
SuperDev
b97b1ea0cb Update main.css 2022-12-21 21:25:26 -06:00
SuperDev
8dfabdb42e Update index.php 2022-12-21 21:10:31 -06:00
SuperDev
f5049c7802 Update index.php 2022-12-21 21:09:40 -06:00
SuperDev
1edb54e0e4 Update index.php 2022-12-21 21:02:07 -06:00
SuperDev
dfd93a7cc5 Update index.php 2022-12-21 21:01:12 -06:00
SuperDev
e0204eb95c Update main.css 2022-12-21 20:56:59 -06:00
SuperDev
156c02242f Update index.php 2022-12-21 20:51:32 -06:00
SuperDev
c0dee635a2 Update index.php 2022-12-21 20:50:14 -06:00
SuperDev
22b9a6826f Update index.php 2022-12-21 20:46:16 -06:00
SuperDev
ff67b91e1e Update index.php 2022-12-21 20:42:30 -06:00
SuperDev
7d420e19a3 Update index.php 2022-12-21 20:40:06 -06:00
SuperDev
470a09d6ed Update index.php 2022-12-21 20:36:06 -06:00
SuperDev
0ea2c9b936 Update index.php 2022-12-21 20:34:57 -06:00
SuperDev
c339e2eddf Update README.md 2022-12-21 19:30:20 -06:00
SuperDev
b749006c96 Update README.md 2022-12-21 19:29:42 -06:00
SuperDev
d8ef13fdc2 Update README.md 2022-12-21 19:27:05 -06:00
11 changed files with 224 additions and 40 deletions

2
.github/FUNDING.yml vendored
View File

@@ -1,6 +1,6 @@
# These are supported funding model platforms # These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] github: [supernova3339] Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: superdevofficial patreon: superdevofficial
open_collective: # Replace with a single Open Collective username open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username ko_fi: # Replace with a single Ko-fi username

View File

@@ -4,16 +4,16 @@
</p> </p>
--- ---
<!-- images should be 116.6666667 by 26.6666667 for BRAND logos -->
#### About #### About
AnonFiles is a simple, databaseless PHP file uploader. It's built with privacy in mind, by not showing the direct filename used. AnonFiles is a simple, databaseless PHP file uploader. It's built with privacy in mind, by not showing the direct filename used.
AnonFiles works anywhere! It doesnt matter if your using lightspeed, nginx, or even apache. AnonFiles works anywhere! It doesnt matter if your using lightspeed, nginx, or even apache.
#### Installation #### Installation
Host with: [![Easypanel](https://raw.githubusercontent.com/Supernova3339/Supernova3339/main/easypanel.png)](https://easypanel.io/docs/templates/anonfiles)
``` ```
docker pull ghcr.io/supernova3339/anonupload docker pull ghcr.io/supernova3339/anonfiles
``` ```
#### Features #### Features
@@ -24,4 +24,4 @@ docker pull ghcr.io/supernova3339/anonupload
- Dockerized - Dockerized
#### Documentation #### Documentation
[Environment Variables](env.md) - [SHAREX-SOON'](#) [Environment Variables](env.md) - [Volumes](mounts.md) - [SHAREX-SOON'](#)

View File

@@ -66,6 +66,20 @@ return $bytes . ' B';
// get size of folders in a folder // get size of folders in a folder
$plugin_count = count(glob('../../plugins/*', GLOB_ONLYDIR)); $plugin_count = count(glob('../../plugins/*', GLOB_ONLYDIR));
// Update checker
$PATCH_URL = 'https://raw.githubusercontent.com/Supernova3339/anonfiles/main/';
$version_filename = 'latest.txt?token=GHSAT0AAAAAAB4S7HM4SZGF7VWPABQO3KRSY5FDV4Q'; # REMOVE TOKEN
// Get version
$ch = curl_init($PATCH_URL . $version_filename);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$str = curl_exec($ch);
curl_close($ch);
$server_version = str_to_version_info($str);
?> ?>
<?=template_admin_header('Dashboard', 'dashboard')?> <?=template_admin_header('Dashboard', 'dashboard')?>
@@ -100,7 +114,14 @@ $plugin_count = count(glob('../../plugins/*', GLOB_ONLYDIR));
<div class="data"> <div class="data">
<h3>Version</h3> <h3>Version</h3>
<p> <p>
1.0 <?=version?>
</p>
<?php
if($server_version > version){
echo '<p>update available</p>';
}
echo $server_version;
?>
</p> </p>
</div> </div>
<i class="fas fa-info"></i> <i class="fas fa-info"></i>

View File

@@ -1,6 +1,8 @@
<?php <?php
// Check if the user is logged-in // Check if the user is logged-in
include_once '../protect.php'; include_once '../protect.php';
// Read comfiguration file
include_once '../../system/config.php';
// Add/remove roles from the list // Add/remove roles from the list
$roles_list = ['Admin', 'Member']; $roles_list = ['Admin', 'Member'];
// Logout User on '?logout' --> // Logout User on '?logout' -->
@@ -23,8 +25,8 @@ function template_admin_header($title, $selected = 'dashboard', $selected_child
<a href="files.php"' . ($selected == 'files' ? ' class="selected"' : '') . '><i class="fas fa-file-alt"></i>Files</a> <a href="files.php"' . ($selected == 'files' ? ' class="selected"' : '') . '><i class="fas fa-file-alt"></i>Files</a>
<a href="settings.php"' . ($selected == 'settings' ? ' class="selected"' : '') . '><i class="fas fa-tools"></i>Settings</a> <a href="settings.php"' . ($selected == 'settings' ? ' class="selected"' : '') . '><i class="fas fa-tools"></i>Settings</a>
<div class="footer"> <div class="footer">
<a href="https://support.superdev.one" target="_blank">AnonFiles</a> <a href="https://github.com/supernova3339/anonfiles" target="_blank">AnonFiles</a>
Version 1.0.0 Version ' . version . '
</div> </div>
'; ';
// Indenting the below code may cause an error // Indenting the below code may cause an error
@@ -144,4 +146,12 @@ function time_elapsed_string($datetime, $full = false) {
if (!$full) $string = array_slice($string, 0, 1); if (!$full) $string = array_slice($string, 0, 1);
return $string ? implode(', ', $string) . ' ago' : 'just now'; return $string ? implode(', ', $string) . ' ago' : 'just now';
} }
?> function str_to_version_info($string)
{
$latest_version = FALSE;
if (preg_match('/^\s*?(\d+\.\d+\.\d+)/i', $string, $match)) {
$latest_version = $match[1];
}
return $latest_version;
}
?>

View File

@@ -2,6 +2,8 @@
body{ body{
background: #111; background: #111;
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
text-align: center;
} }
p{ p{
color: #fff; color: #fff;
@@ -34,12 +36,13 @@ form{
border: 2px dashed #353535; border: 2px dashed #353535;
} }
form p{ form p{
position: absolute;
width: 100%; width: 100%;
height: 100%; height: 100%;
margin-top: -20vh;
text-align: center; text-align: center;
line-height: 170px;
color: #ffffff; color: #ffffff;
font-family: Arial; z-index: -1;
} }
form input{ form input{
margin: 0; margin: 0;
@@ -82,4 +85,47 @@ form button:active{
.notification.success{ .notification.success{
background:#36923b; background:#36923b;
color: #fff; color: #fff;
} }
.download-area{
position: absolute;
top: 50%;
left: 50%;
margin-top: -100px;
margin-left: -250px;
width: 500px;
height: 200px;
}
.download-area p{
position: absolute;
width: 100%;
height: 100%;
margin-top: -20vh;
text-align: center;
color: #ffffff;
z-index: -1;
}
.download-btn{
margin: 0;
color: #fff;
background: #2d2d2d;
border: none;
width: 508px;
height: 35px;
margin-top: 15px;
margin-left: -4px;
border-radius: 4px;
border-bottom: 4px solid #252525;
transition: all .2s ease;
outline: none;
}
.download-btn.timer{
color: #fff;
background: #2d2d2d;
pointer-events: none;
}
.download-btn:hover{
background: #383838;
}
.download-btn:active{
border:0;
}

104
download.php Normal file
View File

@@ -0,0 +1,104 @@
<?php
require_once(__DIR__ . '/system/core.class.php');
// size convertor
function sizeFormat($bytes){
$kb = 1024;
$mb = $kb * 1024;
$gb = $mb * 1024;
$tb = $gb * 1024;
if (($bytes >= 0) && ($bytes < $kb)) {
return $bytes . ' B';
} elseif (($bytes >= $kb) && ($bytes < $mb)) {
return ceil($bytes / $kb) . ' KB';
} elseif (($bytes >= $mb) && ($bytes < $gb)) {
return ceil($bytes / $mb) . ' MB';
} elseif (($bytes >= $gb) && ($bytes < $tb)) {
return ceil($bytes / $gb) . ' GB';
} elseif ($bytes >= $tb) {
return ceil($bytes / $tb) . ' TB';
} else {
return $bytes . ' B';
}
}
$maxsize = max_size;
// Get uploaded file
$file = $_GET['file'];
$fileURL = base64_decode($file);
$filesize = filesize($fileURL);
$baseurl = file_url_destination;
// Check if file exists
if(!file_exists($fileURL)){
http_response_code(404);
}
if($file == ''){
http_response_code(404);
}
$core = new Core();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=app_name?> - Download</title>
<link rel="stylesheet" type="text/css" href="assets/main.css">
</head>
<body>
<div class="wrapper">
<img src="assets/images/logo.png">
<?php
if(isset($_POST['submit'])){
}
?>
<!--<form>-->
<div class="download-area">
<button class="download-btn" data-timer="<?=waitfor?>">Download&nbsp;[<?=sizeFormat($filesize)?>]</button>
<ul>
<li>Report files: <a href="mailto:<?=app_contact_email?>"><?=app_contact_email?></a></li>
</ul>
</div>
<!--</form>-->
</div>
<?php echo'
<script>
const downloadBtn = document.querySelector(".download-btn");
const fileLink = "' . $fileURL .'";
const initTimer = () => {
if(downloadBtn.classList.contains("disable-timer")) {
return window.open(fileLink);
}
let timer = downloadBtn.dataset.timer;
downloadBtn.classList.add("timer");
downloadBtn.innerHTML = `Your download will begin in <b>${timer}</b> seconds`;
const initCounter = setInterval(() => {
if(timer > 0) {
timer--;
return downloadBtn.innerHTML = `Your download will begin in <b>${timer}</b> seconds`;
}
clearInterval(initCounter);
window.open(fileLink);
downloadBtn.innerText = "Your file is downloading...";
setTimeout(() => {
downloadBtn.classList.replace("timer", "disable-timer");
downloadBtn.innerHTML = `<span class="text">Download Again</span>`;
}, 3000);
}, 1000);
}
downloadBtn.addEventListener("click", initTimer);
</script>
</script>'; ?>
<?php if(plausibledomain&&plausibledatadomain == !null){ ?>
<script defer data-domain="<?=plausibledatadomain?>" src="<?=plausibledomain?>/js/script.js"></script>
<?php } ?>
</body>
</html>

2
env.md
View File

@@ -12,6 +12,7 @@
| APP_NAME | Sets the app title | YES | AnonUpload - Secure File Sharing | APP_NAME | Sets the app title | YES | AnonUpload - Secure File Sharing
| APP_DESC | Sets the app description | YES | Secure and anonymous file sharing | APP_DESC | Sets the app description | YES | Secure and anonymous file sharing
| APP_LOGO_IMAGE | Sets the app logo image | YES | assets/images/logo.png | APP_LOGO_IMAGE | Sets the app logo image | YES | assets/images/logo.png
| APP_CONTACT_EMAIL | Sets the report files email | YES | admin@admin.com
##### Plausible ##### Plausible
--- ---
@@ -31,3 +32,4 @@
| APP_BASE_URL | Application base URL | YES | https://xxx.xxx/ | APP_BASE_URL | Application base URL | YES | https://xxx.xxx/
| APP_MAX_SIZE | Application max upload size in BYTES | YES | 10000000000 [10GB] | APP_MAX_SIZE | Application max upload size in BYTES | YES | 10000000000 [10GB]
| APP_MIN_SIZE | Application minimum upload size in BYTES | YES | 0 [0KB] | APP_MIN_SIZE | Application minimum upload size in BYTES | YES | 0 [0KB]
| APP_DOWNLOAD_TIME | Time to wait until file downloads | YES | 30 (in seconds)

View File

@@ -1,9 +1,7 @@
<?php <?php
require_once(__DIR__ . '/system/core.class.php'); require_once(__DIR__ . '/system/core.class.php');
session_start(); require_once(__DIR__ . '/system/config.php');
// size convertor
// size converter
function sizeFormat($bytes){ function sizeFormat($bytes){
$kb = 1024; $kb = 1024;
$mb = $kb * 1024; $mb = $kb * 1024;
@@ -30,75 +28,63 @@ return $bytes . ' B';
} }
$maxsize = max_size; $maxsize = max_size;
$core = new Core(); $core = new Core();
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title><?= app_name; ?> - <?= app_desc; ?></title> <title><?= app_name; ?> - <?= app_desc; ?></title>
<!-- for discord -->
<meta property="og:type" content="website">
<meta property="og:title" content="<?= app_name; ?>" />
<meta property="og:description" content="<?= app_desc; ?>" />
<link rel="stylesheet" type="text/css" href="assets/main.css"> <link rel="stylesheet" type="text/css" href="assets/main.css">
</head> </head>
<body> <body>
<div class="wrapper"> <div class="wrapper">
<?php if(!app_logoimage == ''){ ?>
<img src="assets/images/logo.png"> <img src="assets/images/logo.png">
<?php }else{ ?>
<img src="<?=app_logoimage?>">
<?php } ?>
<?php <?php
if(isset($_POST['submit'])){ if(isset($_POST['submit'])){
if($core->FileTypeVerification($_FILES["fileToUpload"])){ if($core->FileTypeVerification($_FILES["fileToUpload"])){
if($core->FileSizeVerification($_FILES["fileToUpload"])){ if($core->FileSizeVerification($_FILES["fileToUpload"])){
$newfilename = $core->FileNameConvertor($_FILES["fileToUpload"]); $newfilename = $core->FileNameConvertor($_FILES["fileToUpload"]);
if($core->UploadFile($_FILES["fileToUpload"], $newfilename)){ if($core->UploadFile($_FILES["fileToUpload"], $newfilename)){
$destination = base64_encode(file_destination.'/'.$newfilename);
?> ?>
<div class="notification success"> <div class="notification success">
Success ! Your file is available here: <a href="<?= file_url_destination.'/'.file_destination.'/'.$newfilename; ?>"><?= file_url_destination.'/'.file_destination.'/'.$newfilename; ?></a> Success ! Your file are available here: <a href="download.php?file=<?php echo $destination; ?>">download.php?file=<?php echo $destination; ?></a>
</div> </div>
<?php <?php
}else{ }else{
?> ?>
<div class="notification error"> <div class="notification error">
An error occured while trying to upload your file An error occured while trying to upload your file(s).
</div> </div>
<?php <?php
} }
}else{ }else{
?> ?>
<div class="notification error"> <div class="notification error">
Your File Is Too Big Your file is too high/low.
</div> </div>
<?php <?php
} }
}else{ }else{
?> ?>
<div class="notification error"> <div class="notification error">
Incorrect File Format Incorrect file format.
</div> </div>
<?php <?php
} }
} }
?> ?>
<form method="post" action="#" enctype="multipart/form-data"> <form method="post" action="" enctype="multipart/form-data">
<input type="file" name="fileToUpload"> <input type="file" name="fileToUpload">
<p>Drag a file here or click to upload</p> <p>Drag your files here or click in this area - <?=sizeFormat($maxsize)?> Max</p>
<button name="submit" type="submit">Upload</button> <button name="submit" type="submit">Upload</button>
<ul> <ul>
<li>Supported files: <?= FILELIST; ?></li> <li>Supported files: <?= FILELIST; ?></li>
</ul> </ul>
<br>
<ul>
<li>Maximum filesize: <?php echo sizeFormat($maxsize); ?></li>
</ul>
</form> </form>
</div> </div>
@@ -114,11 +100,9 @@ $(document).ready(function(){
}); });
}); });
</script> </script>
<?php if(!plausibledatadomain&&plausibledomain == ''){ ?>
<?php if(plausibledomain&&plausibledatadomain == !null){ ?>
<?php }else{ ?>
<script defer data-domain="<?=plausibledatadomain?>" src="<?=plausibledomain?>/js/script.js"></script> <script defer data-domain="<?=plausibledatadomain?>" src="<?=plausibledomain?>/js/script.js"></script>
<?php } ?> <?php } ?>
</body> </body>
</html> </html>

1
latest.txt Normal file
View File

@@ -0,0 +1 @@
v1.0.0

6
mounts.md Normal file
View File

@@ -0,0 +1,6 @@
## Volume Mounts
<br>
| Mount | Description | Required
| ------ | ------ | ------
| /var/www/html/files | Files directory | YES

View File

@@ -9,6 +9,7 @@ $password = getenv('ADMIN_PASSWORD') ?? 'password';
$appname = getenv('APP_NAME') ?? 'AnonUpload - Secure File Sharing'; $appname = getenv('APP_NAME') ?? 'AnonUpload - Secure File Sharing';
$appdesc = getenv('APP_DESC') ?? 'Secure and anonymous file sharing'; $appdesc = getenv('APP_DESC') ?? 'Secure and anonymous file sharing';
$applogo = getenv('APP_LOGO_IMAGE') ?? 'assets/images/logo.png'; $applogo = getenv('APP_LOGO_IMAGE') ?? 'assets/images/logo.png';
$appcontact = getenv('APP_CONTACT_EMAIL');
// Plausible analytics // Plausible analytics
$plausibledomain = getenv('PLAUSIBLE_DOMAIN'); $plausibledomain = getenv('PLAUSIBLE_DOMAIN');
@@ -24,12 +25,15 @@ $baseurl = getenv('APP_BASE_URL') ?? $_SERVER['HTTP_HOST'];
$maxsize = getenv('APP_MAX_SIZE') ?? (int)(ini_get('upload_max_filesize')); $maxsize = getenv('APP_MAX_SIZE') ?? (int)(ini_get('upload_max_filesize'));
$minsize = getenv('APP_MIN_SIZE') ?? '0'; $minsize = getenv('APP_MIN_SIZE') ?? '0';
$waitfor = getenv('APP_DOWNLOAD_TIME');
define('email', $email); define('email', $email);
define('password', $password); define('password', $password);
/* SEO */ /* SEO */
define('app_name', $appname); define('app_name', $appname);
define('app_desc', $appdesc); define('app_desc', $appdesc);
/* Upload Settings */ /* Upload Settings */
define('app_logoimage', $applogo); define('app_logoimage', $applogo);
define('FILELIST', $filelist); define('FILELIST', $filelist);
@@ -38,10 +42,16 @@ define('file_destination', $filedestination);
define('file_url_destination', $baseurl); define('file_url_destination', $baseurl);
define('max_size', $maxsize); define('max_size', $maxsize);
define('min_size', $minsize); define('min_size', $minsize);
define('app_contact_email', $appcontact);
define('waitfor', $waitfor);
/* Analytics */ /* Analytics */
define('plausibledomain', $plausibledomain); define('plausibledomain', $plausibledomain);
define('plausibledatadomain', $plausibledatadomain); define('plausibledatadomain', $plausibledatadomain);
define('plausible_embed', $plausibleembed); define('plausible_embed', $plausibleembed);
define('plausibleembedtoken', $plausibleembedtoken); define('plausibleembedtoken', $plausibleembedtoken);
/* version */
define('version', 'v1.0.0'); // DO NOT FORGET TO CHANGE THIS
?> ?>