Files

59 lines
2.0 KiB
PHP
Raw Permalink Normal View History

2022-12-19 11:06:08 -06:00
<?php
2022-12-21 08:08:22 -06:00
// enviroment variables
// administration
2022-12-21 08:28:00 -06:00
$email = getenv('ADMIN_EMAIL') ?? 'admin@easypanel.io';
$password = getenv('ADMIN_PASSWORD') ?? 'password';
2022-12-21 08:08:22 -06:00
// App
2022-12-21 08:28:00 -06:00
$appname = getenv('APP_NAME') ?? 'AnonUpload - Secure File Sharing';
$appdesc = getenv('APP_DESC') ?? 'Secure and anonymous file sharing';
$applogo = getenv('APP_LOGO_IMAGE') ?? 'assets/images/logo.png';
2022-12-22 12:24:14 -06:00
$appcontact = getenv('APP_CONTACT_EMAIL');
2022-12-21 08:14:31 -06:00
// Plausible analytics
2022-12-21 08:31:54 -06:00
$plausibledomain = getenv('PLAUSIBLE_DOMAIN');
$plausibledatadomain = getenv('PLAUSIBLE_DATA_DOMAIN');
2022-12-21 09:04:10 -06:00
$plausibleembed = getenv('PLAUSIBLE_EMBED');
2022-12-21 09:25:26 -06:00
$plausibleembedtoken = getenv('PLAUSIBLE_EMBED_TOKEN');
2022-12-21 08:08:22 -06:00
// Uploader settings
2022-12-21 08:28:00 -06:00
$filelist = getenv('APP_FILELIST') ?? 'jpeg,jpg,gif,png,zip,xls,doc,mp3,mp4,mpeg,wav,avi,rar,7z,txt';
$sizeverification = getenv('APP_SIZE_VERIFICATION') ?? true;
$filedestination = getenv('APP_FILE_DESTINATION') ?? 'files';
$baseurl = getenv('APP_BASE_URL') ?? $_SERVER['HTTP_HOST'];
$maxsize = getenv('APP_MAX_SIZE') ?? (int)(ini_get('upload_max_filesize'));
$minsize = getenv('APP_MIN_SIZE') ?? '0';
2022-12-21 08:08:22 -06:00
2022-12-22 13:22:24 -06:00
$waitfor = getenv('APP_DOWNLOAD_TIME');
2022-12-22 13:19:11 -06:00
2022-12-21 08:08:22 -06:00
define('email', $email);
define('password', $password);
2022-12-21 09:04:10 -06:00
/* SEO */
2022-12-21 08:08:22 -06:00
define('app_name', $appname);
define('app_desc', $appdesc);
2022-12-21 22:19:10 -06:00
2022-12-21 09:04:10 -06:00
/* Upload Settings */
2022-12-21 08:23:11 -06:00
define('app_logoimage', $applogo);
2022-12-21 08:08:22 -06:00
define('FILELIST', $filelist);
define('size_verification', $sizeverification);
define('file_destination', $filedestination);
define('file_url_destination', $baseurl);
define('max_size', $maxsize);
define('min_size', $minsize);
2022-12-22 12:24:14 -06:00
define('app_contact_email', $appcontact);
2022-12-22 13:19:11 -06:00
define('waitfor', $waitfor);
2022-12-21 22:19:10 -06:00
2022-12-21 09:04:10 -06:00
/* Analytics */
2022-12-21 08:31:54 -06:00
define('plausibledomain', $plausibledomain);
define('plausibledatadomain', $plausibledatadomain);
2022-12-21 09:04:10 -06:00
define('plausible_embed', $plausibleembed);
2022-12-21 09:25:26 -06:00
define('plausibleembedtoken', $plausibleembedtoken);
2022-12-21 22:19:10 -06:00
/* version */
2022-12-21 22:21:56 -06:00
define('version', 'v1.0.0'); // DO NOT FORGET TO CHANGE THIS
2023-01-12 21:07:07 -06:00
$github_api_url = "https://api.github.com/repos/Supernova3339/anonupload/releases/latest"; // this is how tag gets pulled for latest version
2022-12-21 22:19:10 -06:00
2022-12-21 08:18:54 -06:00
2022-12-19 11:06:41 -06:00
?>